Skip to content

Instantly share code, notes, and snippets.

View BrandonDusseau's full-sized avatar

Brandon Dusseau BrandonDusseau

View GitHub Profile
@BrandonDusseau
BrandonDusseau / 3.2.9-to-3.3.0.patch
Last active November 7, 2020 18:59
Allan-Style Subsilver 3.3.x Patches - use `git apply < filename.patch` to apply to the base style
From fbb4d58196b0feb538d636bb5fa947038c8bd970 Mon Sep 17 00:00:00 2001
From: Brandon Dusseau <brandon.dusseau@gmail.com>
Date: Sat, 22 Aug 2020 19:27:52 -0400
Subject: [PATCH] Update style for 3.3.0
---
style.cfg | 6 +++---
template/navbar_header.html | 4 +++-
template/overall_footer.html | 4 ++--
template/overall_header.html | 5 ++++-
@BrandonDusseau
BrandonDusseau / emoji_count.js
Created August 27, 2018 23:08
Scrapes Slack's custom emoji page to return a leaderboard of how many emojis each user has contributed
// Run on https://[yourslack].slack.com/customize/emoji
var counts = {};
$(".c-table_view_row_container").each(function () {
var name = $(this).find(".p-customize_emoji_list__author").text();
if (!counts[name]) {
counts[name]=1;
} else {
counts[name]+=1
}
@BrandonDusseau
BrandonDusseau / touchpadconf.sh
Last active November 25, 2015 00:09 — forked from tfg13/touchpadconf.sh
Synaptics/Elan touchpad configuration for Lenovo Flex 2 Pro/Edge (non-Thinkpad)
#!/bin/sh
# This file modifies synaptics driver settings for the Lenovo Flex/Edge
# clickpad. The changes do not persist so be sure to add this to a startup
# script!
# Enables two-finger tap for right click and three-finger for middle
synclient TapButton2=3
synclient TapButton3=2
@BrandonDusseau
BrandonDusseau / batlvl.sh
Last active August 29, 2015 14:24
Simple Battery Level Script
#!/bin/sh
upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep 'percentage\|state' | sed ':a;N;$!ba;s/\s\{1,\}state\:\s\{1,\}\(.*\)\n\s\{1,\}percentage\:\s\{1,\}\(.*\)/Battery level: \2 (\1)/'