Skip to content

Instantly share code, notes, and snippets.

View idrise's full-sized avatar

Idris Elliott idrise

View GitHub Profile
"C:\Program Files\Scan Tailor\scantailor-cli.exe" -v --margins=0 --layout=1 --deskew=auto --content-detection=normal --alignment-vertical=bottom --alignment-horizontal=center --white-margins=true --color-mode=black_and_white --dpi=600 --output-dpi=600 --despeckle=off --tiff-compression=lzw --start-filter=1 --end-filter=6 C:\input\ C:\output
sudo apt install libjpeg zlib libpng libtiff libboost
or
sudo apt install libjpeg-dev zlib1g-dev libpng-dev libtiff5-dev libboost-all-dev
sudo apt install qt5-default
sudo apt install cmake
@idrise
idrise / install-powerline.sh
Last active November 14, 2020 23:27
Script : Installs Powerline Font on Mac OSX.
pushd /tmp
# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
popd
@echo off
echo Grab a cuppa! Here there be dependencies...
git clone git@github.com:guardian/capicli.git ~/.capicli/main
cd ~/.capicli/main
npm install
npm run build
npm link
@echo off
echo Grab a cuppa! Here there be dependencies...
mkdir -p ~/.capicli/main
git clone git@github.com:guardian/capicli.git ~/.capicli/main
cd ~/.capicli/main
npm install
npm run build
npm link
function check_package_manager() {
current_dir=$(pwd)
while [ "$(pwd)" != "/" ]; do
if [ -f "pnpm-lock.yaml" ]; then
if [ "${1}" != "pnpm" ]; then
echo "Looks like you're using the wrong package manager, partner!"
echo "It's pnpm time, cowboy."
cd "${current_dir}"
return 1