Skip to content

Instantly share code, notes, and snippets.

@zhujunsan
zhujunsan / etc_config_sockd
Last active October 23, 2023 19:22
Openwrt sockd init scripts
config sockd
option external 'wg0'
option internal '127.0.0.1'
option clientmethod 'none'
option socksmethod 'none'
option user_privileged 'root'
option user_notprivileged 'nobody'
option logoutput 'syslog'
option port '10080'
@loziju
loziju / macosx-configure-postfix-as-relay.md
Last active April 4, 2025 12:03
Configure postfix as relay for OS X
@sh1n0b1
sh1n0b1 / ssltest.py
Created April 8, 2014 07:53
Python Heartbleed (CVE-2014-0160) Proof of Concept
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@mathiasbynens
mathiasbynens / appify
Created November 12, 2010 13:46 — forked from subtleGradient/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh