This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Run rush build for the package containing the current buffer | |
keymap.set("n", "<leader>b", function() | |
local rush_root = vim.fs.find({ "rush.json" }, { | |
path = vim.api.nvim_buf_get_name(0), | |
upward = true, | |
})[1] | |
if not rush_root then | |
vim.print("No rush.json found. Ostensibly not a Rush project.") | |
return | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// By default the oauth button remains disabled until the visitor focusses the | |
// window. This event handler enables the button once the window has been focussed. | |
async function updateButtonOnPageFocused(button: Element) { | |
await pageFocused(document) | |
await new Promise(resolve => setTimeout(resolve, 1000)) | |
if (button instanceof HTMLButtonElement) button.disabled = false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "io/console" | |
class Keyboard | |
def initialize(queue) = @queue = queue | |
def monitor | |
return if @thread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "bundler/inline" | |
require "json" | |
require "base64" | |
gemfile do | |
source "https://rubygems.org" | |
gem "redis", "~> 4.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "net/http" | |
require "openssl" | |
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
gem "colorize", "~> 0.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Author: Michael Hadley | |
# Tested on: | |
# OS: Ubuntu 20.04 | |
# Kernel: 5.8.0-29-generic | |
# Pro Driver: 20.45 | |
# | |
# Custom install script for the OpenCL components of the "AMDGPU-PRO" driver. I was unable to use the | |
# script that came with the driver asit always atempted to install componetns that depend on the amdgpu-dkms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nix-shell | |
#! nix-shell -i runhaskell -p ghcid ghc | |
import Control.Applicative | |
import Data.Char | |
import Data.List | |
import Data.Maybe | |
import Text.Read | |
main :: IO () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env nix-shell | |
#! nix-shell -i ruby -p ruby bundler --pure | |
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-20.03.tar.gz | |
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
gem 'sinatra' | |
gem 'thin' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env nix-shell | |
#! nix-shell -i ruby -p ruby bundler --pure | |
#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-20.03.tar.gz | |
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
gem 'sinatra' | |
gem 'thin' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove existing container | |
docker stop pihole | |
docker rm pihole | |
docker run -d \ | |
--name pihole \ | |
-e TZ="America/Los_Angeles" \ | |
-e ServerIP="192.168.1.201" \ |
NewerOlder