Skip to content

Instantly share code, notes, and snippets.

Zane Ashby ZaneA

Block or report user

Report or block ZaneA

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
@ZaneA
ZaneA / gist:0404067e1b2a0fc6161d
Created Jun 12, 2015
Saving events into InfluxDB(?) to be rendered with Grafana(?)
View gist:0404067e1b2a0fc6161d
#!/bin/sh
curl -X POST -d '[{"name": "events", "columns": ["title", "tags", "text"], "points": [["Title", "one|two", "Text"]]}]' 'http://localhost:8086/db/events/series?u=admin&p=admin'
View keybase.md

Keybase proof

I hereby claim:

  • I am zanea on github.
  • I am zanea (https://keybase.io/zanea) on keybase.
  • I have a public key whose fingerprint is D8B5 59D4 FC8E A187 6445 E156 D4F7 0856 356B F1B1

To claim this, I am signing this object:

@ZaneA
ZaneA / git-mpush
Last active Dec 20, 2015
Usage: `git mpush origin,github master`
View git-mpush
#!/bin/bash
IFS=',' read -ra REMOTES <<< "$1"
shift
for REMOTE in "${REMOTES[@]}"; do
echo git push $REMOTE $*
git push $REMOTE $*
done
@ZaneA
ZaneA / filters.js
Created Jun 6, 2013
A couple of filters for AngularJS.
View filters.js
app.filter('escape', function () {
return function (text) {
if (!text) return '';
return text.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
};
});
app.filter('linkify', function () {
var domainRegexp = /(https?|ftp):\/\/(.*)/;
@ZaneA
ZaneA / simple-mode-line.el
Last active Dec 16, 2015 — forked from lateau/simple-mode-line.el
Remove some warnings.
View simple-mode-line.el
;;; simple-mode-line.el --- Simplified Mode Line for Emacs 24
;; Author: Daehyub Kim <lateau at gmail.com>
;; URL: https://gist.github.com/4511988
;; Version: 0.1
;; Keywords: mode-line, color
;;; Commentary:
;; This simplified mode line is adjusted to *white* themes.
@ZaneA
ZaneA / .ycm_extra_conf.py
Created Feb 6, 2013
.ycm_extra_conf.py for a project that has an existing .clang_complete
View .ycm_extra_conf.py
# Specify compiler flags for the YouCompleteMe plugin in Vim.
def FlagsForFile(filename):
return {
'flags': open('.clang_complete', 'r').readlines(),
'do_cache': True
}
@ZaneA
ZaneA / Makefile
Created Dec 16, 2012
An LD_PRELOAD hack to create an OpenGL overlay.
View Makefile
overlay : main.c
gcc -o liboverlay.so -shared -fPIC main.c -lGL -I/usr/include/freetype2 -lftgl
You can’t perform that action at this time.