- Remove confirmations
- Add README
| #!/usr/bin/python | |
| # -*- coding: UTF-8 -*- | |
| import serial, time, struct | |
| import httplib, urllib | |
| ser = serial.Serial("/dev/ttyUSB0", baudrate=9600, stopbits=1, parity="N", timeout=2) | |
| ser.flushInput() |
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.
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
| import requests | |
| import time | |
| import json | |
| token = '' | |
| #Delete files older than this: | |
| ts_to = int(time.time()) - 30 * 24 * 60 * 60 | |
| def list_files(): |
This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt.
As it is not possible to change the ports used for the standalone authenticator and I already have a nginx running on port 80/443, I opted to use the webroot method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com and example.com).
For this, I placed config files into etc/letsencrypt/configs, named after <domain>.conf. The files are simple:
| To switch easily between Node versions on Debian, instead of tools like [nvm](https://github.com/creationix/nvm), you can just use [Debian's native alternatives system](http://www.debian-administration.org/article/91/Using_the_Debian_alternatives_system). | |
| (the following commands require root privilege) | |
| - download and install the node executables under /usr/local/bin/nodes/… | |
| - add this binaries to the alternative system: | |
| update-alternatives --install /usr/bin/node node /usr/bin/nodejs 100 | |
| update-alternatives --install /usr/bin/node node /usr/local/bin/nodes/0.10.38/nodejs 50 | |
| - to switch between versions, just call `update-alternatives --config node` | |
| # -*- coding: utf-8 -*- | |
| """ | |
| This script is forked originally from Dave Jeffery. The original implementation | |
| was very slow and deleted around 2 tweets per second. Making it multithreaded I | |
| am able to delete 30-50 tweets per second. | |
| @author: vik-y | |
| ---------------------------------------------------------------------------- | |
| This script will delete all of the tweets in the specified account. |
| """" Hides private data from Kresus logs. | |
| Usage: $python HideLog.py log_input.json log_output.json. """ | |
| from sys import argv | |
| import json | |
| from Crypto.Cipher import AES | |
| # -- LABELS | |
| BA = "bankAccount" | |
| TL = "title" |