Skip to content

Instantly share code, notes, and snippets.

View awaxa's full-sized avatar

Greg Kitson awaxa

View GitHub Profile
ENVIRONMENT="$1"
test_CNT="thing1 thing2 thing3"
beta_CNT="thing4 thing5 thing6"
varname=${ENVIRONMENT}_CNT
for i in ${!varname}; do
echo $i
done
####

channel operator quick reference

search this document to use it quickly (ctl/cmd + f)

quicker reference

  • to ban someone: /msg chanserv akick #reddit-diabetes add *!*@12.34.56.78 feeling free | worleygurl asked for it
  • to ban a nickserv account, op yourself and /mode #reddit-diabetes +b $a:worleygurl

practices

@awaxa
awaxa / common.yaml
Created July 18, 2014 18:47
using an array of hashes from hiera in a template with puppet
---
sockets:
- id: 'one'
address: '127.0.0.1'
port: '8001'
- id: 'two'
address: '127.0.0.2'
port: '8002'
@awaxa
awaxa / outlet
Last active December 18, 2019 07:16
apc pdu outlet expect script
#!/usr/bin/expect
set timeout 3
if {[llength $argv] == 0} {
send_user "Usage: outlet [1-8] [on|off] \n"
exit 1
}
set number [lindex $argv 0]
set onoff [lindex $argv 1]

Due to recent abusive intrusions into our channel, we may need to temporarily restrict participation to users who have registered accounts on Freenode. If you have received a Cannot send to channel message when attempting to talk, you can validate that you are not a malicious user and regain the ability to send messages to the channel by registering your account. Please see the link below for instructions, and don't hesitate to stop by #freenode to ask for help.

https://freenode.net/faq.shtml#nicksetup

If you notice abusive activity in the channel, please notify one or more of our channel operators via private message. These people are: awaxa, dosman711, and clarksonguy04.

@awaxa
awaxa / default
Last active November 27, 2017 05:16
nfhack notes: using nginx-light serving /root/myopenaps
## /etc/nginx/sites-available/default
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#!/usr/bin/env bash
url="$(osascript -e 'tell application "Spotify" to spotify url of current track')"
remove='spotify:track:'
url="${url#$remove}"
url="https://open.spotify.com/track/$url"
echo -n "$url" | pbcopy
@awaxa
awaxa / gpg-agent.conf
Last active June 30, 2017 00:35
~/.gnupg/
# Enables GPG to find gpg-agent
use-standard-socket
# Connects gpg-agent to the OSX keychain via the brew-installed
# pinentry program from GPGtools. This is the OSX 'magic sauce',
# allowing the gpg key's passphrase to be stored in the login
# keychain, enabling automatic key signing.
pinentry-program /usr/local/bin/pinentry-mac

Keybase proof

I hereby claim:

  • I am awaxa on github.
  • I am awaxa (https://keybase.io/awaxa) on keybase.
  • I have a public key ASAo5i-NQjiLA3Jq3uJrePTpc0SoGu_3iV76KVuayidtLQo

To claim this, I am signing this object: