Skip to content

Instantly share code, notes, and snippets.

View dw5's full-sized avatar
🇨🇭
Making better tasting swiss cheese for mail

dw5

🇨🇭
Making better tasting swiss cheese for mail
  • Zurich, CH
  • 11:53 (UTC +02:00)
  • X @0x8616
View GitHub Profile
// WARNING: DO NOT EDIT ANY LINE STARTS WITH "//".
//
// ------------------------------------------------------
//
// File format: (Physics Type Name) = (New Physics Type Hash)
//
// ------------------------------------------------------
//
// For example; if you want race cars to have truck physics, you should edit Racers entry in [Main] section like that:
//
@dw5
dw5 / NFSCExtraOptionsSettings.ini
Last active August 19, 2018 08:23
NFSCExtraOptionsSettings.ini
[Hotkeys] // Look at http://cherrytree.at/misc/vk.htm for key values (decimal)
HeatLevelHack = 118 // Enables Ultimate Force Heat Level hack, Force-enables Heat Level Override and lets you select a heat level with the key below. (Default = 118 = F7 key)
ChangeHeatLevel = 33 // Changes heat levels when the Ultimate Force Heat Level hack is enabled. (Default = 33 = PageUp key)
ToggleCops = 145 // Toggles Cops on/off. Use with Ultimate Force Heat Level hack. (Default = 145 = Scroll Lock key)
CopLights = 79 // Enables Cop Lights. Use a cop car for best results. (Default = 79 = O key)
Headlights = 72 // Changes Headlights between closed (0), short (1) and long (2). (Default = 72 = H key)
UnlockAllThings = 116 // Unlocks everything in game. (Default = 116 = F5 key)
AutoDrive = 117 // Enables Auto Drive (Drunk Driver) hack. (Default = 117 = F6 key)
PhysSwitch = 75 // Change
@dw5
dw5 / SWINEExtraOptionsSettings.ini
Last active November 1, 2019 13:31
SWINEExtraOptionsSettings.ini
[Hotkeys] // Look at http://cherrytree.at/misc/vk.htm for key values (decimal)
AddSP = 104 // Hotkey to add SP (Default = 104 = Num8 key)
DecSP = 98 // Hotkey to decrease SP (Default = 98 = Num2 key)
AddOrDecSPAmount = 100 // Amount to add/decrease when pressed AddSP or DecSP keys. (Default = 100)
[Camera]
MaxZoomIn = -10 // Maximum zoom in value for camera. (Default = 10.0)
MaxZoomOut = 4444 // Maximum zoom out value for camera. (Default = 20.0)
MaxAngleUp = -2 // Maximum up angle value for camera. (Default = -1.13)
MaxAngleDown = 0.1 // Maximum down angle value for camera. (Default = -0.7)
@dw5
dw5 / tchfix.sh
Last active December 30, 2017 16:50
linux tablet touch fix when rotated
#!/bin/bash
# This script rotates the screen and touchscreen input 180 degrees, disables the touchpad, and enables the virtual keyboard
# And rotates screen back if the touchpad was disabled
# experimental / source: https://www.reddit.com/r/linux4noobs/comments/539fw5/how_would_i_rotate_the_touch_screen_in_linux/
# to get device list "xinput list"
isEnabled=$(xinput --list-props 'SynPS/2 Synaptics TouchPad' | awk '/Device Enabled/{print $NF}')
if [ $isEnabled == 1 ]
@dw5
dw5 / keybase.md
Last active September 12, 2019 17:04

Keybase proof

I hereby claim:

  • I am dw5 on github.
  • I am bads_tm (https://keybase.io/bads_tm) on keybase.
  • I have a public key ASCbHhE5rUIxv592hk1xqW-rOcVlx7EPILPNOy5ukfsniQo

To claim this, I am signing this object:

#yt-masthead-container {
background: #ff0000 !important;
}
.masthead-logo-renderer-logo {
background: no-repeat url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAAA8CAYAAACw/4J2AAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAActpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgSW1hZ2VSZWFkeTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KKS7NPQAAFdFJREFUeAHtnXvQ7lVVx8/hfsfkopiCgGIIKZFgoFw8JKUT6XQdB1PDsKGxIq2pycmaKceGqbFwhlErk/oDHTDjIgiCBBGicSkIGkQUJREE5M7hIpw+n/3b3+fs5/f+nue9nPc95z2+rJn1rL3XXmvttdde
@dw5
dw5 / config_HighSettings.ini
Created March 12, 2018 18:59
self edited config.ini for Crazy Drive Away russian game
[OPTIONS]
HighDetail=true
ContinuousVB=true
ShowCursor=1
StencilShadows=true
ShowConsole=true
TimeSpeed=0.01
DynamicVB=true
FlySpeed=40
VideoWidth=400
php -S 127.0.0.1:8080
@dw5
dw5 / yt-videocategories.json
Created June 23, 2018 15:50
Sun 06 May 2018 07∶11∶05 PM EEST
{
"kind": "youtube#videoCategoryListResponse",
"etag": "\"95M1zlW0txkV42I4OG1Zscxrg5A/S730Ilt-Fi-emsQJvJAAShlR6hM\"",
"items": [
{
"kind": "youtube#videoCategory",
"etag": "\"95M1zlW0txkV42I4OG1Zscxrg5A/Xy1mB4_yLrHy_BmKmPBggty2mZQ\"",
"id": "1",
"snippet": {
"channelId": "UCBR8-60-B28hp2BmDPdntcQ",
@dw5
dw5 / vid.me
Created May 18, 2019 07:20
Post Video to http://vid.me using Tweetbot's custom media upload
<?php
$uploadsDirectory="tmp/";
$uploadFilename = $uploadsDirectory.$_FILES['media']['name'];
move_uploaded_file($_FILES['media']['tmp_name'], $uploadFilename);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, 'https://api.vid.me/video/upload');
$postData = array(
'filedata' => '@'.$uploadFilename,
'description' => $_POST["message"],