Creates a tarball of Chef cookbooks from a Berksfile or Cheffile for chef-solo.
Copy the program to your local machine (perhaps ~/bin
?) and install
Berkshelf or Librarian-Chef:
# This options file will have your get_iplayer (linuxcentre.net) running smoothly on mac os x, outputting iTunes friendly m4v files (provided you install the binaries as explained below) | |
# Usually found in ~/.get_iplayer/options | |
# Download and install the binaries as described on his site, but be sure to install them to /usr/local/bin (and make sure they're executable) | |
# $ chmod +x ffmpeg | |
# $ sudo mv ffmpeg /usr/local/bin/ffmpeg | |
# and similar for flvstreamer. lame will install there by default and mplayer is explained below (for itv downloads) | |
rtmpdump /usr/local/bin/flvstreamer | |
lame /usr/local/bin/lame | |
fileprefix <name> - <episode> - <pid> |
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
.DS_Store | |
Gemfile.lock | |
*.pem | |
node.json | |
tmp/* | |
!tmp/.gitignore |
#!/usr/bin/python | |
""" | |
Run this with something like iostat -nx 60 2 | iostat_to_graphite.py | |
""" | |
import sys, os, re, socket, time | |
"""ARGF from Ruby in Python. | |
Released into the public domain by Andrew Gwozdziewycz, 2010 | |
""" |
// Using the Modular Scale plugin along with Compass Vertical Rhythms module. | |
// The goal is to use MS to give us the values, | |
// and use VR to apply those values to our typography. | |
// --------------------------------------------------------------------------- | |
// Defaults | |
$base-size: 24px; | |
$ratio: major-third() fifth(); |
curl -XDELETE 'http://localhost:9200/test-idx' | |
echo | |
curl -XPUT 'http://localhost:9200/test-idx' -d '{ | |
"mappings": { | |
"article": { | |
"properties": { | |
"a": { | |
"type": "integer" | |
}, | |
"b": { |
.DS_Store |
disable_flush
and disable_recovery
(TD)Idea: grunt-contrib-imagemin as a Service