Skip to content

Instantly share code, notes, and snippets.

View MrSchism's full-sized avatar

Joshua Embrey MrSchism

View GitHub Profile
@MrSchism
MrSchism / BetaControllerBinding
Last active August 29, 2015 14:16
Default button bindings for "Chelle" Beta Steam Controller
Beta Steam Controllers
Steam Controller button | Keyboard button
=================================================
Y 1
B 2
X 3
A 4
Top-Left 5
@MrSchism
MrSchism / hashword3.ps1
Last active August 29, 2015 14:17
Powershell basis for Hashword 3 code base
# Algorithms and Encoding
$md5 = new-object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
$utf8 = new-object -TypeName System.Text.UTF8Encoding
# Used variables
$alpha = 0
$num = 1
$dot = 3
$dash = 5
@MrSchism
MrSchism / timers.sh
Last active August 29, 2015 14:22
The sed/tr showdown
# These are tests to determine which is faster:
# 1. getting the file, fixing it with tr,
# and outputting that to a new file, then deleting the original
# 2. getting the file, and fixing it with sed in-line.
sedtest () {
sedcount=0
echo 'This test is for sed performance'
time (
while [ $sedcount -lt 1000 ]; do
cp ./a.safe ./a
@MrSchism
MrSchism / cc2-player.log.old
Last active September 8, 2015 03:23
Old version Player Log
ERROR: ld.so: object '/home/josh/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Setting breakpad minidump AppID = 356070
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198006357720 [API loaded no]
ERROR: ld.so: object '/home/josh/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/josh/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/josh/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/josh/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/josh/.local/share/Steam/ubuntu12_32/gameoverlayrenderer
@MrSchism
MrSchism / cc2-player.log.new
Created September 8, 2015 03:22
New CC player.log
ERROR: ld.so: object '/home/josh/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Stacktrace:
Native stacktrace:
/home/josh/.local/share/Steam/steamapps/common/Commander Cool 2/CommanderCool_Data/Mono/x86/libmono.so(+0x894bb) [0xf59d14bb]
/home/josh/.local/share/Steam/steamapps/common/Commander Cool 2/CommanderCool_Data/Mono/x86/libmono.so(+0x219c3) [0xf59699c3]
[0xf774d410]
/lib/i386-linux-gnu/libc.so.6(_IO_vfprintf+0x494f) [0xf726afef]
@MrSchism
MrSchism / cc2-prefs.old
Created September 8, 2015 03:29
cc2-prefs (old)
<unity_prefs version_major="1" version_minor="1">
<pref name="DataJson" type="string">eyJTZXR0aW5nc0Z1bGxTY3JlZW4iOiIxIiwiU2V0dGluZ3NSZXNvbHV0aW9uIjoiMTM2Nng3NjgiLCJQbGF5ZXJfMF9Db250cm9sbGVyIjoiIiwiUGxheWVyXzFfQ29udHJvbGxlciI6IiIsIlBsYXllcl8yX0NvbnRyb2xsZXIiOiIiLCJQbGF5ZXJfM19Db250cm9sbGVyIjoiIiwiTGFzdFNlbGVjdGVkTWFwIjoiYTBlNWIzZTkzMzQ4OWZiYjhmM2RmMDMzMjUzNjI2ZTgiLCJQbGF5ZXJfMF9Ta2luIjoiY29tbWFuZGVyIiwiTWFwXzYxZWE1N2RiMzVhZGYzNzNmNTQzYjc3YjZmNTIxYzA3X0NvbXBsZXRlZCI6IjEiLCJNYXBfNjFlYTU3ZGIzNWFkZjM3M2Y1NDNiNzdiNmY1MjFjMDdfTWlzc2lvbjEiOiIxIiwiTWFwXzYxZWE1N2RiMzVhZGYzNzNmNTQzYjc3YjZmNTIxYzA3X01pc3Npb24yIjoiMSIsIk1hcF82MWVhNTdkYjM1YWRmMzczZjU0M2I3N2I2ZjUyMWMwN19UaW1lIjoiNDguMzgxNiIsIk1hcF82MWVhNTdkYjM1YWRmMzczZjU0M2I3N2I2ZjUyMWMwN19Db2lucyI6IjI0IiwiTWFwXzYxZWE1N2RiMzVhZGYzNzNmNTQzYjc3YjZmNTIxYzA3X0RpYW1vbmQiOiIxIn0=</pref>
<pref name="GoogleUniversalAnalytics_SystemInfo_since_v001" type="int">1441577695</pref>
<pref name="GoogleUniversalAnalytics_clientID" type="string">NTVFQ0JBREU0YWQ5ZWFjYkYyMDQyNTg0</pref>
@MrSchism
MrSchism / cc2-prefs.new
Created September 8, 2015 03:30
cc2-prefs (new)
<unity_prefs version_major="1" version_minor="1">
<pref name="DataJson" type="string">eyJTZXR0aW5nc0Z1bGxTY3JlZW4iOiIxIiwiU2V0dGluZ3NSZXNvbHV0aW9uIjoiMTM2Nng3NjgifQ==</pref>
<pref name="Screenmanager Is Fullscreen mode" type="int">1</pref>
<pref name="Screenmanager Resolution Height" type="int">768</pref>
<pref name="Screenmanager Resolution Width" type="int">1366</pref>
<pref name="UnitySelectMonitor" type="int">-1</pref>
</unity_prefs>
@MrSchism
MrSchism / malformed_email.html
Created September 21, 2015 22:24
Malformed email from github
From noreply@github.com Mon Sep 21 08:11:17 2015
Date: Mon, 21 Sep 2015 01:11:16 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;
s=pf2014; t=1442823076;
bh=QJ+iRNg51Ie1MXXu3obvigZttsZqvMWRd19wG8iIbZI=;
h=From:Reply-To:To:In-Reply-To:References:Subject:List-ID:
List-Archive:List-Post:List-Unsubscribe:From;
b=TcjocpkPCkhZg/SgjcGeO8G/tu1sA1bhNZbiE37uDtNJpQNpW69eP/p4d5qAAWKZm
gaos2RIauHf5RkmnZ+uydlQ8dz8ZzbmKiEpr4096/7RgKQpO39rxWnoTVECh+oBBO+
VytJiyUjiOAlM80CZnOOStTkCJI3tcP1Hea3TbXY=
# Show message box popup.
Add-Type -AssemblyName System.Windows.Forms
$result = [System.Windows.Forms.MessageBox]::Show("My message", "Window Title", [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::None)
# Show input box popup.
Add-Type -AssemblyName Microsoft.VisualBasic
$inputText = [Microsoft.VisualBasic.Interaction]::InputBox("Enter some value:", "Window Title", "Default value")
# Show an Open File Dialog and return the file selected by the user.
function Read-OpenFileDialog([string]$InitialDirectory, [switch]$AllowMultiSelect)