Skip to content

Instantly share code, notes, and snippets.

Peter Lyons focusaurus

Block or report user

Report or block focusaurus

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
View gist:0af1f5a56a86e051858cdf308588fa05
RUST_BACKTRACE=full broot --install
thread 'main' panicked at 'assertion failed: width > 2', /home/dys/.cargo/registry/src/github.com-1ecc6299db9ec823/termimad-0.6.5/src/wrap.rs:128:5
stack backtrace:
0: 0x55b961aab458 - <unknown>
1: 0x55b961aaabb8 - <unknown>
2: 0x55b961a89524 - <unknown>
3: 0x55b961a9d4a1 - <unknown>
4: 0x55b961a9fce9 - <unknown>
5: 0x55b96197eb03 - <unknown>
6: 0x55b961984feb - <unknown>
@focusaurus
focusaurus / ep_app.js
Created Jun 14, 2013
Example of how a main express app can mount sub-applications on a mount point with app.use('/mount-point', subapp); If you GET /, you'll see the main_app's '/' response. If you GET /ep_app, you'll see the ep_app's '/' response.
View ep_app.js
var express = require("express");
var app = express();
app.get('/', function (req, res) {
res.send("This is the '/' route in ep_app");
});
module.exports = app;
@focusaurus
focusaurus / A.elm
Created Dec 5, 2016
Decode JSON string enum into elm union type
View A.elm
module A exposing (..)
import Json.Decode as JD
import Json.Encode as JE
type alias User =
{ id : Int
, theme : Theme
}
@focusaurus
focusaurus / fuzzball.sh
Created Nov 25, 2018
Fuzzball desktop automation script
View fuzzball.sh
#!/usr/bin/env bash
# Please Use Google Shell Style: https://google.github.io/styleguide/shell.xml
# ---- Start unofficial bash strict mode boilerplate
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -o errexit # always exit on error
set -o errtrace # trap errors in functions as well
set -o pipefail # don't ignore exit codes when piping output
set -o posix # more strict failures in subshells
@focusaurus
focusaurus / message.md
Last active Mar 11, 2019
Denver/Boulder Freelance Web Developers Meetup Group Shutting Down
View message.md

This Meetup Group Can No Longer Be No-Cost and Will Terminate

Prakash has stepped down as the only officially-registered organizer of our meetup group, although Pete Lyons and Rylan Bowers had also done some light organizing as needed.

However, it seems although we've had the meetup group on super-low simmer mode for several years, we will no longer be able to use Meetup for free according to their guidlines (fewer than 50 members and 3 organizers). We have some 354 members currently.

In order to continue the meetup group, Meetup wants $14.99/month. Since we hold in-person meetups so rarely and the attendance is only a tiny fraction of our membership, Rylan and I are inclined to allow the meetup group to lapse and be shut down.

Please Continue to Use Our Slack

View gist:46a5e87f930bfb4524cce6d10d6fd768
/ # ldd /usr/local/bin/zola
/lib64/ld-linux-x86-64.so.2 (0x7fac5eead000)
Error loading shared library libstdc++.so.6: No such file or directory (needed by /usr/local/bin/zola)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7fac5eead000)
librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7fac5eead000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7fac5eead000)
Error loading shared library libgcc_s.so.1: No such file or directory (needed by /usr/local/bin/zola)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fac5eead000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /usr/local/bin/zola)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fac5eead000)
@focusaurus
focusaurus / docker-run.sh
Created Oct 17, 2018
Script to drop into myproject/bin and go to town with docker
View docker-run.sh
#!/usr/bin/env bash
# Please Use Google Shell Style: https://google.github.io/styleguide/shell.xml
# ---- Start unofficial bash strict mode boilerplate
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -o errexit # always exit on error
set -o errtrace # trap errors in functions as well
set -o pipefail # don't ignore exit codes when piping output
set -o posix # more strict failures in subshells
@focusaurus
focusaurus / remark-latest-min.js
Last active Jul 22, 2018
remark slide boilerplate
View remark-latest-min.js
require=function e(t,a,r){function s(i,l){if(!a[i]){if(!t[i]){var o="function"==typeof require&&require;if(!l&&o)return o(i,!0);if(n)return n(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var d=a[i]={exports:{}};t[i][0].call(d.exports,function(e){var a=t[i][1][e];return s(a?a:e)},d,d.exports,e,t,a,r)}return a[i].exports}for(var n="function"==typeof require&&require,i=0;i<r.length;i++)s(r[i]);return s}({1:[function(e,t,a){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function s(e){return"function"==typeof e}function n(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function l(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!n(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,a,r,n,o,c;if(th
@focusaurus
focusaurus / .babelrc
Created Jan 28, 2016
iron-node and babel step through
View .babelrc
{
"presets": ["es2015", "stage-0"],
"plugins": [
"transform-decorators-legacy",
"transform-export-extensions"
]
}
You can’t perform that action at this time.