Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
#!/usr/bin/sh | |
if [[ $# -eq 0 ]]; then | |
echo "Usage: $0 <backup_dir>" | |
exit | |
fi | |
destination=$1 | |
if ! type "pv" > /dev/null; then | |
echo 'pv' command not found on your system, install it to get a nice progress indicator... | |
else |
#!/usr/bin/env bash | |
# mount /home/joaomlneto @ linux-vm | |
mkdir -p /Users/joaomlneto/nfs/linux-vm | |
mount -t nfs -o nolocks,locallocks,rw,soft,intr,rsize=8192,wsize=8192,timeo=900,retrans=3,proto=tcp \ | |
linux-vm:/home/joaomlneto \ | |
/Users/joaomlneto/nfs/linux-vm |
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.