Skip to content

Instantly share code, notes, and snippets.

@fats
fats / post-commit.js
Last active May 10, 2020 11:45
Post your latest commit to a Discord channel with a post-commit hook (Node.js)
// Post your latest commit to a Discord channel
// Run this script from a post-commit hook, or run manually from the top level of your project
const path = require('path')
const https = require('https')
const crypto = require('crypto')
const child_process = require('child_process')
// Fill your webhook id & token below
// Project name is set to the current folder name
@fats
fats / weechat_theme.txt
Last active October 27, 2023 18:22
[weechat] The Theme™
# requires: 256 color terminal
/script install iset.pl
/script install buffers.pl
/script install colorize_nicks.py
/set weechat.look.buffer_notify_default message
/set weechat.look.color_nick_offline on
/set weechat.look.prefix_action " •"
/set weechat.look.prefix_join "▬▶"
@fats
fats / weechat_grayout.txt
Last active September 26, 2022 17:05
[weechat] Gray out join/part/quit messages
/set irc.look.color_nicks_in_server_messages off
/set colorize_nicks.look.ignore_tags irc_join,irc_part,irc_quit
/set irc.color.message_join darkgray
/set irc.color.message_quit darkgray
/set irc.color.reason_quit darkgray
/set weechat.color.chat_tags darkgray
/set weechat.color.chat_nick darkgray
/set weechat.color.chat_host darkgray
/set weechat.color.chat_delimiters darkgray
/set weechat.color.chat_channel darkgray
@fats
fats / tmux.conf
Created March 22, 2016 17:33
tmux config!
set -g status-utf8 on
set -g utf8 on
set -g default-terminal "screen-256color"
set -g prefix C-a
unbind C-o
set -g status-bg blue
set -g status-fg white

Keybase proof

I hereby claim:

  • I am fats on github.
  • I am fats (https://keybase.io/fats) on keybase.
  • I have a public key whose fingerprint is 95BD A1FB 7705 E06E 9B52 9F30 66A9 C89E 9410 822A

To claim this, I am signing this object: