-
on source machine (behind the network), run:
ssh -N -R 2222:localhost:22 YOURUSER@YOURSERVER
-
on YOURSERVER, run:
ssh -l SOURCEUSER -p 2222 localhost
-
If you want to automated it, do something like...
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/xenial64" | |
#config.vm.box = "bento/centos-7.2" | |
#config.vm.box_url = "https://atlas.hashicorp.com/bento/boxes/centos-7.2" | |
config.vm.network "forwarded_port", guest: 5000, host: 5000 | |
config.vm.synced_folder "scripts", "/home/vagrant/scripts" |
#!/bin/bash | |
sudo -H pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.6.0-py2-none-any.whl --ignore-installed six | |
# Modified install command from: https://www.tensorflow.org/versions/master/get_started/os_setup.html | |
# See: https://github.com/pypa/pip/issues/3165 | |
# Because Apple has preinstalled the dependency Six that cannot be removed | |
# Some of the errors I experienced were the following: | |
# [Errno 1] Operation not permitted: '/tmp/pip-BriGIp-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib |
#!/bin/bash | |
# from: http://apple.stackexchange.com/questions/9064/how-to-i-go-from-flac-to-mp3-using-lame-flac-using-the-terminal-alone | |
for f in "$@"; do | |
[[ "$f" != *.flac ]] && continue | |
album="$(metaflac --show-tag=album "$f" | sed 's/[^=]*=//')" | |
artist="$(metaflac --show-tag=artist "$f" | sed 's/[^=]*=//')" | |
date="$(metaflac --show-tag=date "$f" | sed 's/[^=]*=//')" | |
title="$(metaflac --show-tag=title "$f" | sed 's/[^=]*=//')" | |
year="$(metaflac --show-tag=date "$f" | sed 's/[^=]*=//')" |
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' |
{ "event": { "userDefined": { "name": "Load Testing" } } } |
A box-and-whisker plot with axes. Based on jensgrubert's implementation.
I'm interested in changing the sample data and adding a little color to the boxes
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpm | |
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm | |
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/python-2.4.3-56.el5.x86_64.rpm | |
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/libxml2-2.6.26-2.1.21.el5_9.3.x86_64.rpm | |
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.21.el5_9.3.x86_64.rpm | |
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/expat-1.95.8-11.el5_8.x86_64.rpm | |
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm | |
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/sqlite-3.3.6-7.x86_64.rpm | |
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm | |
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10 |
convert -density 300 input.pdf -fill blue -opaque black out2.pdf |
#!/bin/sh | |
ulimit -v unlimited | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -Uvh epel-release-6-8.noarch.rpm | |
yum -w install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget | |
cd /usr/local/src | |
wget http://download.mono-project.com/sources/mono/mono-2.10.8.tar.gz | |
# http://download.mono-project.com/sources/mono/mono-3.6.0.tar.bz2 | |
tar zxvf mono-2.10.8.tar.gz | |
cd mono-2.10.8 |