- Have python installed
- Download remap.py and put it next to the config file
inputUserMappings.xml
(Should be in ...\Cyberpunk 2077\r6\config) - Open a terminal,
cd
into the directory with the script, and runpython remap.py
- It should create a new file called
inputUserMappings2.xml
- Now rename
inputUserMappings.xml
to something else, and renameinputUserMappings2.xml
toinputUserMappings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'node-fetch' | |
import * as app from 'firebase-admin/app' | |
type ListDocumentResult = ExistingListDocumentResult | EmptyListDocumentResult | |
type json = any | |
interface ExistingListDocumentResult extends EmptyListDocumentResult{ | |
fields: Record<string,any> | |
createTime: string, | |
updateTime: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def estimate_net_income(gender: str, race: str, age: int, | |
education: str, occupation: str, | |
location: str, experience: int, | |
sexual_orientation: str, | |
disability_status: bool, | |
is_trans: bool, | |
family_status: str) -> float: | |
# Set base income to $40,000 | |
income = 40000 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
LID_TMP='/tmp/lidscript.tmp' | |
# Read hoved windows from file | |
readarray moved_windows < $LID_TMP | |
# remove newlines after every element... | |
newMovedWindows=() | |
for i in "${!moved_windows[@]}"; do | |
without_newline=${moved_windows[$i]%$'\n'} | |
if [[ $without_newline != "" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$files = Get-ChildItem "E:\obs\convert\" | |
foreach ($file in $files) { | |
$name = $file.name | |
ffmpeg-normalize $file.fullName -o "E:\obs\converted\${name}_4k.mkv" -e='-vf scale=3840:2160 -c:v hevc_nvenc -rc constqp -qp 14 -rc-lookahead 8' -pr | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If in WSL, remove all windows stuff from path, except Windows dir for explorer.exe | |
# This Speeds up Tab-completion A LOT. without this pressing TAB takes ~8.5 seconds, with this | |
# ~100ms. Change /mnt/\c\/ to something different if the Windows drive is mounted somewhere else... | |
C_DRIVE='/mnt/c' | |
if [ -d "$C_DRIVE" ]; then | |
export PATH=$(echo ${PATH} | \ | |
awk -v RS=: -v ORS=: "/${C_DRIVE//\//\\/}/ {next} {print}" | sed 's/:*$//') | |
# Add C:\Windows back so you can do `explorer.exe .` to open an explorer at current directory | |
export PATH="$PATH:$C_DRIVE/Windows/" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Little script to calculate the mortality rate of COVID-19 in different | |
# countries based on data from https://coronavirus.jhu.edu/map.html | |
# I extracted this from firefox dev tools. Returns country data as JSON | |
''' | |
curl 'https://services9.arcgis.com/N9p5hsImWXAccRNI/arcgis/rest/services/Z7biAeD8PAkqgmWhxG2A/FeatureServer/1/query?f=json&where=(Confirmed%20%3E%200)%20AND%20(Deaths%3E0)&returnGeometry=false&spatialRel=esriSpatialRelIntersects&outFields=*&orderByFields=Deaths%20desc%2CCountry_Region%20asc%2CProvince_State%20asc&outSR=102100&resultOffset=0&resultRecordCount=250&cacheHint=true' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Origin: https://www.arcgis.com' -H 'Connection: keep-alive' -H 'Referer: https://www.arcgis.com/apps/opsdashboard/index.html' -H 'TE: Trailers' | |
''' | |
# Build the same request in python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd() { | |
# Check if no arguments to make just typing cd<Enter> work | |
# Also check if the first argument starts with a - and let cd handle it | |
if [ $# -eq 0 ] || [[ $1 == -* ]] | |
then | |
builtin cd $@ | |
return | |
fi | |
# If path exists, just cd into it | |
# (also, using $* and not $@ makes it so you don't have to escape spaces any more) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "uri" | |
# The encoder method of the http gem needs to be overriden because of the twitter gem. | |
# Without that, there's an incompatibility between the simple_oauth gem which encodes asterisks and the http one which does not. | |
# Cf. https://github.com/httprb/form_data/issues/22 and https://github.com/sferik/twitter/issues/6# 77 | |
# I added a check to see if this method has been called from inside the twitter gem, so that other libraries can still use the default behavior | |
HTTP::FormData::Urlencoded.encoder = lambda do |enum, enc = nil| | |
call_regex = Regexp.new( | |
'gems/twitter-\d+.\d+.\d+/lib/twitter/rest/request.rb:\d+:in `public_send\'') | |
if caller.any? call_regex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Persistent | |
SetTimer, beatsabercheck, 2000 | |
process_name := "Beat Saber.exe" | |
Librarian := "C:\Program Files\Oculus\Support\oculus-librarian\OVRLibrarian.exe" | |
Librarian_bak := "C:\Program Files\Oculus\Support\oculus-librarian\OVRLibrarian_bak.exe" | |
beatsabercheck: | |
ifWinExist, ahk_exe %process_name% | |
{ |
NewerOlder