Skip to content

Instantly share code, notes, and snippets.

@dalitun
dalitun / install-python.sh
Last active May 16, 2017 12:34 — forked from osterman/install-python.sh
Install Python on CoreOS
#!/bin/bash -uxe
VERSION=2.7.13.2713
PACKAGE=ActivePython-${VERSION}-linux-x86_64-glibc-2.3.6-401785
# make directory
mkdir -p /opt/bin
cd /opt
wget http://downloads.activestate.com/ActivePython/releases/${VERSION}/${PACKAGE}.tar.gz
@dalitun
dalitun / docker-compose.yml
Created May 22, 2017 16:01 — forked from JohannesRudolph/docker-compose.yml
Concourse on Docker with Let's Encrypt
## NOTE:
## because this docker-compose.yml is designed to work with a remote docker-machine,
## all mounted volume paths are currently relative to /concourse-data, data is thus stored on the docker host
nginx:
image: nginx
container_name: nginx
ports:
- "80:80"
- "443:443"
kubectl proxy
Get the name of the Pod (in a new terminal window) and store it in the POD_NAME environment variable:
export POD_NAME=$(kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
echo Name of the Pod: $POD_NAME
To see the output of our application, run a curl request.
curl http://localhost:8001/api/v1/proxy/namespaces/default/pods/$POD_NAME/
@dalitun
dalitun / NOTES.md
Created June 2, 2017 14:08 — forked from DenisIzmaylov/NOTES.md
Step By Step Guide to Configure a CoreOS Cluster From Scratch

Step By Step Guide to Configure a CoreOS Cluster From Scratch

This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.

Content

---
#
##
### Written by the CAT (Cloudwatt Automation Team)
##
#
- hosts: localhost
become: yes
user: cloud
@dalitun
dalitun / cryptotrade.py
Created June 10, 2017 17:54 — forked from priestc/cryptotrade.py
Automatically trade cryptocurrencies
from moneywagon import get_current_price, get_address_balance
from moneywagon.tx import Transaction
from bitcoin import privkey_to_address
data = [
['btc', 'KwsccfDeJkrW6ZgMH6AJ7apNGncMVEagNWhTwq9MJnqoKp58i1MG'],
['ltc', 'T3ht4QWpi8q6sQKDpj7AKwMkDeFfZKbaBibiodmtsm1xqhcTJZT1']
]
## DETERMINE IF TRADE IS NEEDED
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
heat_template_version: 2014-10-16
description: A simple server to run Jenkins
parameters:
key_name:
type: string
default: honey
description: Name of an existing key pair to enable SSH access to the instance.
NetID:
default: 335662a3-2d21-40f0-9c59-93f1f123f33f
#!/bin/bash
#https://www.unixmen.com/install-openvpn-asaccess-server-on-ubuntu-debian/
VERSION=2.1.4
wget http://swupdate.openvpn.org/as/openvpn-as-$VERSION-Ubuntu12.amd_64.deb
sudo dpkg -i openvpn-as-$VERSION-Ubuntu12.amd_64.deb
sudo su - root -c "echo openvpn:$1 | chpasswd"
#!/bin/bash
sudo apt-get update
sudo apt-get -y install libssl0.9.8
wget http://download.utorrent.com/linux/utorrent-server-3.0-25053.tar.gz
sudo tar zxvf utorrent-server-3.0-25053.tar.gz -C /opt/
sudo chmod -R +x /opt/utorrent-server-v3_0/
/opt/utorrent-server-v3_0/utserver -settingspath /opt/utorrent-server-v3_0/ &