Skip to content

Instantly share code, notes, and snippets.

View Half-Shot's full-sized avatar
:fishsticks:
Building bridges

Will Hunt Half-Shot

:fishsticks:
Building bridges
View GitHub Profile
@Half-Shot
Half-Shot / NoDDLOutput
Created September 30, 2013 14:36
NoDDLOutput
==================== Starting SSR ====================
[DetectCPUFeatures] CPU features: mmx sse sse2 sse3
[FastScaler::FastScaler] BGRA to YUV420 converter: Fallback
[PageRecord::PageStart] Starting page ...
[GLInjectLauncher::Init] Full command: LD_PRELOAD=libssr-glinject.so SSR_GLINJECT_SHM=1474564 wine "/media/will/Data/Steam/SteamApps/common/Deus Ex/system/deusex.exe"
[PageRecord::PageStart] Started page.
[SSR-GLInject] Library loaded (32-bit).
[SSR-GLInject] Library successfully initialized.
[SSR-GLInject] Library loaded (32-bit).
[SSR-GLInject] Library successfully initialized.
@Half-Shot
Half-Shot / Windows>Linux
Last active December 24, 2015 14:49
Converts Windows Programs to their Linux Equivalant.
╔═════════════════════════════╦═════════════════════════════╗
║ Windows ║ Linux ║
╠═════════════════════════════╬═════════════════════════════╣
║ Firefox ║ Firefox ║
║ Chrome ║ Chromium or Chrome ║
║ Photoshop ║ GIMP ║
║ Ms.Paint ║ KolourPaint ║
║ Paint.NET ║ Pinta ║
║ FlashEditor ║ Inkscape + Animation Plugin ║
║ MSOffice ║ LibreOffice/OpenOffice ║
@Half-Shot
Half-Shot / FibonacciSequence.py
Last active December 27, 2015 16:49
Fibonacci Sequence
#Fibonacci Sequence
#Have fun, Dr. Half-Shot
#Checks if a number is an integer.
def IsInt(val):
try:
int(val)
except:
return False
return True
@Half-Shot
Half-Shot / h264convert
Created December 10, 2013 21:48
My awesome script that does a decent job of converting files using ffmepg libx264 libmp3lame
#!/bin/bash
TEST=""
if [ $# -lt 2 ]
then
echo "Not enough arguments supplied"
exit 0
fi
if [[ $1 == "-h" ]]
then
@Half-Shot
Half-Shot / gist:8459595
Created January 16, 2014 17:38
LogOutput
Best fullscreen resolution = 1366x768
SoundManager() - audio opened
Maximum lights per node = 4
openFileForLoading - Can't open file ""
openFileForLoading - Can't open file ""
openFileForLoading - Can't open file ""
openFileForLoading - Can't open file ""
openFileForLoading - Can't open file ""
openFileForLoading - Can't open file ""
openFileForLoading - Can't open file ""
@Half-Shot
Half-Shot / gist:8851819
Created February 6, 2014 20:22
Sys Specs
Processor Information:
Vendor: AuthenticAMD
CPU Family: 0x10
CPU Model: 0xa
CPU Stepping: 0x0
CPU Type: 0x0
Speed: 3009 Mhz
6 logical processors
6 physical processors
HyperThreading: Unsupported
Installing breakpad exception handler for appid(steam)/version(1393270254_client)
Generating new string page texture 137: 128x256, total string texture memory is 2.72 MB
Attempting to use a Windows only path root on non-Windows platform for game 212680
Generating new string page texture 139: 256x256, total string texture memory is 2.98 MB
Installing breakpad exception handler for appid(steam)/version(1393270254_client)
OnFocusWindowChanged to window type: k_EWindowTypeSteamDesktop, 0
Installing breakpad exception handler for appid(steam)/version(1393270254_client)
Game update: AppID 620 "Portal 2 (Beta)", ProcID 14186, IP 0.0.0.0:0
ERROR: ld.so: object '/home/will/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/will/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Failed to set video mode. (Couldn't find matching GLX visual). Re-trying without multisampling.
Initialized GL2 renderer
started 5 worker threads
WARNING: ignoring invalid line in config file:
'gui-thin.ttf'
Face Generation source images loaded.
Number of factions added: 3
Firedrake:
height fractal: Ellipsoid
colour fractal: StarG
#!/bin/env python3
#Written by Will Hunt and adapted from http://rosettacode.org/wiki/Kaprekar_numbers#Python
#24/3/14
#Used to calculate the kaprekar
def kaprekar(n):
n2 = str(n**2) #Raise n to a power of 2.
for i in range(len(n2)): #for each digit in n2
a, b = int(n2[:i] or 0), int(n2[i:]) #get the first digit (or 0 if it does not exist) and the last digit.
if b and a + b == n: #If it is a kaprekar number
This file has been truncated, but you can view the full file.
execve("/usr/lib/vlc/vlc-cache-gen", ["/usr/lib/vlc/vlc-cache-gen", "-f", "/usr/lib/vlc/plugins"], [/* 43 vars */]) = 0
brk(0) = 0xaa5000
open("/usr/lib/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\262\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=326784, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd1adcf5000
mmap(NULL, 2424712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd1ad886000
mprotect(0x7fd1ad8d4000, 2097152, PROT_NONE) = 0
mmap(0x7fd1adad4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4e000) = 0x7fd1adad4000
close(3) = 0