Skip to content

Instantly share code, notes, and snippets.

@hqucms
hqucms / tmux_local_install.sh
Last active May 23, 2019 04:31 — forked from sharjeelsayed/tmux_local_install.sh
bash script for installing tmux without root access.Updated to include latest Tmux version and some other minor changes
#!/bin/bash
# Source: https://gist.github.com/ryin/3106801
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.9a
#!/bin/zsh
set -e
# Usage:
# rsync_parallel [--parallel=N] [rsync args...]
#
# Options:
# --parallel=N Use N parallel processes for transfer. Defaults to 10.
#
# Notes:
@hqucms
hqucms / pdf2png.py
Last active July 11, 2017 19:35 — forked from newville/pdf2png.py
pdf2png
#!/usr/bin/env python
"""Convert PDF to PNG with convert program
"""
import sys
import subprocess
import getopt
# add -trim to avoid extra borders
convert = "convert -trim -antialias -alpha on -channel rgba -fuzz 5%"
density = 300