-
Creating 2 KVM virtual machines (host1 and host2, each one them has kernel: 3.19.0-64-generic) and attached them in the network 192.168.10.0/24
-
Install LXC on each virtual machine
-
Interface of host1: 192.168.10.156
-
Interface of host2: 192.168.10.222
// The following data should be run in the console while viewing the page https://read.amazon.com/ | |
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension | |
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024); | |
getAmazonCsv = function() { | |
// Set header for CSV export line - change this if you change the fields used | |
var csvData = "ASIN,Title,Authors,PurchaseDate\n"; | |
db.transaction(function(tx) { |
#!/bin/bash | |
# Load balance multiple internet connections. Requires iproute2, awk and grep. | |
# (C) 2016 Tobias Girstmair, isticktoit.net, GPLv2 | |
# Also useful: speedometer -l -r eth1 -t eth1 -m $(( 1024 * 1024 * 3 / 2 )) | |
# Not much user error checking is done - only pass working network connections | |
# script needs root to work and at least two interfaces to be useful | |
[ $EUID -eq 0 -a $# -ge 2 ] || { | |
echo "Usage (as root): $0 iface1[:weight1] iface2[:weight2] ..." >&2 |
#!/bin/bash | |
WIKI_URL=___ # with trailing slash | |
WIKI_USERNAME=___ | |
WIKI_PASSWORD=___ | |
WIKI_DUMP_DIR=./dump | |
WIKI_DUMP_DIR_LOGIN=${WIKI_DUMP_DIR}/login | |
WIKI_LOGIN_PAGE="index.php?title=Π‘Π»ΡΠΆΠ΅Π±Π½Π°Ρ:ΠΡ ΠΎΠ΄" | |
#WIKI_START_PAGE="index.php?title=Π‘ΠΎΠ΄Π΅ΡΠΆΠ°Π½ΠΈΠ΅" | |
WIKI_START_PAGE="index.php/Π‘ΠΎΠ΄Π΅ΡΠΆΠ°Π½ΠΈΠ΅" |
#!/bin/bash | |
sudo ip netns add vpn | |
sudo ip netns exec vpn ip addr add 127.0.0.1/8 dev lo | |
sudo ip netns exec vpn ip link set lo up | |
sudo ip link add vpn0 type veth peer name vpn1 | |
sudo ip link set vpn0 up | |
sudo ip link set vpn1 netns vpn up | |
sudo ip addr add 10.10.10.1/24 dev vpn0 | |
sudo ip netns exec vpn ip addr add 10.10.10.2/24 dev vpn1 | |
sudo ip netns exec vpn ip route add 37.59.63.23 via 10.10.10.1 dev vpn1 |
- persisted in host's /etc/network/interfaces the container's veth virtual ethernet interface can share the network link on the physical interface of the host (eth0). So the container resides on the same ethernet segment and talks to the same dhcp server as the host does.
- setup manually with brctl
Blog: iStickToIt.net
This is a simple program that lets you start programs / perform common tasks with very little key strokes.
Released under the GNU GPLv2. You can download a copy of the license from GNU.org
import sys | |
import logging | |
import tornado.httpserver | |
import tornado.log | |
import tornado.options | |
import tornado.web | |
logger = logging.getLogger(__name__) | |
tornado.options.define("access_to_stdout", default=False, help="Log tornado.access to stdout") |
#!/bin/bash | |
# UTILITIES BEGIN | |
function L { | |
cat << EOF | |
βββββββ βββ | |
ββββββββ βββ | |
βββ βββ ββββ βββ ββββββββ βββββββββ ββββββ βββ ββββββ | |
βββ βββ βββββ βββ ββββββββ βββββββββ ββββββββ βββ ββββββββ | |
βββ βββ ββββββ βββ ββββββββ βββ ββββββββ βββ ββββββββ |
Matrix is:
an open standard for decentralised communication, providing simple HTTP APIs and open source reference implementations for securely distributing and persisting JSON over an open federation of servers.
It's pretty fantastic, if you think on the massive problem of fragmentation all across the web. They've created an easy to use API, and you can do a kludgy test using curl from the terminal (*nix
, mac, win). See: http://matrix.org/docs/howtos/client-server.html
It's pretty straightforward to do a quick test. I have an account at https://matrix.org / https://vector.im, so I used that to get a token.