Skip to content

Instantly share code, notes, and snippets.

View massive's full-sized avatar
🏠
Working from home

Matias Käkelä massive

🏠
Working from home
  • Relex Solutions
  • Helsinki, Finland
View GitHub Profile
@massive
massive / data.json
Last active December 2, 2015 11:31
{
"fields": [{
"fieldId": "code",
"groupId": "general",
"rendererId": "product",
"isEditable": true,
"fi_FI.label": "Kivesjärven Siwa",
"fieldType": "STRING"
}, {
"fieldId": "new_enum",
[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

Keybase proof

I hereby claim:

  • I am massive on github.
  • I am massive (https://keybase.io/massive) on keybase.
  • I have a public key whose fingerprint is 9564 9C83 0640 A5FB 7891 F300 98BC D7A9 6209 52BA

To claim this, I am signing this object:

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
<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>
@massive
massive / hibernate.sh
Created September 26, 2011 06:51
OSX Lion hibernate script
#!/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
@massive
massive / buildfile.rake
Created May 5, 2011 14:09
Buildr file for Kernel
# 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',
module Test
class One
def instance
puts "instance"
end
def self.class_meth
puts "class"
end
end
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
@massive
massive / locale_diff.rb
Created November 29, 2010 13:51
Compares two YAML locale files and displays the difference
# 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 = [])