Skip to content

Instantly share code, notes, and snippets.

View BTBTravis's full-sized avatar

Travis Shears BTBTravis

View GitHub Profile
@BTBTravis
BTBTravis / backup.js
Created April 23, 2020 16:45
Backup Random Wiki Articles
const backupJSON = [{ "title": "Tombstone (typography)", "description": "Symbol used in mathematics and typography", "img": "https://upload.wikimedia.org/wikipedia/commons/3/3e/Halmos_symbols.png" }, { "title": "The Execution of All Things", "description": "2002 studio album by Rilo Kiley", "img": "https://upload.wikimedia.org/wikipedia/en/5/5b/Rilo_Kiley_-_The_Execution_Of_All_Things.jpg" }, { "title": "2014 Illinois State Redbirds football team", "description": "American college football season", "img": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Illinois_State_Redbirds_Wordmark.png/320px-Illinois_State_Redbirds_Wordmark.png" }, { "title": "Market garden", "description": "relatively small-scale production of fruits, vegetables and flowers as cash crops", "img": "https://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/PK_fields_by_water1.jpg/320px-PK_fields_by_water1.jpg" }, { "title": "Sister Christian", "description": "1984 single by Night Ranger", "img": "https://upload.wikimedia.org/wiki
@BTBTravis
BTBTravis / Dev.pm
Created April 24, 2020 09:16
Perl Bless Example
#!/usr/bin/env perl
use strict;
use warnings;
require Utils;
package Dev;
sub new {
@BTBTravis
BTBTravis / DemoApp.svelte
Created May 2, 2020 11:16
Simple Input Demo App Written in Svelte
<script>
let name = 'travis shears';
</script>
<div class="svelte-demo-app">
<div class="input-group">
<label>Bound input:</label>
<input bind:value={name}>
</div>
<div>
@BTBTravis
BTBTravis / com.twtxt.agent.plist
Created May 31, 2020 21:35
Twtxt S3 Uploader
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.twtxt.agent</string>
<key>Program</key>
<string>/Users/t.shears/play/twtxt-tools/upload_twtxt.pl</string>
<key>RunAtLoad</key>
<true/>