Skip to content

Instantly share code, notes, and snippets.

@mudphone
mudphone / socks_sftp.py
Created April 17, 2018 08:35 — forked from ryanhiebert/socks_sftp.py
SFTP via SOCKS Proxy using Paramiko
import paramiko, socks
# PySocks recommends using no arguments,
# because it only supports the defaults anyway.
sock = socks.socksocket()
host, port = '127.0.0.1', 1234
# Set up your proxy information for this socket
sock.set_proxy(
@mudphone
mudphone / socks_sftp.py
Created April 17, 2018 08:35 — forked from ryanhiebert/socks_sftp.py
SFTP via SOCKS Proxy using Paramiko
import paramiko, socks
# PySocks recommends using no arguments,
# because it only supports the defaults anyway.
sock = socks.socksocket()
host, port = '127.0.0.1', 1234
# Set up your proxy information for this socket
sock.set_proxy(
# Our .tmux.conf file
# Setting the prefix from C-b to C-a
# START:prefix
#set -g prefix C-]
set -g prefix 'C-\'
# '<--Need this quote for emacs syntax highlight bug
# END:prefix
# Free the original Ctrl-b prefix keybinding
# START:unbind

OpenCV V4 on Raspberry Pi 4, Buster

Why and How

Update System

  • sudo apt-get update
  • sudo apt-get install emacs

Pyenv

  • git clone https://github.com/pyenv/pyenv.git ~/.pyenv
  • echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
  • echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
  • echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.profile
  • log out and back in