Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Montgomery darkliquid

View GitHub Profile
@darkliquid
darkliquid / newsupdates.coffee
Created Mar 6, 2014
Newsupdates Dashing Widget
View newsupdates.coffee
class Dashing.Newsupdates extends Dashing.Widget
@darkliquid
darkliquid / tuuuuuune.js
Last active Aug 29, 2015
A plugin for leader1 to like tracks when people say TTTTTUUUUUUUUNNNNNNNNNEEEEEE or a variant thereof
View tuuuuuune.js
RegisterCallback("PRIVMSG", "TUUUUUUUUNE", function() {
var msg = this.event.message,
args = msg.split(" "),
source = this.event.args[0],
nick = this.event.nick,
me = IRC.GetNick(),
stats = UTILS.GetShoutcastStats(),
cfg = GetConfig();
if(nick != me && msg.match(/T(U+)(N+)E/) && !msg.match(/^!/)) {
View keybase.md

Keybase proof

I hereby claim:

  • I am darkliquid on github.
  • I am darkliquid (https://keybase.io/darkliquid) on keybase.
  • I have a public key whose fingerprint is AB5D 304C 78C2 6182 A1C2 15F7 E849 541B 6EF1 C36B

To claim this, I am signing this object:

@darkliquid
darkliquid / css-card.html
Last active Aug 29, 2015
gingko space theme css
View css-card.html
<style>
body {
background: url(http://www.startextures.com/starnetblog/wp-content/uploads/2010/09/starnetblog_cloudy_starfield_texture8.jpg);
}
.cards {
background: rgba(0,0,0,.7);
color: #fff;
}
.columns .column .cards {
border :0;
View change_screensize.sh
#!/bin/bash
res=$(zenity --list --text="Choose a screen size" --column="Choice" --column="Resolution" --radiolist FALSE "1680x1050" TRUE "3360x1050" --separator=":")
if [ $? ] ; then
xrandr --size $res
fi
@darkliquid
darkliquid / le-renew-webroot
Last active Jan 30, 2016 — forked from thisismitch/le-renew-webroot
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx) - Single renew script to support multiple configs at once
View le-renew-webroot
#!/bin/bash
web_service='nginx'
config_files="/usr/local/etc/letsencrypt/*.ini"
le_path='/opt/letsencrypt'
exp_limit=30;
do_reload=0;
for config_file in $config_files; do
View simple-php-js-gulpfile.js
// Handles js, sass, image optimisation/compilation and does very basic PHP linting and livereload
var gulp = require('gulp'),
minifycss = require('gulp-minify-css'),
notify = require('gulp-notify'),
cache = require('gulp-cache'),
sass = require('gulp-sass'),
uglify = require('gulp-uglify'),
gutil = require('gulp-util'),
refresh = require('gulp-livereload'),
lr = require('tiny-lr'),
@darkliquid
darkliquid / formatting.md
Last active Oct 5, 2017
Gingkoapp microscope games
View formatting.md

Formatting Guidelines

Use ## for Period headings, ### for event headings, #### for scene headings. This way exporting to html/markdown/etc makes for nice vertical reading.

Append the tone to the card with a dash, then the tone in italics for light tones (e.g. - *Light*) or bold for dark tones (e.g. - **Dark**)

View Config.ini
Config_readinBat=1
Config_readinCpu=1
Config_readinMemoryUsage=1
Config_readinVolume=1
Config_borderWidth=10
Config_rule_#19=.*Wox.*;.*Wox.*;;0;0;0;1;0;1;
Config_rule_#20=Chrome_WidgetWin_1;.*Google Chrome;;1;0;0;0;1;0;
Config_rule_#21=VirtualConsoleClass;Cmder;;1;0;0;0;0;0;
@darkliquid
darkliquid / # httpd - 2018-08-28_10-54-18.txt
Created Aug 28, 2018
httpd on Ubuntu 18.04.1 LTS - Homebrew build logs
View # httpd - 2018-08-28_10-54-18.txt
Homebrew build logs for httpd on Ubuntu 18.04.1 LTS
Build date: 2018-08-28 10:54:18