Skip to content

Instantly share code, notes, and snippets.

View kreeger's full-sized avatar

Ben Kreeger kreeger

View GitHub Profile
SavageCore /
Last active May 15, 2024 13:39 — forked from cdleveille/Install⁄Update Xone
Install or update xone driver for Steam Deck (desktop shortcut and bash script)

Enjoying this script? Consider buying me a beer/coffee!


First time setting up your Deck? You may enjoy my setup guide. It'll get you started on Emulation.


Main changes at initial release versus cdleveille's original script:

  • Added zenity for a basic "GUI"
AwesamLinux /
Created October 31, 2019 18:40
Man of Medan Video Fix
echo "Fixing Videos Please Wait..."
echo "Processing File 01/19"
mv SMG019/Content/Movies/Premonitions/Premonition1.mp4 SMG019/Content/Movies/Premonitions/Premonition1.bak
xxd -s 0x10 SMG019/Content/Movies/Premonitions/Premonition1.bak | xxd -r -s -0x10 > SMG019/Content/Movies/Premonitions/Premonition1.mp4
echo "Processing File 02/19"
mv SMG019/Content/Movies/Premonitions/Premonition2.mp4 SMG019/Content/Movies/Premonitions/Premonition2.bak
xxd -s 0x10 SMG019/Content/Movies/Premonitions/Premonition2.bak | xxd -r -s -0x10 > SMG019/Content/Movies/Premonitions/Premonition2.mp4
echo "Processing File 03/19"
mv SMG019/Content/Movies/Premonitions/Premonition3.mp4 SMG019/Content/Movies/Premonitions/Premonition3.bak
xxd -s 0x10 SMG019/Content/Movies/Premonitions/Premonition3.bak | xxd -r -s -0x10 > SMG019/Content/Movies/Premonitions/Premonition3.mp4
kreeger / Saitek X52 HOTAS.1.8.binds
Last active February 9, 2017 19:11
Elite: Dangerous bindings for my Saitek X52 HOTAS.
<?xml version="1.0" encoding="UTF-8" ?>
<Root PresetName="Saitek X52 HOTAS" MajorVersion="1" MinorVersion="8">
<MouseXMode Value="" />
<MouseXDecay Value="0" />
<MouseYMode Value="" />
<MouseYDecay Value="0" />
<Primary Device="{NoDevice}" Key="" />
jason-kane / list_of_birds.txt
Created September 22, 2016 19:52
Bird names
steipete /
Last active December 12, 2023 03:36
Using iOS 15 devices with Xcode 12.5 (instead of Xcode 13)
# The trick is to link the DeviceSupport folder from the beta to the stable version.
# sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :)
# Support iOS 15 devices (Xcode 13.0) with Xcode 12.5:
sudo ln -s /Applications/ /Applications/
# Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions
# (A similar approach works for older versions too, just change the version number after DeviceSupport)
krider2010 / .profile
Last active November 29, 2017 06:13
Git Signed Commits - OSX and GUIs
# This would go into .bash_profile, .bashrc, .zshrc, etc.
# Script to start the gpg-agent - in it's own file as it is also used when the machine starts up
# Be sure to update the path to wherever you place this file!
# Note, depending on shell you may not need this line enabling, if the global daemon is already running
# OK. Some shells complain, others don't!
if [ -f "${HOME}/.gpg-agent-info" ]; then
iMerica / viscosity-to-ios-connect.rb
Last active May 17, 2024 17:39 — forked from chrisboulton/viscosity-to-ios-connect.rb
Quickly convert all of your Viscosity connections into OVPN configuration files for OpenVPN for iOS (bundles certificates and keys in the files too)
Dir.glob("#{ENV['HOME']}/Library/Application Support/Viscosity/OpenVPN/*/config.conf").each do |file|
certificate_files = ['ca', 'cert', 'key', 'tls-auth']
config_dir = File.dirname(file)
connection_name = nil
new_config = [] do |line|
if line.start_with?('#viscosity name')
DaveWoodCom /
Last active September 8, 2023 21:02
Script to fix Xcode 6.x so that it will run on El Capitan
## Copyright (C) 2015 Cerebral Gardens
## Permission is hereby granted, free of charge, to any person obtaining a copy of this
## software and associated documentation files (the "Software"), to deal in the Software
## without restriction, including without limitation the rights to use, copy, modify,
## merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
## permit persons to whom the Software is furnished to do so, subject to the following
## conditions:
kreeger / Custom.binds
Last active August 23, 2022 00:41
My keyboard/joystick bindings for Elite: Dangerous.
<?xml version="1.0" encoding="UTF-8" ?>
<Root PresetName="Custom">
<MouseXMode Value="" />
<MouseXDecay Value="0" />
<MouseYMode Value="" />
<MouseYDecay Value="0" />
<Primary Device="{NoDevice}" Key="" />
<Secondary Device="{NoDevice}" Key="" />
mikeadmire / s3_glacier_restore.rb
Created November 6, 2014 19:25
Read a list of files from a text file and use the ruby AWS SDK to restore them from Glacier storage.
#!/usr/bin/env ruby
require 'aws-sdk'
require 'logger'
s3 =
access_key_id: '<ACCESS KEY>',
secret_access_key: '<SECRET KEY>'
logger ='./s3_restores.log')