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
# Run: curl https://gist.github.com/raw/719970/locale_diff.rb | ruby - en fi | |
require 'rubygems' | |
require 'yaml' | |
l1 = ARGV[0] | |
l2 = ARGV[1] | |
first = YAML.load_file(l1 + ".yml") | |
second = YAML.load_file(l2 + ".yml") | |
def diff(root, compared, structure = []) |
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
Anonymous UUID: E5D1BFAC-92BE-E80F-8B40-B98D0C51CE49 | |
Thu Jan 16 19:47:06 2014 | |
panic(cpu 1 caller 0xffffff8004edc19e): Kernel trap at 0xffffff80051de357, type 14=page fault, registers: | |
CR0: 0x000000008001003b, CR2: 0x0000000000000128, CR3: 0x000000019d89a094, CR4: 0x00000000000206e0 | |
RAX: 0x0000000000000000, RBX: 0x0000000000000004, RCX: 0xffffff80054ca530, RDX: 0xffffff802bcd6ce0 | |
RSP: 0xffffff80f541bd20, RBP: 0xffffff80f541bde0, RSI: 0x0000000023acea34, RDI: 0xffffff801b1e9e30 | |
R8: 0x000000000000003b, R9: 0xffffff8005401910, R10: 0x00000000000003ff, R11: 0xffffffffffffffff | |
R12: 0x0000000000000000, R13: 0xffffff802bcd6c88, R14: 0x0000000000000000, R15: 0x0000000000080000 | |
RFL: 0x0000000000010246, RIP: 0xffffff80051de357, CS: 0x0000000000000008, SS: 0x0000000000000010 |
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
<div> | |
<div> | |
<div class="main">Foo</div> | |
<div id="id1" class="elem">Bar</div> | |
</div> | |
<div> | |
<div class="main">Monkey</div> | |
<div id="id2" class="elem"><input id="id3" type="text" name="leet" /></div> | |
</div> | |
</div> |
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
{ | |
"fields": [{ | |
"fieldId": "code", | |
"groupId": "general", | |
"rendererId": "product", | |
"isEditable": true, | |
"fi_FI.label": "Kivesjärven Siwa", | |
"fieldType": "STRING" | |
}, { | |
"fieldId": "new_enum", |
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
#!/bin/bash | |
if [ "$(whoami)" != 'root' ]; then | |
echo "You have no permission to run $0 as non-root user." | |
exit 1; | |
fi | |
pmset hibernatemode 25 | |
osascript -e 'tell application "System Events" to sleep' | |
sleep 5m | |
pmset hibernatemode 3 |
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
# 1. Install buildr: gem install buildr | |
# 2. Go to kernel directory | |
# 3. Run: buildr -f ~/somewhere/buildfile install / test / compile | |
# NOTE that the tests are currently forced off because otherwise compilation fails | |
repositories.remote << 'http://sirppi.relex.fi:8081/nexus/content/groups/public' | |
BUILD = [ | |
'antlr:antlr:jar:2.7.6', | |
'aopalliance:aopalliance:jar:1.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
module Test | |
class One | |
def instance | |
puts "instance" | |
end | |
def self.class_meth | |
puts "class" | |
end | |
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 'formula' | |
class Node <Formula | |
url 'http://nodejs.org/dist/node-v0.4.0.tar.gz' | |
head 'git://github.com/ry/node.git' | |
homepage 'http://nodejs.org/' | |
md5 '18f89256751f9b8e27dee8494f508171' | |
# Stripping breaks dynamic loading | |
skip_clean :all |
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
Rails CMS alternatives | |
====================== | |
Note: project activity was checked on 11/26/09 for most of these projects, and the "last update" field has not been kept up to date since then. | |
Active projects: | |
--------------- | |
adva-cms | |
repo: http://github.com/svenfuchs/adva_cms/ | |
site: http://adva-cms.org/ | |
Last update: 11/24/09 |
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
[15:32][massive@Ziggy:~/code/fastorm1/backend [fastorm-sc]]% gpush | |
Counting objects: 138, done. | |
Delta compression using up to 8 threads. | |
Compressing objects: 100% (14/14), done. | |
Writing objects: 100% (15/15), 3.06 KiB | 0 bytes/s, done. | |
Total 15 (delta 11), reused 0 (delta 0) | |
remote: Running pre-receive hooks... | |
remote: Running commit checks... | |
remote: hooks/pre-receive:8: warning: Insecure world writable dir /opt in PATH, mode 040777 | |
remote: hooks/relex/pre-receive.commit-checks:68: warning: Insecure world writable dir /opt in PATH, mode 040777 |
NewerOlder