Skip to content

Instantly share code, notes, and snippets.

View dnordstrom's full-sized avatar

Daniel Nordstrom dnordstrom

View GitHub Profile
@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 / 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 / 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 / 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 / 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 / index.html
Created August 11, 2018 13:38 — forked from AlcaDesign/index.html
An almost complete tmi.js example (browser)
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Chat</title>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
<link href="style.css" rel="stylesheet" type="text/css">
<script src="https://d2g2wobxbkulb1.cloudfront.net/0.0.19/tmi.js"></script> <!--For developement-->
<!--<script src="https://d2g2wobxbkulb1.cloudfront.net/0.0.19/tmi.min.js"></script>--> <!--For "production"-->
</head>
@dnordstrom
dnordstrom / binding-urlbar-focus.xml
Last active August 10, 2018 19:24
userChrome.css
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bindings>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="urlbar" extends="chrome://browser/content/urlbarBindings.xml#urlbar">
<handlers>
<handler event="focus">
<![CDATA[
this.formatValue();
]]>
</handler>
@dnordstrom
dnordstrom / AutoHotkey.ahk
Created June 18, 2018 03:40 — forked from endolith/AutoHotkey.ahk
AutoHotkey_L Hotstrings and other utilities
;------------------------------------------------------------------------------
; Disable Insert key
;------------------------------------------------------------------------------
$Insert::return
!Insert::Send, {Insert} ; Use Alt+Insert to toggle the 'Insert mode'
;------------------------------------------------------------------------------
; Hand tool with middle button in Adobe Reader
;------------------------------------------------------------------------------
#IfWinActive ahk_class AdobeAcrobat
@dnordstrom
dnordstrom / autoexec.cfg
Last active January 26, 2019 01:48
D's CSGO Configuration
////
// NORD’S CS:GO CONFIGURATION
// Current "autoexec.cfg" file, including sensitivity, custom commands and
// aliases, crosshair, HUD and viewmodel, key binds, net settings, and a few
// other small tweaks.
//
// USAGE
// Place in "Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg"
// to load from any Steam account by running "exec autoexec" in console.
// Add "+exec autoexec" to launch options to autoload on game launch.
SCAMMER CONVERSATION
--------------------
10:26 PM - Lukessilo -- cs.money: halo
10:26 PM - mr^n: Hellu
10:27 PM - Lukessilo -- cs.money: im collector of Ultraviolet skins ? can i offer you a trade ?
10:28 PM - mr^n: Nope
10:28 PM - Lukessilo -- cs.money: why ?
10:29 PM - mr^n: I've said no to hella many people who add me just to trade stuff.
10:29 PM - mr^n: But sure, okay