View jeroentest.yaml
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
substitutions: | |
dnsname: jeroentest | |
deviceid: jeroentest | |
devicename: Jeroen Test | |
esphome: | |
name: ${dnsname} | |
platform: ESP32 | |
board: esp32dev | |
# Some custom options required for AZ Delivery board |
View gist:01c2ec2589b47fc0294ae494271c3006
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 jorisroovers on github. | |
* I am jorisroovers (https://keybase.io/jorisroovers) on keybase. | |
* I have a public key whose fingerprint is 131D 6B20 28B1 4515 79FA EFA8 C7F9 7EE7 DD03 DB74 | |
To claim this, I am signing this object: |
View functions.sh
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
# Asserts that the script was invoked with valid arguments | |
assert_usage(){ | |
if [ $# -ne 1 ]; then | |
echoerr "Usage: $0 (start | start | develop)" | |
exit 1 | |
fi | |
} |
View user-data.sh
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
#!/bin/bash | |
# Set the ubuntu user password to something useable for VNC/KVM console access | |
passwd ubuntu <<EOF | |
ubuntu | |
ubuntu | |
EOF | |
# Since we have non-secure Dynamic DNS updates available in the ctocllab domain | |
# this will update a ctocllab.cisco.com entry |
View build.sh
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
#!/bin/bash | |
source ${openrc:-~/openrc} | |
ext_net=${ext_net:-external} | |
no_gw=${no_gw:-nogw} | |
hostname=${1:-test} | |
key_name=${key_name:-public} | |
flavor=${flavor:-2} | |
image=${image:-precise-x86_64} | |
user_data=${user_data:-~/user.data} | |
net_id=`neutron net-list | grep ${ext_net} | awk -F' ' '{print $2}'` |
View new_gist_file.sh
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
#Installing old gnome | |
sudo apt-get install gnome-session-fallback | |
#(might need a sudo-apt get update first) | |
#Login to commandline | |
#To Commandline: CTRL+ALT+F1 | |
#Back to Login: CTRL+ALT+F7 | |
#Release info |
View blink-element.js
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
(function($) { | |
$.fn.blink = function(duration) { | |
// check specifically for display => works with svg elements | |
var hidden = $(this).css("display") == "none" || $(this).is(":hidden"); | |
if (hidden) { | |
var self = this.show(); | |
setTimeout(function() { | |
self.hide(); | |
}, duration); | |
} |
View Runner.js
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
// runner | |
function Runner() { | |
this.descriptionDefer = $.Deferred(); | |
this.descriptionPromise = this.descriptionDefer.promise(); | |
} | |
Runner.prototype.stop = function() { | |
this.descriptionDefer.resolve(this.descriptionDefer); | |
} |
View animate-element-snap-svg.js
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
// requires snap-svg.js | |
function animateOverPath(el, path, duration, callback) { | |
len = path.getTotalLength(); | |
Snap.animate(0, len, function (l) { | |
var dot = path.getPointAtLength(l); | |
x = dot.x - el.getBBox().width/2; | |
y = dot.y - el.getBBox().height/2; | |
el.attr({ | |
transform: "t" + [x,y] + "r" + (dot.alpha - 180) | |
}); |
NewerOlder