Skip to content

Instantly share code, notes, and snippets.

View ralfschimmel's full-sized avatar
:octocat:

Ralf Schimmel ralfschimmel

:octocat:
  • Gynzy
  • Nijmegen, the Netherlands
View GitHub Profile
@ralfschimmel
ralfschimmel / gist:1080339
Created July 13, 2011 13:59
Make a scrollview draggable to left and right
/*globals App */
App.DragView = SC.ScrollView.extend({
backgroundColor: 'black',
touchStart: function(touch) {
var f = this.get("frame");
this._touch = {
start: {
x: touch.pageX,
@ralfschimmel
ralfschimmel / cloud-init.yml
Last active August 29, 2015 14:22
Cloud-Init
#cloud-config
coreos:
update:
group: onderwijs
server: https://topicus.update.core-os.net/v1/update/
fleet:
metadata: host=MSJL007
etcd2:
discovery: https://discovery.etcd.io/e275fbabe45188f1246d8fc16282cc39
#cloud-config
coreos:
update:
group: onderwijs
server: https://topicus.update.core-os.net/v1/update/
fleet:
metadata: host=MSJL007
etcd2:
discovery: https://discovery.etcd.io/e275fbabe45188f1246d8fc16282cc39
SYSLINUX 6.03 6.03-pre9 Copyright (C) 1994-2014 H. Peter Anvin et al
boot:
Loading vmlinuz-boot_kernel... ok
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.14.1+ (buildbot@ip-10-221-137-94) (gcc version 4.6.3 (Gentoo Hardened 4.6.3 p1.13, pie-0.5.2) ) #2 SMP Wed May 7 22:37:05 UTC 2014
[ 0.000000] Command line: BOOT_IMAGE=vmlinuz-boot_kernel console=ttyS0,115200n8 console=tty0 ro noswap cros_legacy root=LABEL=ROOT rootflags=subvol=root usr=gptprio:
[ 0.000000] e820: BIOS-provided physical RAM map:
#cloud-config
coreos:
etcd:
# generate a new token for each unique cluster from https://discovery.etcd.io/new
discovery: https://discovery.etcd.io/5177ad19e40c9ea1321a89cd5960ee11
# multi-region and multi-cloud deployments need to use $public_ipv4
addr: $private_ipv4:4001
peer-addr: $private_ipv4:7001
units: