https://github.com/supercomputra/SF-Mono-Font/blob/master/SFMono-Regular.otf
This file contains hidden or 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
:: Faster to copy files using ADB than than using MTP apparently | |
adb pull sdcard/DCIM/Camera %USERPROFILE%\Desktop\Camera |
This file contains hidden or 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 | |
# Create game proxy server to forward traffic to your home network through VPN. | |
# Great for a cheap Linode, Digital Ocean, etc $5/mo server for modest traffic. | |
# Keep your home network and IP safe by setting up an isolated VPN to connect your public external proxy to your protected home network | |
# Keep costs down by using a server you already have at home instead of paying large sums every month just to host some games with your friends. | |
# Example diagram | |
# User / Game Client -> Internet -> Your cheap VPS proxy server -> OpenVPN -> Your home network -> Your home server |
This file contains hidden or 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
[General] | |
FileVersion=69 | |
NumberOfJoysticks=2 | |
NumberOfButtons=32 | |
DisplayMode=2 | |
UseDiagonalInput=0 | |
UseDiagonalInput2=0 | |
UsePOV8Way=0 | |
RepeatSameKeyInSequence=0 | |
Threshold=20 |
This file contains hidden or 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/perl | |
use strict; | |
use warnings; | |
# | |
# Complete the 'SearchForWord' function below. | |
# | |
# The function is expected to return an INTEGER_ARRAY. | |
# The function accepts following parameters: |
This file contains hidden or 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
// e.g. returns 00:00:25 | |
func getTimeDiff(a, b time.Time) string { | |
d := b.Sub(a) | |
hour := int(d.Seconds() / 3600) | |
minute := int(d.Seconds() / 60) % 60 | |
second := int(d.Seconds()) % 60 | |
return fmt.Sprintf("%02d:%02d:%02d", hour, minute, second) | |
} |
This file contains hidden or 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 | |
# ex: ./charles_convert_raw_hexdump_to_bin.sh hexdumpraw.txt hexformatted.txt data.bin | |
# hexdumpraw.txt ex: | |
## 00000510 0a 6d 6f 64 65 6c 5f 6e 61 6d 65 12 07 4e 65 78 model_name Nex | |
## 00000520 75 73 20 35 1a 20 0a 11 61 72 63 68 69 74 65 63 us 5 architec | |
## 00000530 74 75 72 65 5f 6e 61 6d 65 12 0b 61 72 6d 65 61 ture_name armea | |
## 00000540 62 69 2d 76 37 61 1a 19 0a 0b 64 65 76 69 63 65 bi-v7a device | |
## 00000550 5f 6e 61 6d 65 12 0a 68 61 6d 6d 65 72 68 65 61 _name hammerhea |
This file contains hidden or 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
# Wii U / Cemu Xbox controller profile | |
# Located at: cemu\controllerProfiles | |
[General] | |
emulate = Wii U GamePad | |
api = XInput | |
controller = 0 | |
[Controller] | |
rumble = 0 |
This file contains hidden or 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
# Dolphin Gamecube/Wii emulator / Xbox One Controller profile | |
# Gamecube Controller | |
# Location -> C:\User\<your user>\Documents\Dolphin Emulator\Config\Profiles\GCPad\Xbox Controller (GCPad).ini | |
[Profile] | |
Device = XInput/0/Gamepad | |
Buttons/A = `Button A` | |
Buttons/B = `Button B` | |
Buttons/X = `Button X` | |
Buttons/Y = `Button Y` |
NewerOlder