Skip to content

Instantly share code, notes, and snippets.

View docker-compose.yml
version: "2"
image: bubuntux/nordvpn
container_name: vpn
- net_admin
- /dev/net/tun
jlyman /
Created Oct 21, 2015
Current version of codesigner script I'm trying to use to sign Electron apps for use on OS X (not MAS).
# Invoke this script with a relative `.app` path
# EX:
# "dist/osx/MyApp-darwin-x64/"
# I had better luck using the iPhoneOS codesign_allocate
export CODESIGN_ALLOCATE="/Applications/"
#export CODESIGN_ALLOCATE="/Applications/"
# Next two are specified in Apple docs:
# export CODESIGN_ALLOCATE="/Applications/"
tywkeene /
Last active Apr 27, 2020
Encrypt files and directories securely with pgp/tar/gzip/shred all in a small shell script
#!/usr/bin/env bash
set -e
function yesno() {
read -p "$1 Continue? (y/n): "
case $(echo -e "$REPLY" | tr '[A-Z]' '[a-z]') in
y|yes) echo "yes" ;;
*) echo "no" ;;
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Based on pdfcrop.pl_. Uses the BoundingBox [#]_
- PyPDF2_
99darwin /
Created Jan 11, 2019
Deploy Meteor App with MUP and Migrate Local MongoDB to Remote Server

Deploy Meteor app and migrate the built-in, local MongoDB to a remote server where the app is hosted.

It took me days to actually get this working, so I figured I would write out the steps I took to finally resolve the issue for my own assistance in the future and, hopefully, to help others who encounter this problem.

Create .deploy folder in your app's directory

cd .deploy
mup init

Configure the mup.js file to match your configuration. Here's an extremely basic example:

drmikecrowe / docker-compose.yml
Last active Dec 4, 2021
Ultimate docker-compose setup for home media center
View docker-compose.yml
version: "3"
image: "linuxserver/radarr"
dns_search: local
duncansmart / ios-sms.sql
Created Sep 25, 2014
Query to extract iOS Messages from backup
View ios-sms.sql
-- Do a backup to iTunes and open "%APPDATA%\Apple Computer\MobileSync\Backup\*\3d0d7e5fb2ce288813306e4d4636395e047a3d28" as a SQLite database
SELECT chat.chat_identifier, message.is_from_me, datetime( + 978307201, 'unixepoch') as date, message.text
FROM chat
JOIN chat_message_join on chat.ROWID = chat_message_join.chat_id
JOIN message on message.ROWID = chat_message_join.message_id
order by
Neil-Smithline /
Created Mar 18, 2012
Mac OS X Idle Time Shell Script
# Get MacOSX idletime. Shamelessly stolen from
/usr/sbin/ioreg -c IOHIDSystem | /usr/bin/awk '/HIDIdleTime/ {print int($NF/1000000000); exit}'
View docker-compose.yml
version: '3'
image: plexinc/pms-docker:beta
container_name: plex
restart: always
network_mode: host
- $PWD/plex/config:/config
jfloff /
Last active Jul 26, 2022
How to get MAMP to work with SSL ... Yes really.

First of all you need to be able to run MAMP in port 80. This is a "heat check" if you don't have any process jamming http ports. You can check it like this:

sudo lsof | grep LISTEN

If you do happen to have any process with something like this *:http (LISTEN), you are in trouble. Before with adventure check if it isn't MAMP itself (yeah, you should close that beforehand)

ps <pid of that process>

If you don't see MAMP, you are in good hands, I have just the thing for you: