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
# First install tmux | |
brew install tmux | |
# For mouse support (for switching panes and windows) | |
# Only needed if you are using Terminal.app (iTerm has mouse support) | |
Install http://www.culater.net/software/SIMBL/SIMBL.php | |
Then install https://bitheap.org/mouseterm/ | |
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
#!/bin/bash | |
while read LINE; do curl -o /dev/null --silent --progress-bar --head --write-out '%{http_code} %{time_starttransfer} %{url_effective}\n' "$LINE" >> urls_result.txt done < fiddler.txt |
<?php | |
/* | |
Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch) | |
--------- | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <[email protected]> |
package com.gabesechan.android.reusable.receivers; | |
import java.util.Date; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.telephony.TelephonyManager; | |
public abstract class PhonecallReceiver extends BroadcastReceiver { |
# Raspberry software used | |
2015-02-16-raspbian-wheezy.img | |
# Install dependencies | |
sudo apt-get update | |
sudo apt-get install -y python-pip python-virtualenv python-dev | |
# Enable audio 3.5mm: 1=>3.5mm 2=>HDMI | |
amixer cset numid=3 1 |
#!/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/sh | |
docker events --filter 'event=start' --filter 'event=stop' | while read event | |
do | |
container_id=`echo $event | sed 's/.*Z\ \(.*\):\ .*/\1/'` | |
echo $container_id |
#!/bin/sh | |
if [ "$#" -ne 1 ]; then | |
echo "Example: ${0} [email protected]" | |
exit 1 | |
fi | |
cat ~/.ssh/id_rsa.pub | ssh ${1} "cat >> /etc/dropbear/authorized_keys && chmod 0600 /etc/dropbear/authorized_keys && chmod 0700 /etc/dropbear" |
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
// First, run a Chrome instance on your Mac: | |
// /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 &> /dev/null &; disown | |
const puppeteer = require('puppeteer-core'); | |
const axios = require('axios'); | |
const getBrowserWSEndpoint = async (baseUrl) => { | |
const response = await axios.get(`http://${baseUrl}/json/version`); | |
return response.data.webSocketDebuggerUrl; |