Skip to content

Instantly share code, notes, and snippets.

@vestingz
vestingz / README.md
Created October 3, 2019 17:18 — forked from developius/README.md
Setup SSH keys for use with GitHub/GitLab/BitBucket etc

Create a new repository, or reuse an existing one.

Generate a new SSH key:

ssh-keygen -t rsa -C "your_email@example.com"

Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings.

Test SSH key:

@vestingz
vestingz / httpie-0x0.md
Last active January 25, 2023 23:06
HTTPie for 0x0

Post file

http -f https://envs.sh file@/path/to/file.xyz

Post remote URL

http -f https://envs.sh url=https://domain.xyz/file.abc

Post from STDIN

echo supdawg | http -f --ignore-stdin https://envs.sh file@/file/stdin

Shorten URL

@vestingz
vestingz / httpie-desec.md
Last active April 30, 2020 20:26
HTTPie for desec.io

Create new subdomain with A record

http 'https://desec.io/api/v1/domains/yourdomain.dedyn.io/rrsets/' \
Authorization:" Token <token>" \
Content-Type:" application/json" \
subname=<subdomain> \
type=A \
ttl=3600 \
records:='["1.2.3.4"]'

Update existing subdomain record