This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env scriptisto | |
# scriptisto-begin | |
# script_src: script.py | |
# build_once_cmd: python -m venv . && . ./bin/activate && pip install beautifulsoup4 | |
# build_cmd: . ./bin/activate && chmod +x ./run.sh | |
# target_bin: ./run.sh | |
# files: | |
# - path: run.sh | |
# content: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iconv -s -t ascii//translit | tr -d \'\" | sed -E 's/[[:space:]]+/-/g' | tr A-Z a-z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install brew as per https://docs.brew.sh/Installation | |
# See https://bit.ly/3ykJEJC for tips | |
# | |
# Then run this .Brewfile like so: | |
# | |
# rm -rf $(brew --prefix)/var/homebrew/locks | |
# brew bundle install --global && brew cu -a -f | |
# | |
# Update with: | |
# rm -rf $(brew --prefix)/var/homebrew/locks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type d -exec sh -c 'cd "{}"; git rev-parse --git-dir 2> /dev/null 1>&2' \; -prune -print | xargs -L1 -I% -t sh -c 'pushd % ; git pull -r ; popd' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[pull] | |
rebase = True | |
[user] | |
email = simon@brunningonline.net | |
name = Simon Brunning | |
[rerere] | |
enabled = true | |
[core] | |
editor = emacs | |
[alias] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--ignore-directory=is:venv | |
--ignore-directory=is:.env | |
--ignore-directory=is:.direnv | |
--ignore-directory=is:.tox | |
--ignore-directory=is:.git | |
--ignore-directory=is:.terraform | |
--type-set=erb:ext:erb | |
--type-set=graphviz:ext:dot | |
--type-set=markdown:ext:md | |
--type-set=puppet:ext:pp,eyaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import logging | |
import sys | |
import warnings | |
from collections import Mapping | |
from functools import lru_cache | |
from jinja2 import Template | |
from jinja2.utils import concat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EqualityFromDict: | |
"""Mix-in allowing equality checking from instance's __dict__""" | |
def __eq__(self, other): | |
return self.__class__ is other.__class__ and self.__dict__ == other.__dict__ | |
class ReprFromDict: | |
"""Mix-in implementing repr() from instance's __dict__""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Packages | |
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa-stable" . "https://stable.melpa.org/packages/")) | |
(package-initialize) | |
(package-install 'auto-complete) | |
(package-install 'markdown-mode) | |
;; Theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +brunns is my blockchain ID. https://onename.com/brunns |
NewerOlder