This gist is to remind me (and anyone else who it helps) how to quickly disable and re-enable Notification Center.
- Open your terminal (<⌘ + ␣ (spacebar)>, then type "terminal", then press <↩ (enter)>).
access_key_id: xxx | |
secret_access_key: yyy |
root_DN = /CN=Esotericsystems Root Authority/C=AT/ | |
issuing_DN = /CN=Esotericsystems Issuing Authority/C=AT/ | |
passphrase: | |
echo -n changeme > $@ | |
# | |
# Create param files, keys and Self-Signed Certificate for the Root CA | |
# | |
root-ca-dsa.param: passphrase |
require 'sinatra/base' | |
require 'forwardable' | |
class I18n | |
def self.t(s); "I18n.t(#{s})"; end | |
def self.l(s); "I18n.l(#{s})"; end | |
end | |
class App < Sinatra::Base | |
extend Forwardable |
#!/usr/bin/env ruby | |
#-*- encoding: utf-8 -*- | |
# http://blog.evernote.com/tech/2013/08/08/evernote-export-format-enex/ | |
require 'nokogiri' | |
require 'date' | |
require 'ostruct' | |
class Note < OpenStruct; end |
#!/usr/bin/env coffee | |
# | |
# install on ubuntu: | |
# sudo apt-get install automake autoconf libpcap-dev zlib1g-dev libboost-dev libcairo2-dev | |
# | |
# cd /tmp/ | |
# git clone --recursive -b tcpflow-1.4.4 [email protected]:simsong/tcpflow.git tcpflow/ | |
# cd tcpflow/ | |
# | |
# sh bootstrap.sh |
import code; code.interact(local=dict(globals(), **locals())) |
/****************** | |
* minesweeper.js * | |
****************** | |
* | |
* So much for Asimov's Laws. They're actually trying to kill | |
* you now. Not to be alarmist, but the floor is littered | |
* with mines. Rushing for the exit blindly may be unwise. | |
* I need you alive, after all. | |
* | |
* If only there was some way you could track the positions |
"""Download Dash User Docsets and install them in Zeal""" | |
import configparser | |
import json | |
import tarfile | |
import urllib.request | |
from pathlib import Path | |
from sys import platform | |
import easygui |
#!/usr/bin/env bash | |
# Must be run as root / sudo | |
# Reference: https://askubuntu.com/questions/966585/ubuntu-17-10-upgrade-broke-vmware-workstation-12-5 | |
if [ $(dpkg-query -W -f='${Status}' linux-headers-generic 2>/dev/null | grep -c "ok installed") -eq 0 ]; | |
then | |
echo "Kernel Headers Package Missing" | |
echo "apt-get install linux-headers-generic"; | |
exit 1 | |
fi |