Skip to content

Instantly share code, notes, and snippets.

View dnordstrom's full-sized avatar

Daniel Nordstrom dnordstrom

View GitHub Profile
@dnordstrom
dnordstrom / index.js
Created August 11, 2018 13:39 — forked from AlcaDesign/index.js
A command bot example
const tmi = require('tmi.js'),
request = require('request'),
countdown = require('countdown'),
kraken = request.defaults({
baseUrl: 'https://api.twitch.tv/kraken/',
json: true,
headers: {
'Client-ID': '',
Accept: 'application/vnd.twitchtv.v3+json'
@dnordstrom
dnordstrom / shoot.sh
Created August 17, 2018 22:28 — forked from sirupsen/shoot.sh
Simple Linux screenshot utility for Imgur.
#!/bin/bash
#
# By Sirupsen @ http://sirupsen.dk
#
# Description: Very simple script to make you
# select a region of your screen, which will be captured, and
# then uploaded. The URL will then be inserted into your clipboard.
#
# Dependencies:
#
@dnordstrom
dnordstrom / twitch-irc-with-weechat.mkd
Created January 11, 2019 09:58 — forked from noromanba/twitch-irc-with-weechat.mkd
How to join Twitch IRC w/ WeeChat
@dnordstrom
dnordstrom / weechat_commands.md
Last active January 26, 2019 00:53
Add Twitch and FreeNode to Weechat (and auto-connect)
/server add twitch irc.chat.twitch.tv/6697 -ssl -password=oauth:token -nicks=mrnordstrom -username=mrnordstrom -autoconnect -autojoin="#mrnordstrom"
/set irc.server.twitch.command "/quote CAP REQ :twitch.tv/membership"

Get OAuth token from: https://twitchapps.com/tmi/

/server add freenode irc.freenode.net/6697 -ssl -autoconnect -autojoin="##javascript" -nicks=mrnordstrom -username=mrnordstrom -realname="Daniel Nordstrom" -sasl_username=mrnordstrom -sasl_password=password -command="/msg nickserv regain mrnordstrom:password"
@dnordstrom
dnordstrom / ayu-dark
Created January 17, 2019 09:05
Ayu Mintty Themes
BackgroundColour=15,20,25
ForegroundColour=230,225,207
CursorColour=230,225,207
Black=0,0,0
BoldBlack=50,50,50
Red=255,51,51
BoldRed=255,101,101
Green=184,204,82
BoldGreen=234,254,132
Yellow=231,197,71
@dnordstrom
dnordstrom / .shellrc
Created January 18, 2019 09:02
WSL Shell Startup Script
{
# Add globally installed Yarn package scripts to path
export PATH="$(yarn global bin):$PATH"
# Make sure Windows Docker VM is running
docker-machine.exe start default
# Set Docker bridge environment variables
eval $(docker-machine.exe env --shell bash | sed 's/C:/\/c/' | sed 's/\\/\//g' | sed 's:#.*$::g' | sed 's/"//g')
} > "$0.log" 2>&1
@dnordstrom
dnordstrom / ayu-dark
Created February 28, 2019 12:36
Ayu Theme for wsltty/mintty
BackgroundColour=15,20,25
ForegroundColour=230,225,207
CursorColour=230,225,207
Black=0,0,0
BoldBlack=50,50,50
Red=255,51,51
BoldRed=255,101,101
Green=184,204,82
BoldGreen=234,254,132
Yellow=231,197,71
{
# Enable Windows access for Vagrant
export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
# Add VirtualBox to path
export PATH="$PATH:/c/Program Files/Oracle/VirtualBox"
# Add globally installed Yarn package scripts to path
export PATH="$(yarn global bin):$PATH"
@dnordstrom
dnordstrom / cloudSettings
Last active January 5, 2021 02:21
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-01-05T02:21:18.131Z","extensionVersion":"v3.4.3"}
# Get all the provisioned packages
$Packages = (get-item 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications') | Get-ChildItem
# Filter the list if provided a filter
$PackageFilter = $args[0]
if ([string]::IsNullOrEmpty($PackageFilter))
{
echo "No filter specified, attempting to re-register all provisioned apps."
}
else