Skip to content

Instantly share code, notes, and snippets.

View shaunduncan's full-sized avatar

Shaun Duncan shaunduncan

View GitHub Profile
@shaunduncan
shaunduncan / alacritty_codepoint_subst.diff
Created April 17, 2024 21:02
alacritty patch to mimic the behavior of kitty's symbol_map for unicode codepoint substitution
alacritty/src/config/font.rs | 20 ++++++++++++++
alacritty/src/renderer/text/glyph_cache.rs | 42 ++++++++++++++++++++++++++----
2 files changed, 57 insertions(+), 5 deletions(-)
diff --git a/alacritty/src/config/font.rs b/alacritty/src/config/font.rs
index 061c0f42..b9630f84 100644
--- a/alacritty/src/config/font.rs
+++ b/alacritty/src/config/font.rs
@@ -42,6 +42,9 @@ pub struct Font {
@shaunduncan
shaunduncan / keybase.md
Created November 1, 2019 23:20
keybase.md

Keybase proof

I hereby claim:

  • I am shaunduncan on github.
  • I am smduncan (https://keybase.io/smduncan) on keybase.
  • I have a public key ASC87EdDOV293PDN52z6dZPrfaUj1WnqS_HWi3q0lqOP5wo

To claim this, I am signing this object:

#!/usr/bin/env python
# -*- coding: utf8 -*-
import subprocess
from operator import itemgetter, methodcaller
def get_current_state(battery):
state = ''
pct = 100.0
#!/usr/bin/env python
# -*- coding: utf8 -*-
import subprocess
from operator import itemgetter, methodcaller
import dbus
def get_current_track():
diamond 41115 diamond 3w REG 8,2 261385928704 0 9043981 /var/log/diamond/diamond.log.2015-03-28 (deleted)
# The web server:
import SimpleHTTPServer
import SocketServer
PORT = 8000
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
package main
import "fmt"
import xmlx "github.com/jteeuwen/go-pkg-xmlx"
var demo = `
<document>
<collection>
<category>One</category>
<category>Two</category>
@shaunduncan
shaunduncan / gist:6904322
Created October 9, 2013 16:44
Move godep build binaries to $build/bin
# Add to end of bin/compile in heroku go buildpack
if test -f $build/Godeps; then
echo "-----> Checking for build artifacts from godep sandbox"
for dep in $(echo `godep path` | tr ":" "\n"); do
if test -d $dep/bin; then
echo " Moving: `ls -m $dep/bin`"
mv $dep/bin/* $build/bin
fi
done
fi