This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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 |