https://godoc.org/github.com/mkhl/cmd/acme/autoacme
When invoked like this
autoacme acme-onevent
it will execute its argument for each event in the acme log, i.e. an event like this
#!/usr/bin/env ruby | |
require 'tempfile' | |
opts = Hash[*%w[--tt title | |
--ta artist | |
--tl album | |
--ty year | |
--tc comment |
Patch to `/usr/libexec/path_helper` to prevent hangs with long `PATH`s. | |
--- path_helper_bak 2009-05-07 15:54:37.000000000 +0200 | |
+++ path_helper 2009-06-04 10:51:39.000000000 +0200 | |
@@ -15,7 +15,7 @@ | |
for f in "$DIR" "$DIR".d/* ; do | |
if [ -f "$f" ]; then | |
for p in $(< "$f") ; do | |
- [[ "$NEWPATH" = *(*:)${p}*(:*) ]] && continue | |
+ egrep -q "(^|${SEP})${p}($|${SEP})" <<<"$NEWPATH" && continue | |
[ ! -z "$NEWPATH" ] && SEP=":" |
require 'irb' | |
module IRB | |
def self.start_session(binding) | |
IRB.setup(nil) | |
workspace = WorkSpace.new(binding) | |
if @CONF[:SCRIPT] | |
irb = Irb.new(workspace, @CONF[:SCRIPT]) |
#!/bin/zsh | |
# Usage: realpath [<path>...] | |
# Print each real absolute <path>, resolving symlinks | |
# Defaults: <path>: read from stdin | |
case $# in | |
0) | |
while read path; do | |
echo "${path:A}" | |
done |
#!/bin/bash | |
# Bail out if anything goes wrong | |
set -e | |
# Make sure Homebrew and DocBook are present | |
which -s brew | |
docbook="$(brew --prefix docbook)" | |
test -d "$docbook" |
https://godoc.org/github.com/mkhl/cmd/acme/autoacme
When invoked like this
autoacme acme-onevent
it will execute its argument for each event in the acme log, i.e. an event like this
I hereby claim:
To claim this, I am signing this object:
# prevent the use of `` in tests | |
Spec::Runner.configure do |configuration| | |
backtick = nil # establish the variable in this scope | |
saved_system = nil | |
configuration.prepend_before(:all) do | |
# raise an exception if Kernel#` or Kernel#system is used | |
# in our tests, we want to ensure we're fully self-contained | |
Kernel.instance_eval do | |
backtick = instance_method(:'`') | |
saved_system = instance_method(:system) |
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install js2py gunicorn
$ gunicorn app:app