This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dd if=$HOME/Downloads/ubuntu-12.10-desktop-i386.iso of=/dev/rdisk1 bs=20m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
require "fileutils" | |
include FileUtils::Verbose | |
def usage | |
puts "usage: jruby ORIGINAL_MUSIC_DIR" | |
end | |
if ARGV[0] and File.directory? ARGV[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Locale { | |
public static void main(String[] args) { | |
System.out.println(System.getProperty("file.encoding")); | |
System.out.println(System.getenv("LC_CTYPE")); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
$stdout.sync = true | |
@failed_tests = [] | |
@success = true | |
@executed = "" | |
def green(s) | |
"\e[1;32m#{s}\e[0m" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake/clean' | |
require 'jekyll' | |
require 'jekyll/site' | |
#remove the site dir. | |
CLEAN.include('_site') | |
desc "generate the site. keeping it simple." | |
task :generate do | |
options = Jekyll.configuration({}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'open-uri' | |
def camel_case(string) | |
return string.split('_').map{|e| e.capitalize}.join | |
end | |
def camel_case_lower(s) s.split('_').inject([]){ |buffer,e| buffer.push(buffer.empty? ? e : e.capitalize) }.join | |
end | |
json = JSON.load(open(ARGV[0])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ cd $ANDROID_SDK ➜ r21.1 git:(master) pwd /usr/local/Cellar/android-sdk/r21.1 | |
➜ r21.1 git:(master) cd platform-tools ➜ platform-tools git:(master) strings aapt nonav | |
dpad | |
navexposed | |
nokeys | |
12key | |
keysexposed | |
keyshidden | |
notouch | |
stylus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<target name="run-tests" depends="compile"> | |
<junit failureproperty="test.failure" includeantruntime="false"> | |
<classpath refid="run.classpath"/> | |
<formatter type="plain" usefile="no"/> | |
<batchtest todir="${reports.dir}" unless="test"> | |
<fileset dir="${source.dir}" includes="**/*Test.java"/> | |
<formatter type="xml"/> | |
</batchtest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="git" default="is-working-directory-clean"> | |
<target name="-git-status"> | |
<exec executable="git" outputproperty="git.status.message" failifexecutionfails="false" errorproperty=""> | |
<arg value="status"/> | |
<arg value="--short"/> | |
</exec> | |
<condition property="git.clean.wd"> | |
<and> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hej Jenkins, | |
Vi behöver prata. | |
Vi har varit ihop några år nu men som Oall good things¹ även vi måste ta | |
slut. | |
Du har fått ögonen upp för andra och jag känner att det är dags för mig | |
att släppt dig fri. |