Skip to content

Instantly share code, notes, and snippets.

@GavinPacini
GavinPacini / covid.sh
Last active January 8, 2022 23:32
HSE COVID Test Notifier for macOS
#!/bin/bash
# Intended for use on macOS with brew. Requires changes for other environments.
# run `brew install terminal-notifier jq` before use
# This script will run 12 times in a minute. Ideally, use it in a cronjob as so:
# * * * * * /path/to/covid.sh
# Change the path to wherever the script is
set -Eeuo pipefail
@jhaddix
jhaddix / content_discovery_all.txt
Created May 26, 2018 11:51
a masterlist of content discovery URLs and files (used most commonly with gobuster)
This file has been truncated, but you can view the full file.
`
~/
~
ים
___
__
_
@dikiaap
dikiaap / git-io-custom-url.md
Last active June 19, 2024 01:26
git.io custom URL

Update: As of 11 January 2022, git.io no longer accepts new URLs.

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
@notsobad
notsobad / 360img2gif.py
Created February 23, 2014 13:22
convert 360° images to gif.
from PIL import Image
import sys
import os
img_file = sys.argv[1]
im = Image.open(img_file)
w, h = im.size
print w, h
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active June 21, 2024 03:23
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S