An easy way to download basecamphq files via command line or wget
wget https://yoursite.basecamphq.com/.../path/to/file --no-check-certificate --http-user={your username} --http-password={your password}
#!/bin/bash | |
#updated ffmpeg progress indicator | |
#by Rupert Plumridge | |
#for updates visit www.prupert.co.uk | |
#Creative Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England & Wales Licence | |
# Based on the ffmpegprogress bar from: http://handybashscripts.blogspot.com/2011/01/ffmpeg-with-progress-bar-re-work.html | |
# which was based on my initital progress script - circle of life and all that ;) | |
# version 2.0 | |
# 07.04.2011 | |
# now uses apparently better progress detection, based on duration of overall video and progress along the conversion |
#!/bin/bash | |
#updated ffmpeg progress indicator | |
#by Rupert Plumridge | |
#for updates visit www.prupert.co.uk | |
#Creative Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England & Wales Licence | |
# Based on the ffmpegprogress bar from: http://handybashscripts.blogspot.com/2011/01/ffmpeg-with-progress-bar-re-work.html | |
# which was based on my initital progress script - circle of life and all that ;) | |
# version 2.0 | |
# 07.04.2011 | |
# now uses apparently better progress detection, based on duration of overall video and progress along the conversion |
#!/bin/sh | |
# export EC2_HOME='/etc/ec2' # Make sure you use the API tools, not the AMI tools | |
# export EC2_BIN=$EC2_HOME/bin | |
# export PATH=$PATH:$EC2_BIN | |
# I know all of the above is good to have solution, but not re-usable | |
# I have captured all of the above in a particular file and lemme execute it | |
source /etc/environment | |
EC2_BIN=$EC2_HOME/bin |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');
Those suck for maintenance and they're ugly.
Picking the right architecture = Picking the right battles + Managing trade-offs
Dependences: | |
sudo apt-get update | |
sudo apt-get install build-essential | |
apt-get install python-dev | |
sudo pip install -U setuptools | |
Steps: | |
download from https://mrjbq7.github.io/ta-lib/install.html |