← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 101
  1. My Favorite Blogs

    These are some blogs I enjoy.

  2. Being Poor

    I came across this article and it hit pretty deep: https://whatever.scalzi.com/2005/09/03/being-poor/ This post is an extension of that link with my own personal experiences.

  3. Kubernetes RBAC: Get vs List

    TL;DR Having get permissions to a Kubernetes object does not imply you have list permissions and vice versa.

  4. If you’ve been around you know I enjoy spamming phishing/scamming sites.

  5. In a Ruby on Rails app I was working on, I wanted to include a link that would download a user’s data (bank statements in this case) as JSON.

  6. Homebrew has a “brew leaves” command that shows all installed packages that are not depended on by other packages.

  7. In AWS, you can use AWS Systems Manager to run commands on any EC2 Instances that have the AWS Systems Manager Agent installed.

  8. Optional Type Hints in Python

    Python lets you write optional type hints where you can return either a specified type or None.

  9. Fake Ledger Email I recently received this email claiming to be from Ledger.

  10. The EC2 Instance Metadata Service (IMDS) allows us to make an API call within an EC2 instance to retrieve instance metadata, such as a local IP address.

  11. Company Missions are Bullshit

    I have worked for several companies at this point.

  12. You can use docker inspect to determine the entrypoint of a docker image.

  13. I recently discovered canarytokens.org, which helps detect if your infrastructure has been breached through various methods.

  14. I usually don’t need development logs persisted after I’m done with a development session of a Rails app.

  15. We can use the find command to delete a specific directory recursively.

  16. The recent tech layoffs have shown that employees are disposable in the eyes of executives.

  17. Here are my donation earnings for the past year.

  18. Warning: This method is outdated!

  19. With AWS S3, it’s possible to redirect one domain to another.

  20. In Ruby, when a hash is created with keys and values, the keys may or may not retain their type depending on the hash syntax.

  21. Overview Using Amazon Web Services, we can easily set up a static site worldwide without the need to maintain servers and load balancers.

  22. By default, GitHub Actions does not allow you to run a workflow manually.

  23. Sorting Hashes in Ruby

    Sorting Hashes by Key Ascending Order Let’s say we had the following hash: items = { "b": 2, "a": 3, "c": 1 } If we wanted to sort it by keys, we can use the .sort method to sort in ascending order: items = { "b": 2, "a": 3, "c": 1 } # sorting

  24. Generating All Routes for a Model Let’s say we have an item model in a Ruby on Rails application.

  25. In my career, I have only seen Ruby hashes being iterated through by declaring both the key and value.

  26. In Ruby on Rails 7, Webpacker, Turbolinks, and UJS were replaced with Import Maps and Hotwire.

  27. To set the system-wide version of Ruby with rvm run: rvm --default use <version number> For example, to use 3.1.2 as the default version system-wide, run: rvm --default use 3.1.2 Now this version will be used even when a new terminal tab or window is open…

  28. Ignoring files within directories using .dockerignore is a bit different compared to .gitignore.

  29. Environment variables can be set for each individual Serverless function or at the provider level for all functions.

  30. In a previous post I wrote about how it’s possible to scrape emails from GitHub repositories using their API.

  31. Phishing Attempt via Text Message Today, I received this text message that is obviously a phishing attempt: I was curious, so I went ahead and checked out the site.

  32. I recently learned that it is possible to replace an existing ACM SSL certificate on any AWS resource with no downtime.

  33. Finding EC2 Instances by IP Address In the EC2 Console In the AWS EC2 Management Console, you can search for EC2 instances using a private or public IP address.

  34. The difference is that ~ is case-sensitive while ~* is not case-sensitive.

  35. To invoke an Amazon API Gateway with an API Key we need to pass in the API key in an x-api-key header.

  36. Reconnaissance Recently, I received this email: I have never used MetaMask.

  37. Sometimes I need to get information about an EC2 instance within a script but the AWS documentation doesn’t provide many useful examples.

  38. Note: 2022-07-21 update: I discovered a better way to do this and I wrote about it in a separate blog post.

  39. Info: Note that Origin Access Identity has since been deprecated by AWS.

  40. To allow an IAM Role to assume another Role, we need to modify the trust relationship of the role that is to be assumed.

  41. Ruby on Rails allows us to define uniqueness between two database table columns (i.e. two model attributes).

  42. Ruby on Rails allows us to specify how precise we want decimals to be by defining precision and scale in database migrations.

  43. After deleting apps on macOS, they tend to leave behind residual files and directories throughout the system.

  44. In Go, map contents are randomized.

  45. This is a collection of my most used privacy tools and services.

  46. While trying to modify dates in string form, I came across a convenient way to convert months into their numerical values.

  47. When using redirect_to or render twice in one action, we get the AbstractController::DoubleRenderError error.

  48. Warning: 2021-11-08 update: When I first wrote this post I thought this was a better way of writing links, especially after seeing it done this way in a professional setting.

  49. Hacking into Hack The Box

    Hack The Box is an online penetration testing platform where users can practice their hacking abilities and test their cybersecurity knowledge.

  50. Warning: I was a scrub when I first wrote this.