Skip to content

Instantly share code, notes, and snippets.

Bryan Gilbert gilbertw1

Block or report user

Report or block gilbertw1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
gilbertw1 / error.txt
Created Oct 10, 2018
Arch Linux Servo OpenSSL Error
View error.txt
$ OPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 OPENSSL_LIB_DIR=/usr/lib/openssl-1.0 ./mach build -d master✱ λ borealis
Compiling servo v0.0.1 (/home/gilbertw1/projects/opensource/servo/ports/servo)
error: linking with `cc` failed: exit code: 1
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/gilbertw1/.rustup/toolchains/nightly-2018-10-05-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/gilbertw1/projects/opensource/servo/target/debug/deps/servo-7608be91cbd3c0a9.1004l5ycnbtbr5lb.rcgu.o" "/home/gilbertw1/projects/opensource/servo/target/debug/deps/servo-7608be91cbd3c0a9.13c0a8jtt9kk6ydp.rcgu.o" "/home/gilbertw1/projects/opensource/servo/target/debug/deps/servo-7608be91cbd3c0a9.154a4qp4q1ijjeo8.rcgu.o" "/home/gilbertw1/projects/opensource/servo/target/debug/deps/servo-7608be91cbd3c0a9.15q6054mg4j93jqb.rcgu.o" "/home/gilbertw1/projects/opensource/servo/target/debug/deps/servo-
View projectile-bookmark.el
(defun counsel-projectile-bookmark ()
"Forward to `bookmark-jump' or `bookmark-set' if bookmark doesn't exist."
(require 'bookmark)
(let ((projectile-bookmarks (projectile-bookmarks)))
(ivy-read "Create or jump to bookmark: "
:action (lambda (x)
(cond ((and counsel-bookmark-avoid-dired
(member x projectile-bookmarks)
gilbertw1 / preview
Last active Oct 23, 2017
Awesome rg search
View preview
FILE="$(echo "$FILE_LINE_NO" | cut -d":" -f1)"
SUFFIX="$(echo $FILE | cut -d"." -f2)"
LINE_NO="$(echo "$FILE_LINE_NO" | cut -d":" -f2)"
if [ "$LINE_NO" -gt 10 ]
START="$((${LINE_NO} - 10))"
gilbertw1 /
Last active Oct 12, 2017
Externally edit text field in qutebrowser
c.aliases['edit-field'] = 'debug-pyeval -q objreg.get(\'tabbed-browser\', scope=\'window\', window=\'last-focused\').currentWidget()\'document.activeElement.value\', lambda res: objreg.get(\'command-dispatcher\', scope=\'window\', window=\'last-focused\')._run_userscript(\'edit_field\', res, verbose=False))'
# Indented Command Python
objreg.get('tabbed-browser', scope='window', window='last-focused') \
.currentWidget() \
.runJavaScript('document.activeElement.value', lambda res:
objreg.get('command-dispatcher', scope='window', window='last-focused') \
._run_userscript('edit_field', res, verbose=False))
gilbertw1 / evil.el
Created Oct 6, 2017
disable region limiting in evil-ex
View evil.el
(evil-define-command evil-ex (&optional initial-input)
:keep-visual t
:repeat abort
(let ((s (concat
(let ((arg (prefix-numeric-value current-prefix-arg)))
(cond ((< arg 0) (setq arg (1+ arg)))
View gvim
for file in "$@"
if [ -f "$file" ]; then
termite -e "nvim $file"
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2014-2017 Florian Bruhin (The Compiler) <>
# This file is part of qutebrowser.
# qutebrowser is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

XMonad Keybindings


  • M-q Reload XMonad configuration
  • M-S-q Exit XMonad


  • M-SPC Switch to next layout in current workspace
  • M-S-SPC Reset layout in current workspace
  • M-f Switch to fullscreen layout
gilbertw1 /
Last active Aug 22, 2017
A simple script that re-indexes emails using mu and sends a notification if new emails are detected.
# puts timestamps into an easily comparable format
extract_timestamp() {
local RAW="$(echo "$1" | cut -c1-31)"
echo "$(date --date="$RAW" '+%Y-%m-%d:%H:%M:%S')"
# removes html characters that are interpreted poorly by dunst
format_string() {
echo "$1" | sed 's/>/\&gt;/' | sed 's/</\&lt;/' | sed 's/\$/\\$/'
You can’t perform that action at this time.