Skip to content

Instantly share code, notes, and snippets.

View jmervine's full-sized avatar

Joshua Mervine jmervine

View GitHub Profile
@jmervine
jmervine / cert_convert.sh
Created November 17, 2014 21:57
openssl: convert cert from p7b to crt (or cer)
openssl pkcs7 -print_certs -in old.p7b -out new.crt
# openssl pkcs7 -print_certs -in old.p7b -out new.cer
package sri
import (
"crypto/sha256"
"encoding/base64"
"fmt"
"io/ioutil"
)
func Generate256(file string) (string, error) {
@jmervine
jmervine / golang-crosscompile-build.bash
Last active December 25, 2023 16:54
Scripts to setup golang cross-compiling and build an application on all setup platforms. Tested on: Linux 3.8.0-36-generic #52~precise1-Ubuntu SMP x86_64
#!/bin/bash
#
# usage: ./golang-crosscompile-build.bash /path/to/target.go
# argument handling
test "$1" && target="$1" # .go file to build
if ! test "$target"
then
echo "target file required"

Druid Bear Macros

Bear Weaving - 1

This is the generic macro that is from the Druid Discord. It switches you to bear, if you're not already in bear, then casts Mangle and then switches you back to cat.

NOTE: This needs to be spammed or it will reset and you'll be suck in bear, you have 4.5 seconds before that occurs.

#showtooltip
/startattack
/run if GetSpellCooldown(768)>0 then SetCVar("autoUnshift",0) end;
@jmervine
jmervine / 01_nginx.conf
Last active November 27, 2021 16:04
Nginx Based A/B testing.
worker_processes 1;
events {
worker_connections 1024;
}
http {
include /home/t/nginx/conf/mime.types;
default_type application/octet-stream;
@jmervine
jmervine / dump_memory.sh
Created November 6, 2012 20:33
dump process memory to file
#!/bin/bash
if [ "$1" == "" ]; then
echo "proc id required"
exit 1
fi
grep rw-p /proc/$1/maps | sed -n 's/^\([0-9a-f]*\)-\([0-9a-f]*\) .*$/\1 \2/p' | while read start stop; do
gdb --batch --pid $1 -ex "dump memory $1-$start-$stop.dump 0x$start 0x$stop";
done
@jmervine
jmervine / general.md
Last active July 21, 2021 23:42
WoW Macros

General Macros and Commands

Commands

Change Cursor Size

Options:

  • -1 is auto
  • 0 is smallest
  • 2 is biggest
/console cursorsizepreferred 2

Keybase proof

I hereby claim:

  • I am jmervine on github.
  • I am jmervine (https://keybase.io/jmervine) on keybase.
  • I have a public key ASDOuYiK6ravSKukxmkirax9szSKJOQyrS0XIfFrEqPYugo

To claim this, I am signing this object: