Skip to content

Instantly share code, notes, and snippets.

View apetresc's full-sized avatar

Adrian Petrescu apetresc

View GitHub Profile
@apetresc
apetresc / 1-wtwlf-images.md
Last active December 29, 2015 21:27
wtwlf's SW:CCG Cube
@apetresc
apetresc / script.js
Created July 28, 2015 03:21
Total set value from MTGStocks.com set page
$('.right').toArray().reduce(function(x, y, i, a) { return parseFloat(y.innerHTML.substring(1)) + x; }, 0.0).toFixed(2);
@apetresc
apetresc / .zsh-aliases
Created May 13, 2015 14:33
This alias causes zsh to segfault on `brew upgrade`
alias brew-upgrade='brew upgrade'
brew-upgrade() {
brew upgrade --all
}
@apetresc
apetresc / gist:d5d8ff851bf7f01fb3a7
Created January 12, 2015 21:18
Cassandra JVM params
-ea
-javaagent:/usr/local/cassandra/lib/jamm-0.2.6.jar
-XX:+CMSClassUnloadingEnabled
-XX:+UseThreadPriorities
-XX:ThreadPriorityPolicy=42
-Xms7540M
-Xmx7540M
-Xmn800M
-XX:+HeapDumpOnOutOfMemoryError
-Xss256k

Keybase proof

I hereby claim:

  • I am apetresc on github.
  • I am apetresc (https://keybase.io/apetresc) on keybase.
  • I have a public key whose fingerprint is 4569 D011 F994 531A D8F3 A362 4A3F AF25 27A0 B509

To claim this, I am signing this object:

@apetresc
apetresc / dmesg
Created August 6, 2014 19:26
dmesg
[ 4469.277419] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 4469.278023] IP: [< (null)>] (null)
[ 4469.278317] PGD 12988067 PUD 13f6d067 PMD 0
[ 4469.278600] Oops: 0010 [#20] SMP
[ 4469.278874] Modules linked in: vboxsf(OF) dm_crypt ppdev nfsd vboxvideo(OF) auth_rpcgss nfs_acl psmouse nfs lockd sunrpc serio_raw i2c_piix4 vboxguest(OF) parport_pc fscache drm lp mac_hid parport e1000
[ 4469.279733] CPU: 0 PID: 3448 Comm: bash Tainted: GF D O 3.13.0-24-generic #46-Ubuntu
[ 4469.280041] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[ 4469.280041] task: ffff8800170947d0 ti: ffff8800128f8000 task.ti: ffff8800128f8000
[ 4469.280041] RIP: 0010:[<0000000000000000>] [< (null)>] (null)
[ 4469.280041] RSP: 0018:ffff8800128f9d00 EFLAGS: 00010246
@apetresc
apetresc / backtype.storm.cluster-test.xml
Created June 16, 2014 19:33
Error report for v0.9.2-incubating
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite package="backtype.storm" name="cluster-test">
<testcase name="test-basics" classname="backtype.storm.cluster-test">
</testcase>
<testcase name="test-ephemeral" classname="backtype.storm.cluster-test">
</testcase>
<testcase name="test-storm-cluster-state-errors" classname="backtype.storm.cluster-test">
RuntimeException =&gt; java.lang.IllegalArgumentException
at backtype.storm.cluster_test$fn__6869.invoke(cluster_test.clj:211)
@apetresc
apetresc / convert_mtgo.py
Last active August 31, 2021 19:32
A script to convert an MTGO .csv export into a Decked Builder .coll file.
from collections import defaultdict
import csv
import os
import sys
set_map = {
'ALR': 'Alara Reborn',
'AL': 'Alliances',
'AQ': 'Antiquities',
'AP': 'Apocalypse',
@apetresc
apetresc / dabblet.css
Created May 26, 2014 21:16
Triangle with Shadow
/*
Triangle with Shadow
*/
.triangle-with-shadow {
width: 100px;
height: 100px;
position: relative;
overflow: hidden;
box-shadow: 0 0px 10px -17px rgba(0,0,0,0.5);
@apetresc
apetresc / jetty.xml
Created May 14, 2014 21:15
SmartOS/Solaris SMF Manifest for Jetty
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle
    type="manifest"
    name="jetty">
    <service
        name="application/servers/jetty"
        type="service"
        version="1">
        <create_default_instance enabled="false" />