Skip to content

Instantly share code, notes, and snippets.

View filler's full-sized avatar

Nick Silkey filler

View GitHub Profile
@filler
filler / yahoo_stock_ticker.9m.py
Created August 17, 2023 22:20
xbar docn me bro
#!/usr/bin/env LC_ALL=en_US.UTF-8 /usr/bin/python3
#
# <xbar.title>Yahoo Stock Ticker</xbar.title>
# <xbar.version>v1.1</xbar.version>
# <xbar.author>Long Do</xbar.author>
# <xbar.author.github>longpdo</xbar.author.github>
# <xbar.desc>Shows major stock indices in the menu bar and stock symbols in the dropdown menu by pulling data from the Yahoo Finance API. Similar to finance.yahoo.com the prices are delayed, but no API key is necessary. You can also set price alarms for BUY/SELL limits, which will notify you when the limit is reached.</xbar.desc>
# <xbar.image>https://github.com/longpdo/bitbar-plugins-custom/raw/master/images/yahoo-stock-ticker.png</xbar.image>
# <xbar.dependencies>python3</xbar.dependencies>
# <xbar.abouturl>https://github.com/longpdo/bitbar-plugins-custom/blob/master/README.md#yahoo-stock-ticker</xbar.abouturl>
silkey@aprs:~ $ diff direwolf.conf{.20201229,}
77a78
> ADEVICE plughw:2,0
141c142
< MYCALL N0CALL
---
> MYCALL N5ILK-10
280a282
> PBEACON delay=1 every=30 overlay=S symbol="digi" lat=30^27.128244N long=97^45.705905999999W power=5 height=20 gain=4 comment="N5ILK - #jollyville_gang" via=WIDE1-1,WIDE2-1
318c320
@filler
filler / Makefile
Created April 25, 2017 15:43
lol, databags.
# TODO: Make this target diff whats on the chef server versus whats
# about to go to the chef server. This way we can catch any out of
# band changes that might have happened and can recover from them.
#
# TODO: Make this target clean the chef server of any objects not in
# version control.
chef-bags:
@$(foreach bag,$(shell basename .chef/data_bags/*), \
knife data bag create $(bag) ; \
knife data bag from file $(bag) .chef/
@filler
filler / gist:82399ed73623e56736cfbc35bb1bda20
Created December 22, 2016 03:59
Vanity call sign spelunking for amateur 'ham' radio.
# 1x3, k,n,w + a,i,o + ???
$ egrep -i '^((k|n|w)(a|e|i|o)[a-z][a-z][a-z]$)' /usr/share/dict/words
621
$
# 2x3, ka-kz,wa-wz + ???
$ egrep -i '^((k|w)[a-z](a|e|g|i|l|o|s|t)[a-z][a-z][a-z]$)’ /usr/share/dict/words
399
$
"Winmail.dat files are created when Outlook, which sends mail by default as HTML,
sends to a device with a native Apple Mail app (iPhones, Macs, and such). Apple
mail does not have an ability to read HTML, so what does it do but convert it
into another format, Rich-text. Upon converting to Rich-text, the attachment is
converted from whatever wholsome filetype it was into the dreaded werebeast that
is winmail.dat."
@filler
filler / hub
Created November 7, 2016 15:51
How to get GitHub:Enterprise + 2FA + hub (https://hub.github.com/) working via ~/.config/hub
github.com:
- user: filler
oauth_token: aaabbbccc
protocol: https
github.company.com:
- user: my-ldap-login
oauth_token: xxxyyyzzz
protocol: https
@filler
filler / dsn.log
Created April 7, 2016 16:48
wow. nice postmaster address right there. you go tx.us!
This is an automatically generated Delivery Status Notification
THIS IS A WARNING MESSAGE ONLY.
YOU DO NOT NEED TO RESEND YOUR MESSAGE.
Delivery to the following recipient has been delayed:
[email protected]
@filler
filler / emacs confirmed!
Last active January 27, 2016 15:14
what mail user agent (mua) does rms use?
Delivered-To: [email protected]
Received: by 10.140.93.164 with SMTP id d33csp2213602qge;
Tue, 26 Jan 2016 16:47:54 -0800 (PST)
X-Received: by 10.55.42.227 with SMTP id q96mr2230222qkq.101.1453855674135;
Tue, 26 Jan 2016 16:47:54 -0800 (PST)
Return-Path: <[email protected]>
Received: from eggs.gnu.org (eggs.gnu.org. [2001:4830:134:3::10])
by mx.google.com with ESMTPS id l13si3543097qhl.44.2016.01.26.16.47.54
for <[email protected]>
@filler
filler / attribs
Last active August 29, 2015 14:25
default['zabbix']['user_databag']['enabled'] = false
default['zabbix']['user_databag']['name'] = 'credentials'
default['zabbix']['user_databag']['item'] = 'zabbix'
default['zabbix']['user_databag']['secret'] = '/etc/chef/secret'
@filler
filler / gist:8d75f69edaf4f0717d80
Last active August 29, 2015 14:24
node-irc traceback
30 Jun 20:53:38 - RECV: :[email protected] PRIVMSG #dnsaas :It looks like most status calls are failing right now.
30 Jun 20:53:38 - Message parsed: PRIVMSG
undefined:1
<script id="channel_list_template" type="text/x-handlebars-template">{{#each c
^
SyntaxError: Unexpected token <
at Object.parse (native)
at IncomingMessage.<anonymous> (/root/slack-irc/node_modules/slack-client/src/client.js:669:28)
at IncomingMessage.emit (events.js:117:20)