Skip to content

Instantly share code, notes, and snippets.

k3sup install \
--host=172.16.10.11 \
--user=ootput \
--k3s-version=v1.21.1+k3s1 \
--local-path=config.minipcarmy.yaml \
--context minipcarmy \
--cluster \
--tls-san 172.16.10.5 \
--k3s-extra-args="--disable servicelb --node-taint node-role.kubernetes.io/master=true:NoSchedule"
@ootput
ootput / form.js.diff
Created April 8, 2015 10:17
form.js diff for usable search
@@ -12,7 +12,7 @@ function searchFormHelper(options){
return '<form action="//google.com/search" method="get" accept-charset="UTF-8" class="' + className + '">' +
'<input type="search" name="q" results="0" class="' + className + '-input"' + (text ? ' placeholder="' + text + '"' : '') + '>' +
(button ? '<button type="submit" class="' + className + '-submit">' + (typeof button === 'string' ? button : text) + '</button>' : '') +
- '<input type="hidden" name="q" value="site:' + config.url + '">' +
+ '<input type="hidden" name="sitesearch" value="' + config.url + '">' +
'</form>';
}
@ootput
ootput / gist:2533388c5f864facc128
Created December 3, 2014 11:44
parted for alignment
When asked about start and end we are going to use percentages like so.
(parted) mkpart
Partition name? []? 1
File system type? [ext2]? ext4
Start? 0%
End? 100%
You could also do this from the command line like
@ootput
ootput / gist:0d3c5c70725a820ae1d2
Last active August 29, 2015 14:10
URLS for linux installations
http://cynicaltux.blogspot.it/2014/03/round-off-your-crunchbang-waldorf-part-i.html
//10.254.0.10/tv_episodes /data/tv_episodes cifs credentials=/usr/local/etc/whisper.credentials,file_mode=0664,dir_mode=0775,gid=adm,uid=1000,user 0 0
//10.254.0.10/hd_movies /data/hd_movies cifs credentials=/usr/local/etc/whisper.credentials,file_mode=0664,dir_mode=0775,gid=adm,uid=1000,user 0 0
//10.254.0.10/downloads /data/downloads cifs credentials=/usr/local/etc/whisper.credentials,file_mode=0664,dir_mode=0775,gid=adm,uid=1000,user 0 0
/usr/local/etc/whisper.credentials:
username=10.254.0.10/ootput
password=****
@ootput
ootput / sidebar.twig
Created November 26, 2014 07:56
Readernaut on Chyrp
{% if modules.readernaut %}
<h3><span>${ "Readernaut" }</span></h3>
<table><tr>
{% for book in modules.readernaut.books %}
<td>
<a href="$book.book_edition.permalink">
<img src="$book.book_edition.covers.cover_small" alt="$book.book_edition.title" />
</a>
</td>
{% endfor %}
{% if modules.readernaut %}
<h3><span>${ "Readernaut" }</span></h3>
<table><tr>
{% for book in modules.readernaut.books %}
<td>
<a href="$book.book_edition.permalink">
<img src="$book.book_edition.covers.cover_small" alt="$book.book_edition.title" />
</a>
</td>
{% endfor %}
@ootput
ootput / gist:10014591
Created April 7, 2014 03:51
update-resolv-conf for openvpn
#!/usr/local/bin/bash
#
# Parses DHCP options from OpenVPN to update resolv.conf.
# To use set as ‘up’ and ‘down’ script in your openvpn config:
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
#
# credit:
# * Thomas Hood <jdthood@yahoo.co.uk>
# * Chris Hanson
-- look_ootput_dark.lua drawing engine configuration file for Ion.
---- <ootput @ freenode>
if not gr.select_engine("de") then return end
de.reset()
de.defstyle("*", {
background_colour = "black",
foreground_colour = "#204a87",
-- look-ootput.lua drawing engine configuration file for Ion.
---- <http://metawire.org/~ootput>
if not gr.select_engine("de") then return end
de.reset()
de.defstyle("*", {
shadow_colour = "grey20",
highlight_colour = "grey20",
@ootput
ootput / init.freebsd.diff
Created December 1, 2012 08:46
Small patch to fix Sickbeard's FreeBSD init script
diff --git a/init.freebsd b/init.freebsd
index 8d9ba4b..3f65b31 100755
--- a/init.freebsd
+++ b/init.freebsd
@@ -69,7 +69,7 @@ verify_sickbeard_pid() {
sickbeard_stop() {
echo "Stopping $name"
verify_sickbeard_pid
- ${WGET} -O - -q --user=${SBUSR} --password=${SBPWD} "http://${HOST}:${PORT}/home/shutdown/" >/dev/null
+ ${WGET} -O - -q --user=${SBUSR} --password=${SBPWD} "http://${HOST}:${PORT}/home/shutdown/?pid=${pid}" >/dev/null