Skip to content

Instantly share code, notes, and snippets.

View saaadel's full-sized avatar
😁
Weaknesses: not talkative. Strengths: not garrulous

Andrew Spoda saaadel

😁
Weaknesses: not talkative. Strengths: not garrulous
View GitHub Profile
@saaadel
saaadel / 1 steam_deck_notes.md
Created May 12, 2024 22:18 — forked from fsworld009/1 steam_deck_notes.md
Steam deck setup notes.md

Disk encryption

None. ValveSoftware/SteamOS#771 Be careful on what you are storing in this device (using browser and login to your accounts is NOT a good idea for now).

Barrier

Being able to control Steamdeck by using mouse and keyboard connected to PC/Laptop

FACTORIO: LUA API: USEFUL ADMIN COMMANDS

SHOW YOUR OWN POSITION

/silent-command game.player.print( 'x: ' .. math.round( game.player.character.position.x ) .. ' y: ' .. math.round( game.player.character.position.y ) )

GOD MODE: FLY OVER THE MAP WITHOUT A BODY

@saaadel
saaadel / parallels-reset.sh
Created November 19, 2020 08:05 — forked from gdurastanti/parallels-reset.sh
Reset Parallels' trial
#!/bin/sh
# Reset Parallels Desktop's trial and generate a casual email address to register a new user
rm /private/var/root/Library/Preferences/com.parallels.desktop.plist /Library/Preferences/Parallels/licenses.xml
jot -w pdu%d@gmail.com -r 1
@saaadel
saaadel / latency.markdown
Last active January 7, 2020 06:07 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency Comparison Numbers (~2012 year)

Name Time (ns) Time (µs) Time (ms) Comment
L1 cache reference 0.5
Branch mispredict 5
L2 cache reference 7 14x L1 cache
Mutex lock/unlock 25
Main memory reference 100 20x L2 cache, 200x L1 cache