I hereby claim:
- I am jwmickey on github.
- I am jodymickey (https://keybase.io/jodymickey) on keybase.
- I have a public key ASDce0_N-GsqIYtqMMivbMTjwl9HmUxvNJpBiHHHSJUJvwo
To claim this, I am signing this object:
""" | |
This script determines if your internet connection is up by attempting to open a connection to a specified host. | |
You can also provide the 'notify' command and an email address to continually monitor for a resumed connection. | |
I use this specifically to send myself a text in the case where my home connection is out and I went to a coffee | |
shop, library, etc. in the meantime. | |
Disclaimer: I'm a python n00b so I'm sure there are better/simpler ways to do this. | |
License: MIT | |
""" |
#!/usr/bin/python | |
# simple command to wake on lan a host from a predefined list of presets. | |
# requires wakeonlan package to be installed | |
from wakeonlan import wol | |
import sys | |
if len(sys.argv) < 2: | |
print "Usage: %s <hostname>" % (sys.argv[0]) |
I hereby claim:
To claim this, I am signing this object:
# mount on a specific volume | |
docker run -v my-jenkins-volume:/data --name helper busybox true | |
docker cp . helper:/data | |
docker rm helper | |
# alternatively, mount on volumes from another container | |
docker run --volumes-from my_other_container --name helper busybox true | |
# ... |
func genRedisProto(c chan string, cmd ...string) { | |
proto := fmt.Sprintf("*%v\r\n", len(cmd)) | |
for _, word := range cmd { | |
proto = proto + fmt.Sprintf("$%v\r\n", len(word)) | |
proto = proto + word + "\r\n" | |
} | |
c <- proto | |
} | |
func main() { |
Vue.component('spec', { | |
props: ['code', 'default'], | |
inject: ['$getSettings'], | |
computed: { | |
// details of this are irrelavent to vue, we're just figuring out what to display | |
getText() { | |
const settings = this.$getSettings(); | |
if (!settings.hasOwnProperty(this.code)) { | |
return this.default; | |
} |
{ | |
"hello": "world", | |
"array": [ | |
1, 2, 3 | |
], | |
"object": { | |
"foo": "bar" | |
} | |
} |