yum install -y systemd-networkd
modprobe macvlan # make sure this returns no errors
eth0.network
and mac0.{netdev,network}
go in /etc/systemd/network/
## FastCGI | |
server { | |
location ~ /app.* { | |
fastcgi_pass 127.0.0.1:9000; | |
include fastcgi_params; | |
} | |
} | |
## Reverse Proxy (이 방식으로 하면 http.ListenAndServe로 해야함) | |
server { |
from types import ModuleType | |
import sys | |
import inspect | |
from contextlib import contextmanager | |
class LocalImportFinder(object): | |
def find_module(self, fullname, path=None): | |
if path: | |
return None |
import sys | |
import jiphy # pip install | |
from os import path | |
from types import ModuleType | |
class JsFinder(object): | |
def find_module(self, name, m_path): | |
name += '.js' | |
if m_path is not None: |
#!/usr/bin/env bash | |
if [ $# -lt 1 ];then | |
echo Usage: `basename $0` image 1>&2 | |
exit 1 | |
fi | |
set -e | |
IMAGE=$1 | |
CID=$(docker ps | grep $IMAGE | awk '{print $1}') |
from __future__ import unicode_literals | |
from django.db import models | |
from django.db.models.fields.related_descriptors import ForwardManyToOneDescriptor # noqa | |
class RelationNotLoaded(Exception): | |
pass | |
Install: | |
---------- | |
* Activate Hetzner Rescue System (Debian) | |
* Connect to Hetzner Rescue System using SSH and live boot RancherOS | |
(thanks goes to William Fleurant for showing how this can be done: https://github.com/wfleurant/boot-rancheros-hetzner/) | |
* apt-get update | |
* apt-get install kexec-tools aria2 |
This is a set of scripts that help running Google Drive Backup and Sync under Wine, with multiple Google accounts.
Each account is given its own Wine prefix (a separate wine configuration).
To install, run install-gdrive-sync google_account
List the accounts set up in ~/.config/gdrive-accounts
# Charlton Trezevant's Zoomin DNSMasq Config - Version 1.0 | |
# Having a large local cache speeds up subsequent DNS queries significantly (from several hundred msec to around 25-30) | |
# You may need to adjust this depending on the amount of free space you have | |
cache-size=10000 | |
# This ensures local reverse lookup queries are never sent upstream (e.g. dig +noall +answer -x 10.0.1.1) | |
bogus-priv | |
# Names without a dot or other domain part will also not be forwarded upstream | |
domain-needed | |
# We won't need dnsmasq to overwrite the system's resolv.conf, as we have our own cache. |
nmcli con add ifname vpn-bridge type bridge con-name vpn-bridge-server
nmcli con modify vpn-bridge-server bridge.stp no
nmcli con add type tun ifname vpn-server con-name vpn-server-slave mode tap master vpn-bridge