Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
# Credit to frogor for the objc
from Foundation import NSBundle
import json
import objc
import os
import plistlib
import subprocess
@deargle
deargle / client.conf
Last active April 3, 2025 18:13
OpenVPN server.conf and client.conf
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
@pwenzel
pwenzel / TransmissionPushover.sh
Created May 22, 2016 01:30
Send iOS push notification when torrent is complete, via Pushover
#!/bin/sh
#
# Send push notification to pushover device when a torrent is complete.
#
# Requires: Pushover account, Transmission torrent client and curl.
#
# Get the API token from the pushover website.
# Change text output below if you wish.
# Set Transmission to start script when torrent is complete.
@benhoIIand
benhoIIand / .zshrc
Last active October 15, 2021 08:36
Configuration for ZSH with aliases
# Path to your oh-my-zsh installation.
export ZSH=/Users/bholland/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="random"
# Uncomment the following line to use case-sensitive completion.
@evantoli
evantoli / GitConfigHttpProxy.md
Last active October 16, 2025 09:11
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active October 18, 2025 22:31
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@cemerson
cemerson / chrome.reg
Created October 3, 2013 17:33
Chrome Default Browser Registry keys
; REPLACE USERNAME w/your username
; ============ for Chrome Browser
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\http\shell\open\command]
@="\"C:\\Users\\USERNAME\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe\" -- \"%1\""
[HKEY_CURRENT_USER\Software\Classes\https\shell\open\command]
@="\"C:\\Users\\USERNAME\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe\" -- \"%1\""
@raelmax
raelmax / get_repos.sh
Created October 21, 2012 00:50
Get all repos from bitbucket account
curl -u ${1} https://api.bitbucket.org/1.0/users/${1} > repoinfo
for repo_name in `grep \"name\" repoinfo | cut -f4 -d\"`
do
repo="${repo_name}.git"
git clone git@bitbucket.org:${1}/$repo
done
@textarcana
textarcana / git-log2json.sh
Last active August 4, 2025 13:00
Convert Git logs to JSON. The first script (git-log2json.sh) is all you need, the other two files contain only optional bonus features 😀THIS GIST NOW HAS A FULL GIT REPO: https://github.com/context-driven-testing-toolkit/git-log2json
#!/usr/bin/env bash
# Use this one-liner to produce a JSON literal from the Git log:
git log \
--pretty=format:'{%n "commit": "%H",%n "author": "%aN <%aE>",%n "date": "%ad",%n "message": "%f"%n},' \
$@ | \
perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \
perl -pe 's/},]/}]/'