Skip to content

Instantly share code, notes, and snippets.

View boneskull's full-sized avatar
💀

Christopher Hiller boneskull

💀
View GitHub Profile
@boneskull
boneskull / svg-ellipsis.directive.ts
Created June 26, 2017 19:38
Angular directive to simulate "text-overflow: ellipsis" on an SVG text node
/**
* @see https://stackoverflow.com/questions/15975440/add-ellipses-to-overflowing-text-in-svg
* @example
* <!-- truncate at 200px -->
* <svg><svg:text ellipsis [text]="text to truncate" [width]="200"></svg:text></svg>
*/
import {
Directive,
ElementRef,
@boneskull
boneskull / .block
Created May 7, 2017 08:35
fiddling w snapsvg
license: mit
@boneskull
boneskull / .block
Created May 7, 2017 08:35
fiddling w snapsvg
license: mit
@boneskull
boneskull / .block
Last active April 11, 2017 19:25
fresh block
license: mit
@boneskull
boneskull / main.yml
Last active February 10, 2023 21:08
Node-RED Ansible role (Debian & derivatives)
---
# This task just includes everything else we need
- include_role:
# a task to install nodejs from Nodesource's distros
name: nodejs
- include_role:
# a task to install nginx
name: web
# everything below here is in this gist
- include: prerequisites.yml
@boneskull
boneskull / .babelrc
Created February 5, 2017 19:19
babel bug with polyfill and async function in same module
{
"presets": [
[
"env",
{
"targets": {
"node": 4
}
}
]
@boneskull
boneskull / keybase.md
Created January 29, 2017 10:48
keybase.md

Keybase proof

I hereby claim:

  • I am boneskull on github.
  • I am boneskull (https://keybase.io/boneskull) on keybase.
  • I have a public key ASA2SWhelHgPkaVgFSjjGewaMahzlqWtobK3ciwLKWoEGAo

To claim this, I am signing this object:

@boneskull
boneskull / readme.md
Last active June 13, 2017 02:25
HOWTO: Install logentries agent & logentries-daemon on armhf (Debian Jessie)

Why?

Because Logentries doesn't publish .debs for armhf.

  1. Install Python 2.7
  2. sudo apt-get install python-simplejson -y
  3. Grab latest release tarball from GitHub
  4. Extract & enter new dir; sudo python setup.py install
  5. Grab logentries daemon tarball, hack around logentries dep:
@boneskull
boneskull / config.yml
Last active January 16, 2017 20:39
flexget config
tasks:
showrss:
rss: '<YOUR RSS FEED>'
deluge:
username: '<YOUR USERNAME>'
password: '<YOUR PASSWORD>'
all_series: yes
only_new: yes
schedules:
- tasks: showrss
@boneskull
boneskull / deluge-web.service
Created January 16, 2017 15:56
deluge-web systemd service
[Unit]
Description=Deluge Bittorrent Web Daemon
After=network-online.target
[Service]
User=boneskull
Group=dialout
Type=simple
ExecStart=/usr/bin/deluge-web -l /var/log/deluge/web.log -L info
Restart=on-failure