Skip to content

Instantly share code, notes, and snippets.

@theeternalsw0rd
theeternalsw0rd / autogen.rb.guile.diff
Created January 17, 2018 17:31
homebrew autogen formula patch to allow head version of guile
diff --git a/agen5/guile-iface.h b/agen5/guile-iface.h
index 0aeabb0..6ce3520 100644
--- a/agen5/guile-iface.h
+++ b/agen5/guile-iface.h
@@ -9,7 +9,7 @@
# error AutoGen does not work with this version of Guile
choke me.
-#elif GUILE_VERSION < 201000
+#else
@theeternalsw0rd
theeternalsw0rd / guile-head-version.diff
Last active January 17, 2018 19:23
Guile head should not have version from release tarball
diff --git a/GUILE-VERSION b/GUILE-VERSION
index a44c254fb..0db8a3b45 100644
--- a/GUILE-VERSION
+++ b/GUILE-VERSION
@@ -1,8 +1,8 @@
# -*-shell-script-*-
# Note: `GUILE_VERSION' is defined in `configure.ac' using `git-version-gen'.
-GUILE_MAJOR_VERSION=2
-GUILE_MINOR_VERSION=3
@theeternalsw0rd
theeternalsw0rd / # cairo - 2018-01-18_18-04-16.txt
Created January 18, 2018 23:28
cairo on macOS 10.13.3 - Homebrew build logs
Homebrew build logs for cairo on macOS 10.13.3
Build date: 2018-01-18 18:04:16
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
xmlns:ng="http://docbook.org/docbook-ng"
xmlns:db="http://docbook.org/ns/docbook"
exclude-result-prefixes="exsl"
version='1.0'>
<xsl:import href="../html/docbook.xsl"/>
<xsl:import href="../html/manifest.xsl"/>
@theeternalsw0rd
theeternalsw0rd / hover-export.js
Last active February 27, 2018 17:59
DNS zone file
// Hover.com "Zone file import/export" has been *Planned* since 2011
// https://help.hover.com/entries/471066-Zone-file-import-export
// Here's a brittle approximation of export.
//
// 1. login to your account: https://www.hover.com/domains
// 2. run the following in your browser's JavaScript console
// 3. copy the text logged to the console.
// 4. manually correct FQDNs, these have to end with a period "."
//
// If things go wrong a noisy error should appear in the console; JavaScript debugger might
@theeternalsw0rd
theeternalsw0rd / README
Created March 15, 2018 19:13
gcloud auth and cleanup hooks for certbot
There's a built-in timout of 60 seconds verifying the record updated to the nameserver.
You may need to adjust for your environment.
Since the script only checks against the first nameserver, it's possible that certbot
could validate despite the script saying operation timed out. But if certbot fails and you see
that the operation timed out, that will give you a starting point to debug.
@theeternalsw0rd
theeternalsw0rd / README
Last active March 15, 2018 23:10
Microsoft Graph API Admin Consent URI
Searched Microsoft documentation for several hours before I could find the instructions. I'm creating this for my reference
and anyone fruitlessly searching Google.
https://login.microsoftonline.com/{tenant}/adminconsent?client_id={your azure app id}&state=12345&redirect_uri={your app url}
Also, memberOf actually requires Directory level permission, not Group level.
@theeternalsw0rd
theeternalsw0rd / emerge.log
Last active March 18, 2018 09:49
emerge output
$ emerge -p samba --INSERT--
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] net-libs/libtirpc-1.0.2-r1 USE="ipv6 -kerberos -static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild U ] sys-libs/talloc-2.1.11 [2.1.9]
[ebuild U ] sys-libs/tevent-0.9.35 [0.9.31-r1]
[ebuild N ] dev-util/cmocka-1.1.1 USE="-doc -static-libs {-test}" ABI_X86="(64) -32 (-x32)"
[ebuild U ] sys-libs/tdb-1.3.15 [1.3.13]
rm /usr/local/bin/exa
rm /usr/local/etc/bash_completion.d/exa
rm /usr/local/share/fish/vendor_completions.d/exa.fish
rm /usr/local/share/man/man1/exa.1
rm /usr/local/share/zsh/site-functions/_exa
rmdir /usr/local/share/fish/vendor_completions.d
rmdir /usr/local/share/fish
==> Reinstalling exa
/usr/bin/sandbox-exec -f /tmp/homebrew20180706-23605-18bm5tt.sb nice /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -W0 -I /Users/eternalsword/.homebrew/Library/Homebrew -- /Users/eternalsword/.homebrew/Library/Homebrew/build.rb /Users/eternalsword/.homebrew/Library/Taps/homebrew/homebrew-core/Formula/exa.rb --verbose
==> Downloading https://github.com/ogham/exa/archive/v0.8.0.tar.gz
@theeternalsw0rd
theeternalsw0rd / # exa - 2018-07-06_19-00-33.txt
Created July 6, 2018 23:04
exa on macOS 10.14 - Homebrew build logs
Homebrew build logs for exa on macOS 10.14
Build date: 2018-07-06 19:00:33