$ pip install click requests
$ python query_export.py --redash-url "https://app.redash.io/" --api-key ""
LATEX_MAIN=thesis | |
LATEX=pdflatex | |
build: $(LATEX_MAIN).tex clean | |
$(LATEX) $(LATEX_MAIN).tex | |
bibtex $(LATEX_MAIN) | |
$(LATEX) $(LATEX_MAIN).tex | |
$(LATEX) $(LATEX_MAIN).tex | |
./wlog.sh |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
#!/bin/bash | |
# A bash-wrapped version of http://www.commandlinefu.com/commands/view/9536/un-unzip-a-file | |
if [ $# -eq 0 ]; then | |
echo "Un-unzips a file without a root folder." | |
echo "Usage: ununzip <filename>" | |
exit 1 | |
elif [ ! -e $1 ]; then | |
echo "File not found: $1" | |
exit 1 | |
fi |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).