Skip to content

Instantly share code, notes, and snippets.

View smb's full-sized avatar
🎮
Working

Steffen smb

🎮
Working
View GitHub Profile
declare -x GIT_SSH=/bin/winssh
--
#!/bin/sh.exe
/bin/plink.exe -i “H:\ssh\github-putty.ppk” $1 $2
@smb
smb / sbArmoryPetStalker.rb
Created October 11, 2012 10:55
wow/battlenet armory pet(-name)-stalking
#!/bin/env ruby
# encoding: utf-8
require 'rubygems'
require 'json'
require 'net/http'
region = "eu"
realm = "khaz'goroth"
character = "Smb"
@smb
smb / wa-stormlash
Created October 16, 2012 14:50
WeakAuras, Stormlash Raid Announce
dyunfaGivQlrviJIQOtrvXSqIBHu1UqvnmjYXujldi8mPuAAi01qk2gsPVrvPXjLkNdiADufQ3HK09qQCqjQfcu9qQsnrKexejvBufQtsvYkruZufOBkLIDsv1pLsYqrszPuf8uktfvUQkKVQcAUQa2l0FLQbR4WGwmq6Xe1KjYLfTze5Zsy0sXPvYRLsQzlPBtLDRu)gLHJGJlLqlNWZv10jDDaBhO8DPe14LsvNhvz9sj49QOMVuICFvK9lmEHCO5qtcnjKdnsSTARwir)GGiAsRNqfYZuOCRF08icOvzqjKdnbRMihAoGQUqourfnGp71eSSIGIgWNDfwZTIGIkA8AfjsFQ4X07lTTLgqErJVLO5IwFPPDGejrprIOjYIfBZXJqI2sMTrtfRIIuGCOjbiG6ITr7QeAkpcjAjy5wrdyNGLBfnD5sj0EaqtWYTAaKiTApA9Yh5HY9YuJAh0lQtf0a(SdSxkcoAjy5wrZBMduOgZbzfOjd8kZ1vEes0EfQapAqabKJhHenWp64Jrd4Z(tiRv)qxIGJgWN9NbiKteu02qx(ih6)cntzcxf(nXWX00HkAYaVYC9MLuIMUCPeApHSw9dDjAMYeUk8BIHJPPdnGp7qabKJhHebhv0GY6ITFKdTxHcf5qZL)dlYUYJqIMhk7fvqtI1LbEL5qWrtg4vMdTktgwJ5jK16g6YyOlMBtzcxf(nXWX00DhKRmzyng3xWbffPgdDXClGlP7GCqUYKH1y6uIPtjMoLy6uIPtjMoLy6uIbyVuVHVMckX0PetNsm9yOlMJ2lTmGa65nHkKxkUPetmpHSw3qx6dvdYb5dl3nLjCv430ngGqoJHUyoAVu)qx6jWEPEdFnf(eKdYwUL8UbQTj)hwKEEFwOxNol0RtXCZN)HL7MYeUk8B6gdqiN85hZDm0hJPmHRc)My4yA6Ib2ADbwmEEv69jMZc960zHED6MsmUVGdkks1hQIMeR7Y)HfjckQOrATxFdYHMeR7Y)HfjcoAsSUmWRmhc
@smb
smb / 0_reuse_code.js
Created November 6, 2013 11:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Disable the WordPress Admin Bar for all Users and Visitors
Turn off the toolbar with one simple line.
view plain
/*
* Disable the WordPress Admin Bar for all Users and Visitors
*/
remove_action( 'init', '_wp_admin_bar_init' );
^ top
Enable the WordPress Admin Bar for admins only
@smb
smb / irssi.conf
Created July 25, 2014 13:02
irssi logstash config
input {
file {
path => "/home/.../irclogs/*/#*/*.log"
start_position => "end"
type => "irssi_logs"
}
}
filter {
if [type] == "irssi_logs" {
@smb
smb / bma2otp.rb
Last active August 29, 2015 14:05 — forked from stbuehler/bma2otp.rb
#!/usr/bin/ruby
# REQUIRES:
# * rooted android, as otherwise you can't read the applications private data
# qrcode: https://code.google.com/p/qrencode-win32/downloads/list
# This script "decrypts" the token from the internal state of the
# Battle.net Mobile Authenticator on android application, converting
# it into an "otpauth" url (https://code.google.com/p/google-authenticator/wiki/KeyUriFormat)
# and (using qrencode and display) displays it as QR code on the screen
@smb
smb / gist:83344889ec5856cde601
Created September 3, 2014 09:55
authy - import google authenticator data
adb shell
adb> su
adb> sqlite3 /data/data/com.google.android.apps.authenticator2/databases/databases
adb> select 'otpauth://totp/' || email || '?secret=' || secret from accounts;
for-each $result:
qrcode.exe -s 10 -o qrCode.png $result

Keybase proof

I hereby claim:

  • I am smb on github.
  • I am sbuehl (https://keybase.io/sbuehl) on keybase.
  • I have a public key ASDsqprgdtObhIyJuo0B8D1N8YankEqNvZIv2bT4PKmhTAo

To claim this, I am signing this object:

testtest
test
t