View gist:fb1ee453a539e62d545b
#!/bin/bash
mkdir tmp
mv $1 tmp
convmv -f utf8 -t cp866 tmp/$1 --notest
zip -r $1 tmp/*
View gist:f9ee97d525f1f49a9330
#!/usr/bin/ruby
require 'rubygems'
require 'zip'
class ZipFileGenerator
# Initialize with the directory to zip and the location of the output archive.
def initialize(inputDir, outputFile)
@inputDir = inputDir
@outputFile = outputFile
View gist:0fe836bc3817738a988f
#Linux
Can't install RMagick 2.13.2. Can't find Magick-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$sudo apt-get install libmagickcore-dev libmagickwand-dev
#OSX
checking for Magick-config... no
Can't install RMagick 2.13.2. Can't find Magick-config in /Users/kevit/.rvm/gems/ruby-1.9.3-p448@wjenkins/bin:/Users/kevit/.rvm/gems/ruby-1.9.3-p448@global/bin:/Users/kevit/.rvm/rubies/ruby-1.9.3-p448/bin:/Users/kevit/.rvm/bin:/usr/local/heroku/bin:/Users/kevit/bin/packer:/Users/kevit/Projects/ansible/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/MacGPG2/bin:/opt/local/bin:/usr/local/git/bin:/sw/bin:/sw/sbin:/usr/local/magicwrap/bin:/opt/local/sbin:/Users/kevit/bin:/Users/kevit/Projects/hubot/nodejs/bin:/usr/local/sbin
solution:
$brew install imagemagick
View gist:cf1b0e212705572683b5
Before closing the chat, go to Contact menu and click on "Add Group Chat Bookmark."
Save it to the preferred list and click on "Add."
Context menu for contact Get info-> Advanced Settings->Bookmark/Automatically join
View todo.md

#header

  • test
  • closed
View gist:4986610
#!/bin/sh
#http://getpocket.com/import/instapaper
set -x
cat >> /tmp/import.html << "EOF"
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Instapaper: Export</title>
</head>