Skip to content

Instantly share code, notes, and snippets.

View achiurizo's full-sized avatar
🌐

Arthur Chiu achiurizo

🌐
View GitHub Profile
@andygeorge
andygeorge / steamdeck_ssh_instructions.md
Last active June 21, 2026 23:08
Steam Deck `ssh` instructions

These are manual instructions on enabling SSH access on your Steam Deck, adding public key authentication, and removing the need for a sudo password for the main user (deck).

This gist assumes the following:

  • you have a Steam Deck
  • you have a home PC with access to a Linux shell that can ssh, ssh-keygen, and ssh-copy-id
  • your Steam Deck and home PC are on the same local network, with standard SSH traffic (tcp/22) allowed over that network from the PC to the Steam Deck

NOTE: @crackelf on reddit mentions that steamOS updates blow away everything other than /home, which may have the following effects:

  • removing the systemd config for sshd.service, which would prevent the service from automatically starting on boot
  • removing the sudoers.d config, which would reenable passwords for sudo
@max-mapper
max-mapper / bibtex.png
Last active November 19, 2025 13:01
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
diff -r 7af530381fec src/eval.c
--- a/src/eval.c Sun Aug 17 17:24:07 2014 +0200
+++ b/src/eval.c Mon Aug 18 16:39:16 2014 +0900
@@ -6899,8 +6899,8 @@
free_unref_items(copyID)
int copyID;
{
- dict_T *dd;
- list_T *ll;
+ dict_T *dd, *dd_next;
@jch
jch / polling_request.coffee
Created August 16, 2013 22:01
some pseudocode for polling long running jobs
# # PollingRequest
#
# A xhr request that repeatedly polls a [progress-aware endpoint](#progress-aware-endpoint).
#
# req = PollingRequest.new
# url: /states.csv
# interval: 2000 # polling interval in milliseconds
# progress: (n)->
# console.log "Progress: #{n} percent"
# success: (res)->
@jasonrudolph
jasonrudolph / 00-about-search-api-examples.md
Last active April 28, 2026 00:09
5 entertaining things you can find with the GitHub Search API
tell application "System Events"
set visible of process "StarCraft II" to true
end tell
do shell script "open \"/Users/clundquist/Library/Application Support/Blizzard/StarCraft II/Accounts/1454200/1-S2-1-501405/Replays/Multiplayer/Derelict Watcher TE (208 Balance v11).SC2Replay\""
delay 2
tell application "QuickTime Player"
set replayRecording to new screen recording
@postmodern
postmodern / gemcutter_rce.rb
Created January 30, 2013 18:35
Proof-of-Concept (PoC) exploit for Gemcutter utilizing the YAML deserialization vulnerability.
#!/usr/bin/env ruby
#
# Proof-of-Concept RCE exploit against Gemcutter
#
# ## Advisory
#
# * TBA
#
# ## Caveats
#
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active July 25, 2026 13:41
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@jc00ke
jc00ke / bench.sh
Created November 5, 2012 18:56
[Update] Schooled on benchmarking
#!/bin/bash
rbx_output="rbx-startup.csv"
rbx_int_output="rbx-int-startup.csv"
combined_output="rbx-combined.csv"
rm $combined_output $rbx_output $rbx_int_output
for i in {1..100}
do
/usr/bin/time -a -o $rbx_output -f "%e" -- rbx -e ''