- Format your storage
- Configure networking (it's easiest with LuCI, or just take a look at OpenWRT howtos)
- Configure
/storage
by adding proper options in/etc/config/fstab
, or, again, just clicking around in LuCI opkg update && opkg install tor
- Copy proper configuration, namely
/etc/tor/torrc
and/etc/config/uhttpd
- Reboot (or
/etc/init.d/uhttpd restart && /etc/init.d/tor restart
) - Check
/etc/tor/hidden_service/hostname
for your public.onion
address - ...
- PROFIT!
This file contains hidden or 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
############################################################################ | |
# # | |
# ------- Useful Docker Aliases -------- # | |
# # | |
# # Installation : # | |
# copy/paste these lines into your .bashrc or .zshrc file or just # | |
# type the following in your current shell to try it out: # | |
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash | |
# # | |
# # Usage: # |
This file contains hidden or 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
<?php | |
$gw = "Unknown"; | |
// Get the Docker host IP from the routing table | |
$table = file("/proc/net/route"); | |
foreach ($table as $row) { | |
// Split the fields out of the routing table | |
$fields = preg_split("/[\t ]+/", trim($row)); | |
This file contains hidden or 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
# | |
# THIS SCRIPT HAS BEEN MOVED TO A NEW HOME: | |
# | |
# https://github.com/noplanman/cyon-api/blob/master/dns_cyon.sh | |
# |
This file contains hidden or 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
## I just ran into this after initializing a Visual Studio project _before_ adding a .gitignore file (like an idiot). | |
## I felt real dumb commiting a bunch of files I didn't need to, so the commands below should do the trick. The first two commands | |
## came from the second answer on this post: http://stackoverflow.com/questions/7527982/applying-gitignore-to-committed-files | |
# See the unwanted files: | |
git ls-files -ci --exclude-standard | |
# Remove the unwanted files: | |
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached |
This file contains hidden or 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
# tasks/main.yml | |
- name: install certbot dependencies | |
apt: name={{ item }} state=present | |
with_items: | |
- build-essential | |
- libssl-dev | |
- libffi-dev | |
- python-dev | |
- git |
This file contains hidden or 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
#!/bin/bash | |
echo -n "Name your client (MyBot): " | |
read client_name | |
echo -n "Define your pod address (with https://): " | |
read domain | |
cookie_file="/tmp/.cookie" | |
openid_url="$domain/api/openid_connect" |
This file contains hidden or 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 python | |
import argparse | |
import qrcode | |
def main(): | |
parser = argparse.ArgumentParser(description='Generate QR code for OTP.') | |
parser.add_argument('user', nargs=1) | |
parser.add_argument('key', nargs=1) | |
parser.add_argument('issuer', nargs=1) |
This file contains hidden or 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
<?php | |
$loader = require __DIR__.'/vendor/autoload.php'; | |
use Longman\TelegramBot\Request; | |
$API_KEY = '--botfather-api-keu--'; | |
$BOT_NAME = '--bofather-bot-name--'; | |
$telegram = new Longman\TelegramBot\Telegram($API_KEY, $BOT_NAME); |
This file contains hidden or 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 bash | |
# make script exit if a simple command fails and | |
# make script print commands being executed | |
set -e -x | |
# names of latest versions of each package | |
export VERSION_PCRE=pcre-8.38 | |
export VERSION_OPENSSL=openssl-1.0.2f | |
export VERSION_NGINX=nginx-1.9.11 |