Skip to content

Instantly share code, notes, and snippets.

@torstenek
torstenek / gist:9411463
Last active August 29, 2015 13:57
ipxe
#!ipxe
set coreos-version dev-channel
set base-url http://storage.core-os.net/coreos/amd64-generic/${coreos-version}
kernel ${base-url}/coreos_production_pxe.vmlinuz root=squashfs: state=tmpfs: sshkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDK8g2YZv5krwHUm3cnrx/9LjTg8p7sd6d7VPewBItHzYpAYCU5dqJ+uNGlMAFvAsu5mkQ/JbIZSDX+F2eWbtdqO6fqe9Zu31blIs5vcjnKlJQSU2BvschzicowHs3LEXbqx5+PyOATAxuAWH7fjNioT4mPRAUp2xk4mpmUO3wed35RWZGuG36arVNLMTkwoUyrYdeAGPMv9gI1y3fnXZ6eSthAc9+kGDUaAF/3ft7GMIT40x/yOE9zOpmqKMdndlj2tQJvVbUPD8YFgArGQI+JzX6gJdRnvuMmnq0tYkYTbx4MyML76k9cIFyAWu6550MpSbu6y66KJif8mt32p0QB torsten@torstenek.com"
initrd ${base-url}/coreos_production_pxe_image.cpio.gz
boot
#!ipxe
set coreos-version dev-channel
set base-url http://storage.core-os.net/coreos/amd64-generic/${coreos-version}
kernel ${base-url}/coreos_production_pxe.vmlinuz root=squashfs: state=tmpfs: sshkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQC2PxAKTLdczK9+RNsGGPsz0eC2pBlydBEcrbI7LSfiN7Bo5hQQVjki+Xpnp8EEYKpzu6eakL8MJj3E28wT/vNklT1KyMZrXnVhtsmOtBKKG/++odpaavdW2/AU0l7RZiE= coreos pxe demo"
initrd ${base-url}/coreos_production_pxe_image.cpio.gz
boot
#!ipxe
kernel http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_pxe.vmlinuz root=squashfs: state=tmpfs: sshkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDK8g2YZv5krwHUm3cnrx/9LjTg8p7sd6d7VPewBItHzYpAYCU5dqJ+uNGlMAFvAsu5mkQ/JbIZSDX+F2eWbtdqO6fqe9Zu31blIs5vcjnKlJQSU2BvschzicowHs3LEXbqx5+PyOATAxuAWH7fjNioT4mPRAUp2xk4mpmUO3wed35RWZGuG36arVNLMTkwoUyrYdeAGPMv9gI1y3fnXZ6eSthAc9+kGDUaAF/3ft7GMIT40x/yOE9zOpmqKMdndlj2tQJvVbUPD8YFgArGQI+JzX6gJdRnvuMmnq0tYkYTbx4MyML76k9cIFyAWu6550MpSbu6y66KJif8mt32p0QB torsten@torstenek.com"
initrd http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_pxe_image.cpio.gz
boot
@torstenek
torstenek / mini
Created March 8, 2014 12:33
Just the bare minimum
#!ipxe
kernel http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_pxe.vmlinuz
initrd http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_pxe_image.cpio.gz
boot
ubuntu@camunda-engine:~$ sudo /opt/shipyard-agent -url http://192.168.1.193:8000 -register
2014/03/17 16:08:04 Using 10.0.1.25 for the Docker Host IP for Shipyard
2014/03/17 16:08:04 If this is not correct or you want to use a different IP, please update the host in Shipyard
2014/03/17 16:08:04 Registering at http://192.168.1.193:8000
2014/03/17 16:08:04 Agent Key: 95b62c466ecb488c8afbf1b4738f313a
ubuntu@camunda-engine:~$ sudo /opt/shipyard-agent -url http://192.168.1.193:8000 -key 95b62c466ecb488c8afbf1b4738f313a
2014/03/17 16:08:43 Shipyard Agent (http://192.168.1.193:8000)
2014/03/17 16:08:43 Listening on :4500
2014/03/17 16:08:48 Error requesting images from Docker: Get http://127.0.0.1:4243/images/json?all=0: dial tcp 127.0.0.1:4243: connection refused
@torstenek
torstenek / README.markdown
Created August 4, 2012 10:59 — forked from gudbergur/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string
@torstenek
torstenek / gist:a0d497a233f31c937dcd
Created May 20, 2015 16:37
onename verification
Verifying I am +torstenek on my passcard. https://onename.com/torstenek

Keybase proof

I hereby claim:

  • I am torstenek on github.
  • I am torstenek (https://keybase.io/torstenek) on keybase.
  • I have a public key ASBvmb4BgUFLzw423YbpIfDVuRx6xfoCjCiLW5nuxun-1Qo

To claim this, I am signing this object:

Future<String> fetchUserOrder() =>
// Imagine that this function is
// more complex and slow.
Future.delayed(
Duration(seconds: 2),
() => 'Large Latte',
);
void main() async {
/*
Install this script as a pre-request Script on your Postman collection.
Define Auth_Url, and Basic_Auth as local variables on the collection.
Define OAuth_Token, OAuth_Timestamp, ExpiresInTime, OAUTH_USERNAME, OAUTH_PASSWORD and OAUTH_REFRESH_TOKEN
in the associated Postman environment.
*/
var tokenDate = new Date(2010, 1, 1);
var tokenTimestamp = pm.environment.get("OAuth_Timestamp");
if (tokenTimestamp) {
tokenDate = Date.parse(tokenTimestamp);