Quickly convert a markdown file into a nice looking PDF formatted in the same way GitHub formats Readme.md files
- Install grip
$ pip install grip
- Install wkhtmltopdf
$ sudo apt-get install wkhtmltopdf
#!/bin/bash | |
# This sits on the device you want to be able to tunnel back into | |
# Replace USER and SERVER lines with your tunnel user (if different from local) and domain or IP | |
createTunnel() { | |
/usr/bin/ssh -N -R 2222:localhost:22 USER@SERVER | |
if [[ $? -eq 0 ]]; then | |
echo Tunnel created successfully | |
else |
## Add this to the bottom of your aliases or join in another file | |
if [ -f ~/.bash_aliases_colors ]; then | |
. ~/.bash_aliases_colors | |
fi | |
if [ -f ~/.bash_git_branch ]; then | |
. ~/.bash_git_branch | |
fi |
#!/bin/bash | |
# Generate a random number within a range | |
from=$1 | |
to=$2 | |
$(( ( RANDOM % $to ) + $from )) |
These columns come from the spreadsheet template that can be downloaded from the Natwest website. On that page you can submit fake details to be able to download the zip file. Opening the xlt
file in LibreOffice might make some weird macro stuff happen - so better to look at the column titles below!
The table columns are as follows:
<html> | |
<head> | |
<title>Text Reader</title> | |
<style type="text/css"> | |
h1 {text-align: center;} | |
p.text {display: none;} | |
</style> | |
</head> | |
<body> | |
<h1 class="read">The text will be read here</h1> |
#!/bin/bash | |
# Install bower `npm -g install bower` | |
# Create directory in project root: | |
# bower/ | |
# Then create subdirectories for each bower setup | |
# bower/public/bower.json | |
# bower/compiled/bower.json | |
# The path installed into will be in the same directory as `bower` with the same name as the subdir | |
# ./public |
This has now been added to the FPDI Extended repository.
var gulp = require('gulp'); | |
var bower = require('gulp-bower'); | |
gulp.task('bower', function() { | |
bower({ directory: '../../assets', cwd: './bower/assets/' }); | |
bower({ directory: '../../js', cwd: './bower/js/' }); | |
}); |
#!/bin/bash | |
gnome-terminal -t "watch" --tab -e "bash -c 'gulp watch'" --tab -e "bash -c 'compass watch'" |