This file contains hidden or 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
#!/usr/bin/env python | |
# Simple script for finding and counting the color pages in a PDF | |
# Copyright (C) 2013 Antonio Garcia-Dominguez | |
# Licensed under the GPLv3 | |
# | |
# This script is based on the following thread (thanks for the tip!): | |
# | |
# http://tex.stackexchange.com/questions/53493 |
This file contains hidden or 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
PATCHED_FILENAME = "Monaco for Powerline.ttf" | |
$(PATCHED_FILENAME): Monaco.ttf fontpatcher.py fontpatcher-symbols.sfd | |
fontforge -script fontpatcher.py Monaco.ttf | |
@echo "(´・_・`) You can install the $(PATCHED_FILENAME) now." | |
Monaco.ttf: Monaco.dfont | |
fondu Monaco.dfont | |
rm *.bdf |
This file contains hidden or 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
#!/bin/bash | |
if [[ $# -eq 0 || "$1" == "-h" || "$1" == "--help" ]]; then | |
echo "Usage: led_ctl [on|off|auto]" | |
echo "on -- turn POWER LED on" | |
echo "off -- turn POWER LED off" | |
echo "auto -- turn POWER LED on if between 08:00 and 20:00, else turn off" | |
echo "Run as root." | |
exit 0 | |
fi |