Skip to content

Instantly share code, notes, and snippets.

@namgo
namgo / gist:028f26de071797edd825ee1e0e0bec33
Last active April 11, 2024 19:28
Declarative Gaming?
Fun note, you can launch steam games via command line with `steam steam://rungameid/{YourGameID}` (1)!
Surely there's a way to install games with the command level steam client too. One could then write an ansible module that takes a list of game ids as parameters to install.
In the unlikely event that you're like me and want to prep a machine for different tasks from ansible, this is exciting!
1: https://steamcommunity.com/app/221410/discussions/0/1621724915820500210/
@namgo
namgo / 9FrontMarines.txt
Last active December 5, 2023 19:30
"The 9Front Marines" by khm
We've left blood in the source of twenty-five arches
We've built code on a dozen more,
And all that we have at the end of our hitch
Buys a night with a second-rate core.
The network decrees, the ircnet calls,
The orders come down from online.
It's 'git/fetch' and 'mk install,'
We're sending patches where they can die.
@namgo
namgo / cuda_extract.sh
Created December 5, 2023 14:50
Extract cuda to something that might be packageable
#!/bin/bash
#
# initialize /opt/cuda-12.2.2/extract with ./cuda_12.2.2_535.104.05_linux.run --extract=/opt/cuda-12.2.2/extract
# (from: https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_535.104.05_linux.run)
#
# IMPORTANT: this currently ignores nsight_{systems,compute}/
# https://developer.nvidia.com/nsight-systems it's a performance analysis tool, so pretty important!
# this includes bin/nsys
VER="12.2.2"
@namgo
namgo / imagehiro.html
Created September 20, 2018 17:45
Image Hiro, tracking a moving image by a dot on the image
<!DOCTYPE html>
<!-- massive problem with this approach is that the image needs to maintain its size for the canvas pixel-stuff to be picked up properly -->
<html>
<head>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<style>
.text {
position: absolute;
}
#myimage {
@namgo
namgo / EinzigMenu.html
Last active September 20, 2018 17:43
A weird menu system that doesn't really have any application to the real web
<!DOCTYPE html>
<html>
<head>
<title>Einzig Menu Demonstration</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<meta charset="utf-8">
<style>
#menu {
display: none;
position: fixed;