Short how-to for creating a reverse ssh tunnel to a remote server. Useful for breaking NATted connection for example.
- At OpenWrt:
opkg update
opkg install sshtunnel
- At remote server: create client ssh keys
#!/bin/bash | |
# | |
# Use 'crontab -e' to create a scheduled job for this. Every 6 hours or so should be good. | |
# Make sure your blocking software/hardware can access the tor_nodes.txt file via HTTP / FTP / SCP / etc... | |
# | |
curl https://check.torproject.org/exit-addresses | grep ExitAddress | cut -d' ' -f2 > /var/www/html/blocklists/tor_nodes.txt |
#!/bin/sh | |
# Author: Nicolas Schneider | |
# Mounts all volumes that are mounted in a Docker container | |
# under a given root relative to their mount point in the container. | |
# Usage: bindMountDockerData.sh container /mnt/path | |
# | |
# Example: Docker container 'demo' which has a volume mounted at /somedata and | |
# another at /home/userdata. | |
# Running 'bindMountDockerData.sh demo /mnt/dockerdemo' | |
# will result in: |
#!/bin/bash | |
### Google Domains provides an API to update a DNS "Syntheitc record". This script | |
### updates a record with the script-runner's public IP, as resolved using a DNS | |
### lookup. | |
### | |
### Google Dynamic DNS: https://support.google.com/domains/answer/6147083 | |
### Synthetic Records: https://support.google.com/domains/answer/6069273 | |
USERNAME="" |
<?php | |
// Note: $this->server is a "logged in" PHRETS $session | |
public function getLookupValues($resourceName, $className) | |
{ | |
$results = array(); | |
// Get Table Metadata for this resource/class | |
$tableMeta = $this->server->GetTableMetadata($resourceName, $className); |
Short how-to for creating a reverse ssh tunnel to a remote server. Useful for breaking NATted connection for example.
opkg update
opkg install sshtunnel
# Description: Boxstarter Script | |
# Author: Jess Frazelle <[email protected]> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
#!/bin/bash | |
# 用于创建macOS安装ISO的脚本文件 | |
# 初始脚本来源:http://www.insanelymac.com/forum/topic/308533-how-to-create-a-bootable-el-capitan-iso-fo-vmware/ | |
set -x | |
SCRIPT_PATH=`pwd`/$0 | |
DMG_PATH="/Applications/Install macOS High Sierra.app/Contents/SharedSupport" |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"log" | |
"mime/multipart" | |
"net/http" | |
"os" |
<template> | |
<canvas class="gridCanvas" | |
:width="width" | |
:height="height" | |
></canvas> | |
</template> | |
<script> | |
export default { | |
name: 'xon-GridCanvas', |