Skip to content

Instantly share code, notes, and snippets.

@theeternalsw0rd
theeternalsw0rd / jquery.min.js
Created May 3, 2023 16:31
Quick wordpress theme for digital signage
/*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d
@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
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 / 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]
@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 / 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 / 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
<?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 / # 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
@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