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
#!/bin/bash | |
# | |
# Compare two PDF files. | |
# Dependencies: | |
# - pdfinfo (xpdf) | |
# - pdfjam (texlive-extra-utils) | |
# - diffpdf | |
# | |
MAX_HEIGHT=15840 #The maximum height of a page (in points), limited by pdfjam. |
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
#!/bin/bash | |
# For more info : https://wiki.archlinux.org/index.php/CPU_frequency_scaling | |
set_scaling_gov() { | |
gov=${1-performance} | |
for i in $(ls -1 /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor); do | |
echo ${gov} | sudo tee $i > /dev/null | |
done | |
} | |
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
#!/usr/bin/env python | |
import argparse | |
import os | |
import sh | |
t = "/sys/kernel/debug/tracing" | |
def write_to(base, name, data): |