ff
View seg2.py
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/env python3 | |
import os | |
import sys | |
from math import sqrt | |
import numpy as np | |
import io | |
def read_training(d): |
View pricePerSpotCPU.py
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/env python3 | |
import os | |
import sys | |
import requests | |
apiToken = os.environ["PACKET_API_TOKEN"] | |
assert(len(apiToken)) | |
apiUrl = "https://api.packet.net" | |
headers = {"X-Auth-Token": apiToken} |
View coreos_run_container.tf
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
locals { | |
project_id = "408b7fd3-0df2-4837-b0df-65aaf09f642a" | |
ud = <<EOS | |
#cloud-config | |
coreos: | |
units: | |
- name: "docker-prometheus-node-exporter.service" | |
command: "start" | |
content: | | |
[Unit] |
View main.tf
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
variable "bgp_password" { | |
type = "string" | |
default = "955dB0b81Ef" | |
} | |
variable "worker_count" { | |
type = "string" | |
default = "2" |
View fff.md
fff
fds f sdf sdf sd fsd f sf ds
View gist:ce14b1e11c1c0229972b
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
! 9/21/2015, 11:16:19 AM https://www.facebook.com/ | |
www.facebook.com###stream_pagelet | |
! 9/21/2015, 11:16:36 AM https://www.facebook.com/ | |
www.facebook.com###u_jsonp_9_1 | |
! 9/21/2015, 11:16:50 AM https://www.facebook.com/ | |
www.facebook.com###blueBarNAXAnchor > .__wu.clearfix._uaw > ._fmc > ._2gyi > ._2gyj |
View apps.fact
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
#!/home/core/bin/python | |
APP_PATH = '/apps' | |
CONFIG = 'config.yml' | |
import os | |
import yaml | |
import json | |
import subprocess |
View gist:ba4a976953b9360555af
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
ssh-dss AAAAB3NzaC1kc3MAAACBAIqQWAYfwOYRouaFEPAjtQIDDvQMMni4IUS69f6gQRl6CoHBJHYXpqgaeK3HeYOLYdGtYIfy6UMuGie0W1JAXMsIDYBpuHHYed0Kou18MNiLpwihR0lKd0kM11UwPvirexLelr3RtUVTR1VQ4DvceBFCUtXFE323F8Ln0scnjhUjAAAAFQCJ/Wh36uhh/jcT66DqKgKsy4mh0wAAAIBKgPr3SfVSCyc7HG8ed4F+utjblW39sXSEQJifbjGmWB9lFu/vcAiYYGqrmZqqJl9AhK7buZ2PcbqMVL4swAeV7SQqGHf7VhDHlaaNR6sVbnDbiTMTBjq1H4SJkihK9JcIBaYakhppyLMVKb2La6BDrZPwGuZsv6ZSHXy2ESZobAAAAIBGjgIlhL+FkLZulIVVeUkaPDIp4OvKEQRiPNSU6RtZl4u5Relk4oj8bzRV6GlFnxfuzg3o/xQacMijCllSWTSBB6lrZ7G6A2QraLeoHZoubExhtcZnH5K8ekVm02Di4sS3EhGcnZ1oUSg4vzxMn73biZBAfS6/VfpjKufSLAybng== tomk@Tomass-MacBook-Pro.local |
View ans_meetup_20141029.md
Demo: To launch a few Docker containers on a virtual machine
Why: I want to have some containers running for playing with (..) (running Docker container on a VM is not the most efficient way to go, but for development it's alright)
To start with: vanilla instance of newest Ubuntu 14.04 cloud image
I use OpenStack. You can get one for free on Amazon. Probably also free tier in Rack, Euca ,...
sudo-capable SSH user, with my key in .ssh/authorized_keys
NewerOlder