This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Based on Sublime Text's IdleFingers theme */ | |
.cm-s-idlefingers { background: #272727; color: #FFFFFF; } | |
.cm-s-idlefingers span.CodeMirror-selected { background: #5A647E !important; } | |
.cm-s-idlefingers .CodeMirror-searching { background: #2A543A !important; } | |
.cm-s-idlefingers .CodeMirror-gutter { background: #323232; border-right: 0px; } | |
.cm-s-idlefingers .CodeMirror-gutter-text { color: #909090; } | |
.cm-s-idlefingers .CodeMirror-cursor { border-left: 1px solid #91FF00 !important; } | |
.cm-s-idlefingers span.cm-comment { color: #75715E; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Int64.js | |
// | |
// Copyright (c) 2012 Robert Kieffer | |
// MIT License - http://opensource.org/licenses/mit-license.php | |
/** | |
* Support for handling 64-bit int numbers in Javascript (node.js) | |
* | |
* JS Numbers are IEEE-754 binary double-precision floats, which limits the | |
* range of values that can be represented with integer precision to: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a directory to mount your source. | |
mkdir /tmp/bootiso. | |
Loop mount the source ISO you are modifying. (Download from Red Hat / CentOS.) | |
mount -o loop /path/to/some.iso /tmp/bootiso | |
Create a working directory for your customized media. | |
mkdir /tmp/bootisoks | |
Copy the source media to the working directory. | |
cp -r /tmp/bootiso/* /tmp/bootisoks/ | |
Unmount the source ISO and remove the directory. | |
umount /tmp/bootiso && rmdir /tmp/bootiso. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Garage Controller | |
* | |
* Copyright 2014 Stuart Allen | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Garage Controller Service Manager (based on SONOS example) | |
* | |
* Copyright 2014 Stuart Allen | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// e.g. ssh 1.2.3.4, will probe until server is ready, useful when waiting for reboot | |
sp() | |
{ | |
echo "Probing..." ; (while ! nc -z -v -w1 $1 22 > /dev/null 2>&1 ; do :; done) ; echo "Connecting..."; ssh -o StrictHostKeyChecking=no "$1" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am lttlrck on github. | |
* I am stuartallen (https://keybase.io/stuartallen) on keybase. | |
* I have a public key whose fingerprint is 6FEB 4BA5 8827 BE4E 6EEC B462 769A 3C81 4789 1A3A | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
from tikapy import TikapyClient | |
from pprint import pprint | |
client = TikapyClient('192.168.74.1', 8728) | |
client.login('admin', 'banzai74') | |
res= client.talk(['/ip/dns/static/print']) |
OlderNewer