Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Kai Hendry kaihendry

🏠
Working from home
Block or report user

Report or block kaihendry

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:e50bfcdc37a75585d0dd753661cbd55d
21:26 DEBUG: Couldn't load emoji list: IOError: [Errno 2] No such file or directory: u'/home/hendry/.weechat/weemoji.json'
21:27 DEBUG: rtm.start failed with return_code -2. stack:
21:27 File "/home/hendry/.weechat/python/autoload/wee_slack.py", line 137, in wrapper
21:27 return f(*decode_from_utf8(args), **decode_from_utf8(kwargs))
21:27 File "/home/hendry/.weechat/python/autoload/wee_slack.py", line 711, in receive_httprequest_callback
21:27 EVENTROUTER.receive_httprequest_callback(data, command, return_code, out, err)
21:27 File "/home/hendry/.weechat/python/autoload/wee_slack.py", line 504, in receive_httprequest_callback
21:27 .format(return_code, ''.join(traceback.format_stack())), level=5)
21:27 DEBUG: rtm.start failed with return_code -2. stack:
21:27 File "/home/hendry/.weechat/python/autoload/wee_slack.py", line 137, in wrapper
View gist:e5677e660733a4c1751cb54ff1cb7a03
21:26 Option changed: plugins.var.python.slack.debug_mode = "true"
21:26 Command not found: reload
21:26 python: unloading script "slack"
21:26 python: script "slack" unloaded
21:26 python: loading script "/home/hendry/.weechat/python/autoload/wee_slack.py"
21:26 python: registered script "slack", version 2.3.0 (Extends weechat for typing notification/search/etc on slack.com)
21:26 Connecting to 2 slack teams.
21:27 Failed connecting to slack team with token starting with xoxs-2331842482, retrying. If this persists, try increasing slack_timeout.
21:27 Failed connecting to slack team with token starting with xoxs-2331842482, retrying. If this persists, try increasing slack_timeout.
21:27 Failed connecting to slack team with token starting with xoxs-2331842482, will not retry after too many failed attempts. If this persists, try increasing slack_timeout.
View gist:5412768cdb270e88c6e9bc1f8ff989cb
hendry@knuckles /etc/sv $ file /home/hendry/go/bin/mikrotik-exporter_linux_amd64
/home/hendry/go/bin/mikrotik-exporter_linux_amd64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.
so.2, Go BuildID=KDQrL6hAAvFlRrxQ8PYf/gkQ9I8_i7r-2mzFy98om/iP2SqNXVq5j8fSqgAT_Z/wJiHqywALmo53cMBYMe-, not stripped
hendry@knuckles /etc/sv $ ls -lah /home/hendry/go/bin/mikrotik-exporter_linux_amd64
-rwxrwxr-x 1 hendry hendry 12M Aug 14 15:00 /home/hendry/go/bin/mikrotik-exporter_linux_amd64
hendry@knuckles /etc/sv $ /home/hendry/go/bin/mikrotik-exporter_linux_amd64
-bash: /home/hendry/go/bin/mikrotik-exporter_linux_amd64: No such file or directory
View gist:c889559d5afd660163d6367bd21348b7
WARNING: We are about to convert your table storage format to UTF-8. This
allows Bugzilla to correctly store and sort international characters.
However, if you have any non-UTF-8 data in your database,
it ***WILL BE DELETED*** by this process. So, before
you continue with checksetup.pl, if you have any non-UTF-8
data (or even if you're not sure) you should press Ctrl-C now
to interrupt checksetup.pl, and run contrib/recode.pl to make all
the data in your database into UTF-8. You should also back up your
database before continuing. This will affect every single table
in the database, even non-Bugzilla tables.
View gist:c84777cf31bac9e7742b80a4c7585d56
On my non-working wireguard VPN server
hendry@knuckles ~ $ ping -I wg0 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.2.1 wg0: 56(84) bytes of data.
ping: sendmsg: No error information
ping: sendmsg: No error information
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1005ms
View gist:91387923961a3b4df25bb995c8e218bd
[hendry@t480s bugzilla-customisation]$ ll custom/
total 60K
drwxr-x--- 13 hendry http 4.0K Jul 23 09:44 .
drwxrwxr-x 13 hendry users 4.0K Jul 29 11:34 ..
drwxr-x--- 3 hendry http 4.0K Mar 13 2018 account
drwxr-x--- 4 hendry http 4.0K Mar 13 2018 admin
drwxr-x--- 2 hendry http 4.0K Mar 13 2018 attachment
drwxr-x--- 4 hendry http 4.0K Mar 13 2018 bug
drwxr-x--- 2 hendry http 4.0K Jun 6 2018 global
drwxr-x--- 2 hendry http 4.0K Mar 13 2018 ipi
View gist:aef82a32cdfda25729f6c16268abebd7
[hendry@t480s pingprom]$ grep SMART .env
SMARTHOST=yayy
[hendry@t480s pingprom]$ source .env
[hendry@t480s pingprom]$ echo $SMARTHOST
yayy
[hendry@t480s pingprom]$ printenv | grep SMART
[hendry@t480s pingprom]$
View gist:22a072076e9e3108b98915917dde8175
provider "aws" {
profile = "mine"
region = "ap-southeast-1"
}
resource "aws_s3_bucket" "b" {
bucket = "freenas-backup"
acl = "private"
}
View gist:883431fa9877ed8bf8488ecc24dde57e
[hendry@t480s freenas]$ terraform plan
Error: Provider configuration not present
To work with aws_s3_bucket.b its original provider configuration at
provider.aws.mine is required, but it has been removed. This occurs when a
provider configuration is removed while objects created by that provider still
exist in the state. Re-add the provider configuration to destroy
aws_s3_bucket.b, after which you can remove the provider configuration again.
View gist:bbd052c792def6eb2171823f8c7b0435
hendry@knuckles /etc/sv/prometheus $ sudo sv status prometheus
down: prometheus: 1s, normally up, want up; run: log: (pid 779) 1115347s
hendry@knuckles /etc/sv/prometheus $ cat log/run
#!/bin/sh
[ -d /var/log/prometheus ] || mkdir -p /var/log/prometheus
exec chpst -u root:adm svlogd -t /var/log/prometheus
hendry@knuckles /etc/sv/prometheus $ ls -lah /var/log/prometheus/
total 8.0K
drwxr-xr-x 2 root root 4.0K Nov 5 2018 .
drwxr-xr-x 9 root root 4.0K Nov 19 2018 ..
You can’t perform that action at this time.