Skip to content

Instantly share code, notes, and snippets.

@Spencer-Dawson
Spencer-Dawson / pia.sh
Last active August 29, 2015 14:17 — forked from dapperfu/pia.sh
#!/bin/tcsh
# Grab user information.
echo "PrivateInternetAccess OpenVPN Setup:"
echo " https://www.privateinternetaccess.com/pages/client-control-panel"
echo " -> PPTP/L2TP/SOCKS Username and Password"
echo -n "User: "
set user = $<
echo -n "Pass: "
set pass = $<
@Spencer-Dawson
Spencer-Dawson / object-values.js
Last active June 9, 2018 01:01
Object.values() browser polyfill
if (!Object.values) {
Object.defineProperty(Object, 'values', {
enumerable: false,
configurable: true,
writable: true,
value: function(target) {
var res = [];
for (var i in target) {
if (target.hasOwnProperty(i)) {
res.push(target[i]);
@Spencer-Dawson
Spencer-Dawson / ubuntu-rocm-install.sh
Last active March 5, 2023 04:13
Experimental Ubuntu 22.04 ROCm installer
#!/bin/bash
echo "This script is completely untested. "
echo "It's more intended as a general overview of what needs to be done to install ROCm on Ubuntu 22.04 then as an actual installer. "
echo "Use at your own risk. And provide feedback if you have suggested fixes. "
# make sure user wants to continue
read -p "Do you want to continue? [y/N] " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
@Spencer-Dawson
Spencer-Dawson / bitsandbytes-rocm-installer.sh
Last active March 16, 2024 22:09
experimental Installation script for bitsandbytes-rocm for oobabooga/text-generation-ui for ubuntu 22.04
#!/bin/bash
echo "This script is completely untested. "
echo "It's more intended as a general overview of what needs to be done to install bitsandbytes-rocm in the text-generation-ui env on Ubuntu 22.04"
echo "Run from the same directory as start-webui.sh"
# make sure user wants to continue
read -p "Do you want to continue? [y/N] " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then