Skip to content

Instantly share code, notes, and snippets.

@ramonsmits
ramonsmits / gist:7563502
Created November 20, 2013 13:52
Example of Mandrill webhook JSON data.
[
{
"event": "send",
"msg": {
"ts": 1365109999,
"subject": "This an example webhook message",
"email": "[email protected]",
"sender": "[email protected]",
"tags": [
"webhook-example"
sudo apt-get -y install build-essential devscripts quilt
sudo apt-get -y build-dep openssl
apt-get source openssl
cd openssl-*
quilt pop -a # This removes updates
vi debian/patches/series # Remove no-ssl2.patch
vi debian/rules # Remove no-ssl2 in args
quilt push -a # Re-applies the updates
dch -n 'Allow dangerous v2 protocol'
dpkg-source –commit
@hh
hh / setwebui_adminpass.rb
Created February 13, 2012 23:37
reset admin webui password for chef
require 'rubygems'
require 'chef/config'
require 'chef/webui_user'
Chef::Config.from_file(File.expand_path("~/.chef/knife.rb"))
user = Chef::WebUIUser.load('admin')
user.set_password("MyAwesomePassword")
user.save