function show() {
DOMAIN=".example.com"
REMOTE="$2$DOMAIN"
ssh -tR 1080:127.0.0.1:$1 vps "sudo ssh -Nl \$USER -L $REMOTE:80:127.0.0.1:1080 localhost"
}
#https://news.ycombinator.com/item?id=9291967
tail -F program.log | synesthesia "$(redi "$(grokpat uuid)")"
https://github.com/cromo/synesthesia
2014-07-14 Reverse SSHFS mounts (fs push) https://blog.dhampir.no/content/reverse-sshfs-mounts-fs-push
sshfs is a neat way of mounting a file system from one machine to another over an encrypted ssh channel. However, for machine CLIENT to access a file system that resides on machine HOST, CLIENT must generally be able to log in to HOST. In addition, CLIENT must be able to connect to HOST in the first place, though a tunnel from HOST to CLIENT can easily mediate this if a connection can only be initiated in that direction.
However, the login itself may still be an issue. You might not want to type your password for HOST on CLIENT, or set up a keyless login using public/private keys. You might not entirely trust CLIENT, from which you want to access the file system. dpipe to the rescue.
Using dpipe, available in the “vde2” package on Debian (and, likely, derivatives), you can initiate the connection the other way and use sshfs in “slave mode”, in which it communicates over standard input and output instead o
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AbandonProcessGroup</key> | |
<true/> | |
<key>Label</key> | |
<string>local.automount.sshfs</string> | |
<key>ProgramArguments</key> | |
<array> |
#! /usr/bin/env python3.2 | |
""" | |
mozreplcurl - Wrapper around curl that adds on firefox's cookies, and updates firefox's cookie db after curl finishes running. | |
To update firefox's cookies db when firefox is running, mozrepl is required to be installed. | |
""" | |
import sys | |
import re | |
from telnetlib import Telnet | |
from argparse import ArgumentParser |
I hereby claim:
- I am bdmorin on github.
- I am bdmorin (https://keybase.io/bdmorin) on keybase.
- I have a public key whose fingerprint is E2B0 8831 4CCB C8B1 0B00 FF54 003D C629 2BDD 5E0C
To claim this, I am signing this object:
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
# explain what I'm trying to do | |
# Given base domain of abc.com | |
# 1) typical visitor will type in abc.com | |
# our SEO people want standardized www.abc.com all redirects are 301 | |
# 2) issues in our environment have template assets pointing to | |
# http://abc.com/skins/some.css | |
# This makes the browser redirect nearly 15 times, not good. | |
# 3) We want only the admin area to be https. Due to insecure pixels and other assets | |
# the rest of the website wouldn't load if it was all https. |