Skip to content

Instantly share code, notes, and snippets.

View otakup0pe's full-sized avatar
🔁
lo-fi churn and chill

Jonathan Freedman otakup0pe

🔁
lo-fi churn and chill
View GitHub Profile
@otakup0pe
otakup0pe / Room Toggle
Created March 19, 2014 01:43
Fear and Luup
local myLights = {14, 16}
local value = "1"
for i,light in ipairs(myLights) do
local lightState = luup.variable_get("urn:upnp-org:serviceId:SwitchPower1","Status", light)
if ( lightState == "1" ) then
value = "0"
break
end
@otakup0pe
otakup0pe / gist:8801e8f65ae356f45ca6
Last active August 29, 2015 14:15
dat openname
Verifying I am +otakup0pe on my passcard. https://onename.com/otakup0pe
@otakup0pe
otakup0pe / twittertwends.lsl
Created December 10, 2011 23:45
osParseJSONNew Example
//c#
//whut
LSL_Types.LSLInteger i = 0;
LSL_Types.LSLString request = "";
LSL_Types.LSLString url = "http://api.twitter.com/1/trends/1.json";
public void default_event_state_entry()
{
@otakup0pe
otakup0pe / dev_upload_cookbook.sh
Created September 17, 2013 00:50
cookbook upload widget for osx does a background upload and then notifies
#!/usr/bin/env bash
if [ "$(which terminal-notifier | wc -l)" == "0" ] ; then
echo "requires terminal-notifier gem"
exit 1
fi
COOKBOOK=$1
VERSION=$2

Keybase proof

I hereby claim:

  • I am otakup0pe on github.
  • I am otakup0pe (https://keybase.io/otakup0pe) on keybase.
  • I have a public key ASACfy72eFZa-9e-TBs3AL6z41drKU9DmYzzL40He1YywAo

To claim this, I am signing this object:

@otakup0pe
otakup0pe / kitchen diff
Last active October 4, 2016 20:03
test kitchen centos what
diff --git a/.kitchen.yml b/.kitchen.yml
index 3c60f0d..5087a5d 100644
--- a/.kitchen.yml
+++ b/.kitchen.yml
@@ -4,25 +4,49 @@ driver:
platforms:
- name: ubuntu-14.04
- # - name: ubuntu-12.04
# - name: debian-8.2
@otakup0pe
otakup0pe / Secretfile.yml
Created February 10, 2017 01:09
opinionated secretfile
# -*-YAML-*-
secrets:
- files:
- source: 'secret.txt'
name: 'secret'
mount: 'foo'
path: 'bar'
- files:
- source: 'secret.txt'
name: 'secret'
@otakup0pe
otakup0pe / Secretfile.yml
Created February 10, 2017 01:59
Generic Secrets (generated)
# -*-YAML-*-
secrets:
- generated:
mount: 'foo'
path: 'bar'
keys:
- name: 'secret'
method: 'uuid'
@otakup0pe
otakup0pe / shell
Last active February 10, 2017 03:23
aomi extractions
$ aomi extract_file foo/bar/secret /tmp/garbage
$ cat /tmp/garbage
ayyyyy
$ aomi environment foo/bar
FOO_BAR_SECRET=ayyyyy
$ aomi environment foo/bar --no-merge-paths
SECRET=ayyyyyy
$ aomi environment foo/bar --key-map secret=not_secret \
--no-merge-paths
NOT_SECRET=ayyyyy
@otakup0pe
otakup0pe / Secretfile.yml
Created February 10, 2017 03:43
Move a secret
# -*-YAML-*-
secrets:
- files:
- source: 'secret.txt'
name: 'secret'
mount: 'foo'
path: 'bar'
state: 'absent'
- files:
- source: 'secret.txt'