Skip to content

Instantly share code, notes, and snippets.

View kreeger's full-sized avatar

Ben Kreeger kreeger

View GitHub Profile
@SavageCore
SavageCore / 1-readme.md
Last active May 4, 2024 21:44 — 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!

ko-fi

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

Improvements

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

  • Added zenity for a basic "GUI"
@AwesamLinux
AwesamLinux / MoM_fix_videos.sh
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
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">
<KeyboardLayout>en-US</KeyboardLayout>
<LockedDevice>{NoDevice}</LockedDevice>
<MouseXMode Value="" />
<MouseXDecay Value="0" />
<MouseYMode Value="" />
<MouseYDecay Value="0" />
<MouseReset>
<Primary Device="{NoDevice}" Key="" />
@jason-kane
jason-kane / list_of_birds.txt
Created September 22, 2016 19:52
Bird names
accentor
adjutant
albatross
alethe
anhinga
ani
antbird
antpitta
antshrike
antthrush
@steipete
steipete / ios-xcode-device-support.sh
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/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
# 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
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!
~/bin/startup-gpg-agent.sh
# GPG
if [ -f "${HOME}/.gpg-agent-info" ]; then
@iMerica
iMerica / viscosity-to-ios-connect.rb
Last active July 5, 2023 21:27 — 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 = []
File.read(file).lines.each do |line|
line.strip!
if line.start_with?('#viscosity name')
@DaveWoodCom
DaveWoodCom / fixXcode6OnElCapitan.sh
Last active September 8, 2023 21:02
Script to fix Xcode 6.x so that it will run on El Capitan
#!/bin/bash
## Copyright (C) 2015 Cerebral Gardens http://www.cerebralgardens.com/
##
## 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
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">
<KeyboardLayout>en-US</KeyboardLayout>
<MouseXMode Value="" />
<MouseXDecay Value="0" />
<MouseYMode Value="" />
<MouseYDecay Value="0" />
<MouseReset>
<Primary Device="{NoDevice}" Key="" />
<Secondary Device="{NoDevice}" Key="" />
@mikeadmire
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 = AWS::S3.new(
access_key_id: '<ACCESS KEY>',
secret_access_key: '<SECRET KEY>'
)
logger = Logger.new('./s3_restores.log')