Skip to content

Instantly share code, notes, and snippets.

Avatar
⚒️
reduce and render

talon.computer talon

⚒️
reduce and render
View GitHub Profile
@talon
talon / configuration.nix
Last active Apr 30, 2020
NixOS + XMonad aka Bootleg FireFox OS
View configuration.nix
{ config, pkgs, ... }:
{
imports =
[
# this is generated during the install process
./hardware-configuration.nix
];
# hardware
@talon
talon / README.md
Last active Jun 11, 2021
Install Docker On Windows 10 Home
View README.md

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
View colors.sh
#!/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 / map.sh
Created Sep 26, 2019
learning bash map
View map.sh
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
@talon
talon / keybase.md
Created Sep 24, 2018
i yam whom i yam
View keybase.md

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 / getBioGrade.js
Last active Mar 23, 2016
for determining my Bio grade.
View getBioGrade.js
/* 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));