Skip to content

Instantly share code, notes, and snippets.

View talon's full-sized avatar
⚒️
reduce and render

talon.computer talon

⚒️
reduce and render
View GitHub Profile
@talon
talon / getBioGrade.js
Last active March 23, 2016 14:28
for determining my Bio grade.
/* copy this line and paste it into the javascript console on the bio page:
/* DOESN'T WORK YET.
reqListener = function (stuff) {eval(stuff);};var oReq = new XMLHttpRequest(); oReq.onload = reqListener; oReq.open("get", "https://api.github.com/gists/7576946", true); oReq.send();
*/
// Get the data!
var nl = document.querySelectorAll("label");
var raw_data_array = [];
for(var i = nl.length; i--; raw_data_array.unshift(nl[i].innerHTML));
@talon
talon / keybase.md
Created September 24, 2018 18:33
i yam whom i yam

Keybase proof

I hereby claim:

  • I am talon on github.
  • I am talon (https://keybase.io/talon) on keybase.
  • I have a public key ASA50GMpdx-f6PXd4R_rtpiH4kf2SQnfZ-jTEhiATRpZOgo

To claim this, I am signing this object:

@talon
talon / map.sh
Created September 26, 2019 16:33
learning bash map
this_to_that() {
case "$1" in
# [learn]
*)
read -rp "$1: " value
local add="$1) echo \"$value\";;"
sed -i "/\[learn\]/i \ \ \ \ $add" "${BASH_SOURCE[0]}"
echo "$value"
;;
esac
#!/bin/bash
trap ctrl_c INT
ctrl_c() { tput sgr0 && tput clear && exit 0; }
while true; do
tput setab "${b:-0}"
head -c "$(tput cols)" < /dev/zero | tr '\0' " "
if [[ $b -gt 7 ]]; then b=1; else b=$((b + 1)); fi
done
@talon
talon / configuration.nix
Last active April 30, 2020 23:18
NixOS + XMonad aka Bootleg FireFox OS
{ config, pkgs, ... }:
{
imports =
[
# this is generated during the install process
./hardware-configuration.nix
];
# hardware
@talon
talon / README.md
Last active June 11, 2021 10:35
Install Docker On Windows 10 Home

Install Docker On Windows 10 Home

"Windows Home Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run." So says the Docker Installer however, the Docker forums beg to differ

The workaround is to manually image the Hyper-V and Containers features, then trick the installer into thinking you're using Windows Pro.

TL;DR

  1. clone this gist somewhere locally git clone https://gist.github.com/4191def376c9fecae78815454bfe661c.git windows_home_docker
  2. Run windows_home_containers.ps1 in an Administrative Powershell