This is a work in progress
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: pumacontrol | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Puma web server |
JFFS script to isolate configured guest wifi networks on AsusWRT Merlin into a seperate VLAN.
Original script from: http://www.snbforums.com/threads/ac56u-how-to-add-bridges-with-dhcp-servers.20326/#post-189032
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# |
# Modified from: | |
# http://findingscience.com/ruby/ssl/2013/01/13/reading-an-ssl-cert-in-ruby.html | |
require "socket" | |
require "openssl" | |
host = "www.piranhas.co" | |
tcp_client = TCPSocket.new("www.piranhas.co", 443) | |
ssl_client = OpenSSL::SSL::SSLSocket.new(tcp_client) |
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i
In order to tunnel all iOS Internet traffic using SSH:
- Get this app: SSHTunnel
- Create a tunnel with type "Dynamic" & connect.
- Click on the
config.pac
file to copy it to a clipboard. - Go to Settings > General > Network > Wi-Fi and tap the blue arrow on the right side of the entry for your network. Scroll down to the "Proxy" section and tap "Auto". Paste URL to a pac file from a clipboard.
- Have a FUN!
See a detailed video: https://www.youtube.com/watch?v=8r0eEr36Dg4
Code | Terminology | Kind | Usage | Line | |
---|---|---|---|---|---|
$scr | scripting additions folder | Property of class: domain | System Events : Disk-Folder-File Suite | 1 | |
%doc | music folder | Property of class: user domain object | System Events : Disk-Folder-File Suite | 2 | |
µdoc | music folder | Enumeration | Standard Additions : File Commands | 3 | |
ƒhlp | help | Enumeration | Standard Additions : File Commands | 4 | |
ƒhlp | help folder | Enumeration | Standard Additions : File Commands | 5 | |
ƒlib | shared libraries | Enumeration | Standard Additions : File Commands | 6 | |
ƒlib | shared libraries folder | Enumeration | Standard Additions : File Commands | 7 | |
ƒmod | modem scripts | Enumeration | Standard Additions : File Commands | 8 | |
ƒmod | modem scripts folder | Enumeration | Standard Additions : File Commands | 9 |
Add the following in .zshrc: | |
... | |
plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl) | |
... | |
### Fix slowness of pastes with zsh-syntax-highlighting.zsh | |
pasteinit() { | |
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} | |
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? |