This file contains hidden or 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
╭─ husjon in /tmp/testing | |
╰─(ノ˚Д˚)ノ ansible-playbook -i hosts playbook.yaml -vvvv | |
ansible-playbook 2.9.13 | |
config file = /etc/ansible/ansible.cfg | |
configured module search path = ['/home/husjon/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/lib/python3.8/site-packages/ansible | |
executable location = /usr/bin/ansible-playbook | |
python version = 3.8.5 (default, Sep 5 2020, 10:50:12) [GCC 10.2.0] | |
Using /etc/ansible/ansible.cfg as config file | |
setting up inventory plugins |
This file contains hidden or 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
#!/bin/bash | |
swap() { | |
tmux swap-pane -s $1 -t $2 | |
tmux select-pane -t $1 | |
} | |
get_id() { | |
echo $(tmux run "echo #{pane_id}") | |
} | |
swap_vert() { |
This file contains hidden or 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
#/bin/bash | |
for pkg in $(synopkg list --name); do | |
for dep_pkg in $(synopkg list --depend-on $pkg --name); do | |
echo "$pkg -> $dep_pkg"; | |
done | |
done | sort |
This file contains hidden or 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
596c596,597 | |
< app_java_home=`pwd` | |
--- | |
> java_binary_path="$(find -name 'java' | sed 's/\/bin\/java//')" | |
> app_java_home="$(realpath "${java_binary_path}")" |
A write-up of how I'm using this can be found at https://husjon.github.io/notes/Obsidian-to-Quartz-setup
This file contains hidden or 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
#!/bin/sh | |
if [ `nvram get https_enable` -gt 0 ] ; then | |
# get the absolute directory of the executable | |
SELF_PATH=$(cd -P "$(dirname "$0")" && pwd -P) | |
echo SELF_PATH: ${SELF_PATH} | |
# extract the mount path |
This file contains hidden or 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
gtlbhbjgkrb5sixfivefivetwosix | |
ninesixrgxccvrqscbskgzxh6cpvpxsqnb6 | |
dxxzrlzkksfsffp4 | |
sbzvmddhnjtwollnjv33d2lbcscstqt | |
88xpnfpb | |
ninevct4cpdvqfxmspbz9xrvxfvbpzthreesfnncrqn | |
mqsxzsglbtmsbltrbzkbrt23 | |
seven16ninefc | |
8jdddctvxs3 | |
fivennhhdfpmrnpjhdm2sixkrsgdt |
This file contains hidden or 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
/* | |
* Run on https://www.humblebundle.com/home/library | |
* Global variable `gamekeys` is available on the Library page | |
* | |
*/ | |
Promise.all(gamekeys.map(key => { | |
return new Promise((resolve, reject) => { | |
$.ajax({ | |
url: `https://www.humblebundle.com/api/v1/order/${key}?all_tpkds=true` | |
}).done(data => resolve(data)) |
A simple script to install a certificate (specifically PKCS#12
) for the Zyxel GS1900 switch using the v2.80V2.80(AAHK.0) | 10/16/2023
firmware.
Firmware release notes can be found here: https://download.zyxel.com/GS1900-24E/firmware/GS1900-24E_2.80(AAHK.0)C0_2.pdf
The idea for it is to allow us to update the certificate automatically when needed (hands-free) with for example certbot.
After some investigation I found that the switch was very stubborn about how it wants the request sent.
In short:
OlderNewer