← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 47
  1. context engineering using links

    I came across this interesting post.

  2. a2a protocol

    https://a2a-protocol.org/latest/ It is primarily for agents to collaborate on long running tasks.

  3. Download netboot efi wget https://boot.netboot.xyz/ipxe/netboot.xyz-arm64.efi Move it to /boot/efi/ Open cloud shell connection from the instance page.

  4. access cloudflare r2 using aws cli

    Create R2 tokens from the r2 Overview page.

  5. python logging in aws lambda

    LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO").upper() logger = logging.getLogger() logger.setLevel(level=LOG_LEVEL) logger.info("Info log") logger.info("Error log") Also see amazon web services - Using python Logging with AWS Lambda - Stack Overflow

  6. make lambda.zip using python poetry

    poetry build poetry run pip install --upgrade -t dist/lambda dist/reporter*.whl cd dist/lambda; zip -r ..

  7. https for local development

    Use mkcert mkcert -install mkcert localhost # creates two localhost.pem (cert) and localhost-key.pem (key) file provide the key and cert file to the http server program.

  8. python module search path in aws lambda

    When you use an import statement in your code, the Python runtime searches the directories in its search path until it finds the module or package.

  9. localhost not resolving for some programs

    Check your /etc/hosts So ran into this stupid error where lnd was not starting because it was trying to lookup localhost and it couldn’t resolve it so it asks the DNS server (1.1.1.1) and obviously can’t resolve it either. failed to load config: lookup lo…

  10. cloudfront proxied dns redirect loop issue

    Faced an issue where I would get stuck in a redirect loop when configured a cloudflare dns as ‘proxied’.

  11. Debugging dwm to fix an annoying bug

    I use dwm as my window manager and I always wanted to hack on it ever since I started using it and I have taken my first step towards that by debugging it and understanding the codebase a little.

  12. I have this alias in my bashrc: alias qn="cd ~/docs/org/0-inbox/ && vim `date +%Y-%m-%d-%H%M`.md" which uses Command-Substitution1 and basically just makes a “quick note” which I can refer later and move it a more appropriate place in my organized notes…

  13. useful git tidbits

    --force-with-lease git push --force-with-lease – safer than just --force since if it doesn’t expect the same commit before the force push to be there as yours, it doesn’t push it. git maintenance start makes things faster.

  14. TIL: Cloudfront has a limit on URL length

    Make sure that URL lengths are within range 8192 bytes Some other services might follow a generic 2000 character limit. http - What is the maximum length of a URL in different browsers?

  15. Setting up wireguard VPN

    Server Setup [Interface] PrivateKey = yMvNoQjJrhKBi9BM1GVDOgp12002CBsafprcucOLNXM= Address = 10.0.0.1/24 PostUp = iptables -A FORWARD -i wg1 -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE PostDown = iptables -D FORWARD -i wg1 -j ACCEPT; i…

  16. TIL: AWS s3 folders

    Although s3 has a flat structure—unlike a filesystem—it has a concept of “folders”.

  17. install pyenv install a python version using pyenv install 3.9 this should have created a directory ~/.pyenv tell poetry to use a specific python version - poetry env use /home/prithu/.pyenv/versions/3.9.18/bin/python then run poetry install

  18. good computer engineering videos

    Software How to “think” (and design) like a Software Architect at Silicon Valley Code Camp 2019 Hardware The Future of Microprocessors — Sophie Wilson

  19. These are not the same docker tag api-service:latest 123456789012.dkr.ecr.eu-west-1.amazonaws.com/api:latest docker push 123456789012.dkr.ecr.eu-west-1.amazonaws.com/api:latest docker tag api-service:latest 123456789012.dkr.ecr.eu-west-1.amazonaws.com/ap…

  20. A few months ago, I wanted to host files stored on a portable hard disk on the public internet.

  21. example.com equivalent of IP addresses

    The example.com equivalent of IP address is the block of 192.0.2.0/24.

  22. API security

    https://owasp.org/www-project-api-security/ https://www.youtube.com/playlist?

  23. programming books and articles

    Working with Unix Processes Working with TCP Sockets Beej’s Guide Use the Index Luke

  24. CSRF Cookie

    Complete this note with auth methods and how they are implemented are resources. https://security.stackexchange.com/questions/166724/should-i-use-csrf-protection-on-rest-api-endpoints

  25. Actually good youtube channels

    Computer Science Reducible - 3b1b type videos of CS topics Ben Eater - Computer architecture and electronics Computerphile - Computer science explained Zero To ASIC Course Science Nils Berglund - YouTube Makes cool simulations Infotainment Asianometry - Y…

  26. packages, utils and tools

    broot - A new way to see and navigate directory trees hstr - shell history suggest box - easily view, navigate, search and manage your command history. pasystray - A nice pulse audio system tray written in c GitHub - Canop/rhit: A nginx log explorer

  27. noise generators

    https://mynoise.net/ https://brainaural.com/ https://asoftmurmur.com/

  28. the go programming language book notes

    These are notes that I took while reading the The Go Prgogramming Language book Interesting points Go has some strictness when it comes to compiling if packages are imported but not used - don’t compile if a newline is placed incorrectly - don’t compile.

  29. Freedom of Monetary Transaction

    Wrote the following in the FOSS United Telegram group, might expand this later as a blog post.

  30. AWS S3 access policy nuances

    If you want to give access to everything in the bucket (objects) make sure the resource arn for the s3 bucket must also have a /* indicating all objects in the bucket "Resource": [ "arn:aws:s3:::BUCKET-NAME", ] This one won’t give access to objects in…

  31. AWS Resource policies

    There are two ways to manage access of a bucket - user policies or resources policies.

  32. EKS vs ECS vs Fargate

    tldr; ECS is just AWS’s proprietary orchestration solution.

  33. using xxd to create binary data

    xxd is a great tool.

  34. playwright is really good for browser automation.

  35. TIL: literal ipv6 in URLs

    TIL from RFC2732 that the way you access an ipv6 address in a browser is by enclosing it in square brackets http://[2401:4900:f00b:dead:2f2d:48ac:9fdb:b7ff]:8080/path/file.txt

  36. setting up cgit with nginx

    server { server_name git.prithu.dev; listen 80; access_log /var/log/nginx/git.prithu.dev/access.log; error_log /var/log/nginx/git.prithu.dev/error.log; #auth_basic "Git Login"; #auth_basic_user_file "/srv/git/.htpasswd"; location /static

  37. resources to learn about aws vpc

    Videos Exploring the Fundamentals of AWS Networking (SVC211) AWS Networking Fundamentals Working with AWS Networking and Amazon VPC

  38. nginx reverse proxy and url rewrite

    Was just setting up shiori behind nginx and I wanted it such that https://prithu.dev/shiori passess the request to port 8001.

  39. keeping it simple dense and precise

    I am going to try to keep this as dense and precise as possible and only store “usefull” knowledge.

  40. Git hooks are great to automate your software development workflow.

  41. python one-liners using list composoition

    TIL that there are really good ways of writing one-liners in python.

  42. I saw a cool video by ghidra ninja on yt that went over firmware reversing for an a small security camera.

  43. dependency chain attack on magneto

    There are hardware skimmers that collect card data when swiped but there can also be code written that can skim cards in an online checkout screen using code injection techniques.

  44. physical pen testers

    I was listening to an episode of darknet diaries and learnt that there is this profession called a “physical penetration tester” where basically a person works for a institution who wants to test the security of their physical infrastructure (buildings).

  45. The beauty of Unix pipelines

    View discussion on Hacker News The Unix philosophy lays emphasis on building software that is simple and extensible.

  46. I see configurable software like vim and i3 really good tools to work with.

  47. i3bar screenshot It’s the IPL season and I thought why not keep a track of the score of the matches that are in progress.