Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 149
  1. Articol fără titlu

    extends: _layouts.post date: 2011-03-21 title: Your Medical Resume categories: [misc] section: content description: Your CV for your health.

  2. I have two external bluetooth keyboards.

  3. Jesse – Carly Simon

    This is the first soundtrack I wanted to write.

  4. Seconds

    So: 1 second (s) = 1,000 milliseconds (ms) 1 second (s) = = 1,000,000 microseconds (μs) But, I want to work these into my day-to-day more, eg: "Sure, but give me a hectosecond."

  5. I recently needed to test a MySQL connection in a k8s pod without an editor installed and running as a non-privileged user without installation rights on a read-only filesystem.

  6. For some reason, I hate maximized windows.

  7. I have my wierd Ubuntu laptop keyboard mapped the way I want it, and bought a new bluetooth, ergonomic, portable keyboard whose mappings are also weird and hosed.

  8. .vimrc File Backup

    There is no rhyme or reason to the structure, just a pile of settings.

  9. Binary Trees

    EXCELLENT article on b-trees, with animations that make it very easy to understand: https://planetscale.com/blog/btrees-and-database-indexes Also a good video: https://www.youtube.com/watch?

  10. Drill: Guess the Binary Number

    I wanted to be able to read binary numbers better, mostly 0-255, because it is sometimes used in networking and because it's interesting to me right now.

  11. Names in OSI Model

    Application Layer: Data Transport Layer: Segment Network Layer: Packet Link/Physical Layer: Frame

  12. Drill: Guess the Hex Number

    I wanted to be able to read hex numbers better, mostly 0-255, because it is sometimes used in networking and because it's interesting to me right now.

  13. Man-in-the-Middle (mitm) Proxy

    This thing is fantastic: Man in the Middle Proxy.

  14. Subnetting (and Drills)

    Subnetting Cheat Sheet**: 128 64 32 16 8 4 2 1 128 192 224 240 248 252 254 255 /25 /26 /27 /28 /29 /30 /31 /32 /17 /18 /19 /20 /21 /22 /23 /24 /9 /10 /11 /12 /13 /14 /15 /16 /1 /2 /3 /4 /5 /6 /7 /8 Using that cheatsheet, solve for: Netwo…

  15. How to check collation and charset in mysql.

  16. I'm self taught at developing.

  17. I use both Mac and Linux.

  18. So, one thing a lot of people want that PHP doesn't natively support is typed arrays.

  19. In code using legacy PDO-style statements, if you need to do something like an "IN" query using user-supplied data, you're in for danger if you don't parameterize them.

  20. How to show data and index size in your mysql tables. select table_schema, TABLE_NAME, dat, idx from (SELECT table_schema, TABLE_NAME, ( data_length ) / 1024 / 1024 as dat, ( index_length ) / 1024 / 1024 as idx FROM information_schema.TABLES…

  21. Why Change to AWS Amplify?

    I had been running this blog on AWS S3.

  22. Intercept sockets using playwright with dev console trick. from playwright.sync_api import sync_playwright import time import re import sys import argparse from PIL import Image import os import PIL import glob from urllib.parse import urlparse parser = a…

  23. Kubernetes CoreDNS Notes

    Some notes to help me remember some Kubernetes items: Core DNS handles all of the DNS internally.

  24. Run as daemon mode: docker run -d -p 8090:8090 --rm -it zaproxy/zap-stable zap.sh -daemon -port 8090 -host 0.0.0.0 Desktop UI: docker run -u zap --rm -it -p 8080:8080 -p 8090:8090 -i ghcr.io/zaproxy/zaproxy:stable zap-webswing.sh Then go to http://local…

  25. Recently I was testing some log aggregation, and I needed to write data to stdout/stderr so that the logging agent could send them to the aggregator.

  26. If you need to check whether a VPC is being used -- you do not want to delete a VPC if it is being used, you can double-check it with this command: aws ec2 describe-network-interfaces --filters Name=vpc-id,Values=<vpc-id>

  27. Ippsec's nmap command

    YouTube star ippsec's favorite nmap for initial recon: sudo nmap -sC -sV -vv -oA nmap/saved_results.txt <ip address>

  28. Cloudflare API Example in bash/curl.

  29. This is hard for me to remember.

  30. Git Config Backup

    [filter "lfs"] clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f process = git-lfs filter-process required = true [user] name = email = [core] autocrlf = input symlinks = true excludesfile = /Users/ha/.gitignore [alias] # grep logs # N…

  31. ARP in Networking

    ARP in Networking ARP (Address Resolution Protocol) is a fundamental networking protocol.

  32. Promises in Three Languages

    Three ways to handle concurrent API requests that resolve when all are done, but can run concurrently.

  33. Concurrency vs Parallelism

    Concurrency is handling multiple tasks during the same time.

  34. Things to know about Concurrency: 1.

  35. The `awk` Command

    To determine whether a website is using only IPv6 or if it supports both IPv4 and IPv6 (dual stack), you can do: a.

  36. Bring a git subfolder and it's history over to start a new repo: https://docs.github.com/en/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository I did this for a repo and it was not as straightforward as that sounds.

  37. Wireshark

    Here's some notes on Wireshark, especially filtering results.

  38. Docker runs on linux natively, but Docker Desktop works on a Mac by creating a virtual machine, installing Linux, and then running on top of that.

  39. When SQLing, I sometimes run across this -- I do SELECT department AS dept, COUNT(*) FROM employees GROUP BY dept; and it won't work and I wonder why.

  40. SQL Window Functions (`OVER`)

    So, I found this confusing at first: OVER is how you define a window, and you can use a list of functions, window-specific and aggregate, to populate the window.

  41. We had quite a few deadlock issues with some old code at a job I had a few years ago.

  42. Kubernetes ConfigMap Values

    Extract a Specific Key from a ConfigMap: You can use jq or yq to parse JSON or YAML output to get specific values.

  43. Signal processing in three scripting languages: PHP <?

  44. Python Instance Types

    Python's gettype or instanceof is isinstance(). isinstance() can be used to check for a variety of object types in Python.

  45. Hexidecimal Math

    Can I do math in hexidecimal??

  46. Type "foobar" (no quotes) into a text file, open in a hex editor.

  47. Command to find out what shared libraries an executable needs: ldd /bin/bash eg > ldd /bin/bash linux-vdso.so.1 (0x0000ffff8eac2000) libtinfo.so.6 => /lib/aarch64-linux-gnu/libtinfo.so.6 (0x0000ffff8e8d0000) libc.so.6 => /lib/aarch64-linux-gnu…

  48. Sometimes I type a command in linux and it's not found.

  49. Docker RUN v CMD v ENTRYPOINT

    RUN - (buildtime) during image build, lines in a bash script to install everything for the image.

  50. Docker RUN v ADD v COPY

    I was wondering why we needed specific commands like COPY, instead of just RUN cp file1 file2.