Skip to content

Instantly share code, notes, and snippets.

@vestingz
vestingz / httpie-desec.md
Last active Apr 30, 2020
HTTPie for desec.io
View httpie-desec.md

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

@vestingz
vestingz / httpie-0x0.md
Last active Jan 25, 2023
HTTPie for 0x0
View httpie-0x0.md

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 / README.md
Created Oct 3, 2019 — forked from developius/README.md
Setup SSH keys for use with GitHub/GitLab/BitBucket etc
View README.md

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: