Skip to content

Instantly share code, notes, and snippets.

View gist:525267
require 'growl'
module Jekyll
class GrowlPreHook < Hook
safe false
sequence :pre
def run(site)
Growl.notify 'Building...', :title => 'Jekyll'
mpasternacki / 00-packages_builder.rb
Created May 29, 2012
Debian packaging continuous integration
View 00-packages_builder.rb
# Chef resources describing how to set up package repository server,
# simplified fromactual cookbook (not open sourced yet). Sets up apt
# repository in /srv/apt directory, with system user "apt-repo". Packages
# are GPG-signed to prevent apt-get from complaining on every install.
# Directory /srv/apt should be reachable to clients via http or other
# means. This is left as an exercise for the reader.
# For extra explanations, see:
View alfred.rb
dmg_package "Alfred" do
volumes_dir ""
source ""
checksum "c951c4dc05ff1091359358d710142cabef2c190be41f799244669f879cff7e80"
action :install
owner WS_USER
cecilemuller /
Last active Jan 29, 2016
Let's encrypt (Nginx, Ubuntu 14.04 LTS)

Install the client:

apt-get install git
git clone
cd letsencrypt

Generate certificates using manual mode:

View Port Knocking with Scapy Example
Port Knocking with scapy example.
Knock on port 42304
Knock on port 53768
Knock on port 3297
HTTP request to port 19760
Now, to get the flag, we just need to write a small scrip to implement all this logic. We will use the scapy python library to perform the port knocking and curl for the HTTP request part:
joe-pindell / ExportThingsToTaskPaper.scpt
Created Apr 8, 2011
An Applescript to export from Things to TaskPaper
View ExportThingsToTaskPaper.scpt
set thePath to (path to desktop as Unicode text) & "ThingsToDo.txt"
set thingsToDoFile to (open for access file thePath with write permission)
set eof of thingsToDoFile to 0
set cr to ASCII character 10
tell application "Things"
-- Export to-dos from Inbox
write "Inbox:" & return to thingsToDoFile as «class utf8»
repeat with td in to dos of list "Inbox"
fnichol /
Last active Nov 19, 2019
Auto-enable Local HTTP Caching in Test Kitchen

Auto-enable Local HTTP Caching in Test Kitchen

Note: total experiment and hack, looks nasty, could be awesome:


  • Drop the kitchen.local.yml into $HOME/.kitchen/config.yml
  • Install polipo (with Mac: brew install polipo, with Ubuntu: apt-get install polipo)
  • Drop polipo-start and polipo-console somewhere useful (perhaps $HOME/bin?)

Create a Windows OpenStack VM with VirtualBox

0. Obtain Windows ISO

  • Use an existing ISO or copy from a CD with dd if=/dev/cdrom of=image.iso

1. Boot VirtualBox VM from Windows ISO

  • Qcow disk type
  • 40GB Root Disk
  • Load your Windows ISO to the Primary CD drive
  • Add a secondary CD drive and attach the VirtIO ISO to it
dcode /
Last active May 18, 2020
Enable the OL7 Add-ons repo. Includes virtualbox, docker, R, and others.
cat << EOF | sudo tee /etc/yum.repos.d/ol7_addons.repo
name=Oracle Linux $releasever Add ons (\$basearch)
# Verify this manually if you're paranoid like me
#!/usr/bin/env python
import os
import sys
import platform
import requests
import requests.utils
import certifi