Skip to content

Instantly share code, notes, and snippets.


pestophagous pestophagous

View GitHub Profile
pestophagous / playbook.yml
Created Apr 1, 2020
playbook from Apr 1 demo. (not intentionally an April fool's gag)
View playbook.yml
- hosts: localhost
connection: local # also run as: ansible-playbook -vv --connection=local playbook.yml
become: yes
plain_old_username: username
repos_install_dir: /opt/repositories/
pestophagous / Vagrantfile
Created Feb 19, 2020
quick linux gui vm environment, ubuntu 16 or 18
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# For reference, please see the online documentation at
View add_n_diff
if [ "${BASH_SOURCE[0]}" -ef "$0" ]
echo "Hey, you should source this script, not execute it!"
exit 1
reporoot=`git rev-parse --show-toplevel`
these=`git status --porcelain | grep '^UU' | awk '{printf("'${reporoot}'/%s\n", $2)}'`
View 01-checklist.txt
git clone
git clone priv-dots.git
git clone lisp
git clone # /usr/share/X11/xkb/symbols # tweaks
View mybuild_qmlfmt.readme.txt
git clone
cd qmlfmt
git checkout 942200d
use to_apply_to_942200d.patch # so it will compile with qt 5.8.0
using "our customer's copy" of qt, which is qt 5.8.0
pestophagous /
Created Oct 14, 2015
runs on mac. (uses launchctl). hide something, but set a task to auto-restore in 15 minutes. (for atos. could be made more general.)
echo "about to run 'sudo launchtl list', so you might be prompted for sudoer password!"
CHECK_ATRUN=`(sudo launchctl list | grep atrun | wc -l)`
if [ "$CHECK_ATRUN" -ne "1" ]; then
echo ""
echo "Refusing to run the script."
echo ""
pestophagous / go-in-emacs-cheatsheet.el
Last active Feb 21, 2019
scratch pad of various commands to recall
View go-in-emacs-cheatsheet.el
(setq mybuild-command "go build -v main.go && go test -v ./...")
(setq mybuild-command "go test -v")
(setq mybuild-command "go build -v && go test -v")
; run the go build from "high" in the folder tree, so you see longer paths in the compiler errors:
(setq mybuild-dir "/Users/someone/")
; available because of edits I made in go-mode.el (see bottom)
; M-x j (open go definition in this same window)
You can’t perform that action at this time.