Skip to content

Instantly share code, notes, and snippets.

Geoff Shannon RadicalZephyr

Block or report user

Report or block RadicalZephyr

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
@RadicalZephyr
RadicalZephyr / command.rs
Last active Feb 3, 2019
Example syntax for mason-rs
View command.rs
use mason::generate_builder;
#[generate_builder(CommandBuilder)]
pub struct Command {
#[builder(entrypoint, into, required)]
program: String,
args: Vec<String>,
cwd: Option<String>,
@RadicalZephyr
RadicalZephyr / docker-compose@.service
Created Oct 10, 2017
Generic systemd service file for running service's with docker-compose
View docker-compose@.service
[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
[Service]
Restart=always
WorkingDirectory=/etc/docker/compose/%i
View slack_emoji_liberator.js
// Download all the custom emoji your slack team have created!
// Start by going to the "Customize Emoji" screen for your Slack team.
// Open up a browser console and run the following JS
var pattern = new RegExp("https://emoji.slack-edge.com/.*?/([^/]+?)/[^/]+(\.png|jpg|gif)");
function link_text (url) {
var match = pattern.exec(url);
if (match) {
@RadicalZephyr
RadicalZephyr / img-separator.sh
Last active Mar 5, 2019
Copy image files from a folder and rename based on type.
View img-separator.sh
#!/usr/bin/env bash
set -e
if [ $# -lt 1 ]
then
echo "You must enter the name of a folder."
exit 1
fi
@RadicalZephyr
RadicalZephyr / TimelineExtract.js
Created Apr 24, 2014
Extract the checkin links from a Fossil timeline page
View TimelineExtract.js
// ==UserScript==
// @name Fossil Time Log
// @namespace http://www.zephyrizing.net/gmscripts
// @description Generate some time-logs from the fossil timeline page
// @include http://scm.ldc.cs.wwu.edu:8888/classfinder/timeline?n=20&y=ci
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js
// @version 1
// @grant none
// ==/UserScript==
View keybase.md

Keybase proof

I hereby claim:

  • I am radicalzephyr on github.
  • I am radicalzephyr (https://keybase.io/radicalzephyr) on keybase.
  • I have a public key whose fingerprint is F225 FDC5 C9B0 29F7 EFD0 2DCD 3585 34C6 11F0 56F5

To claim this, I am signing this object:

@RadicalZephyr
RadicalZephyr / parsetest.rb
Last active Dec 22, 2015
Show case a macruby bug with regex syntax
View parsetest.rb
puts %r{hello}.match("hello")
brokenreg = %r{
hello #stuff happens
$ # end of line
}x
definition = %r{
^ # begin of line
You can’t perform that action at this time.