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
from triton import triton | |
def get_droplet(): | |
droplets = triton.droplets() | |
if len(droplets): | |
return droplets[0] | |
return triton.droplets.new() |
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
<html> | |
<body> | |
<select class="startTemp"> | |
</select> | |
<select class="endTemp"> | |
</select> | |
<input type="submit" class="add" value="Add"> | |
<a href='index.html'>Graph</a> | |
<script src="add.js"></script> | |
</body> |
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
INFO global: Vagrant version: 1.6.3 | |
INFO global: Ruby version: 2.0.0 | |
INFO global: RubyGems version: 2.0.14 | |
INFO global: VAGRANT_EXECUTABLE="/Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.3/bin/vagrant" | |
INFO global: VAGRANT_LOG="INFO" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_DETECTED_OS="Darwin" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="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
{ | |
"searchOrder": ["path/to/libs", "bower", "npm", "CDNs"] | |
} |
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
// Hyperscope | |
// Upgrading $scope.$watch, making some new friends | |
angular.module('hyperscope', []) | |
// service for extending $scope objects | |
.factory('Hyperscope', function($parse, $rootScope){ | |
var vanillaAdditions = { |
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/expect -f | |
# ssh into the vagrant coreos machine | |
spawn ssh coreos | |
# find a prompt inside the vagrant vm | |
expect "*core@core*" | |
# get a shell inside the docker container | |
send "sudo nsenter --target \$(docker inspect --format '{{.State.Pid}}' \$(docker ps | grep dex_server:latest | awk '{print \$1}')) --mount --uts --ipc --net --pid\r" |
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
import time | |
import random | |
import mummy | |
import databacon as db | |
# TODONT | |
db.connect({ | |
'shards': [{ | |
'shard': 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
$ VAGRANT_LOG=info vagrant up --provider=virtualbox | |
INFO global: Vagrant version: 1.6.5 | |
INFO global: Ruby version: 2.0.0 | |
INFO global: RubyGems version: 2.0.14 | |
INFO global: VAGRANT_EXECUTABLE="/Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/bin/vagrant" | |
INFO global: VAGRANT_LOG="info" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_DETECTED_OS="Darwin" | |
INFO global: VAGRANT_INSTALLER_ENV="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
-- Logs begin at Wed 2014-09-17 01:30:44 UTC, end at Wed 2014-09-17 01:40:14 UTC. -- | |
Sep 17 01:30:44 localhost systemd-journal[87]: Runtime journal is using 6.2M (max allowed 49.9M, trying to leave 74.8M free of 492.8M available → current limit 49.9M). | |
Sep 17 01:30:44 localhost systemd-journal[87]: Runtime journal is using 6.2M (max allowed 49.9M, trying to leave 74.8M free of 492.8M available → current limit 49.9M). | |
Sep 17 01:30:44 localhost kernel: Initializing cgroup subsys cpuset | |
Sep 17 01:30:44 localhost kernel: Initializing cgroup subsys cpu | |
Sep 17 01:30:44 localhost kernel: Initializing cgroup subsys cpuacct | |
Sep 17 01:30:44 localhost kernel: Linux version 3.15.8+ (buildbot@ip-10-204-3-57) (gcc version 4.6.3 (Gentoo Hardened 4.6.3 p1.13, pie-0.5.2) ) #2 SMP Fri Aug 15 22:29:31 UTC 2014 | |
Sep 17 01:30:44 localhost kernel: Command line: init=/usr/lib/systemd/systemd console=ttyS0,115200n8 console=tty0 ro noswap cros_legacy root=LABEL=ROOT rootflags=subvol=root usr=gptprio: usr=PARTUUID=7130c94a-213a-4e5a-8 |
OlderNewer