View change_background.sh
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 bash | |
# -*- coding: utf-8 -*- | |
# make this script executable and add it to the folder /etc/cron.hourly | |
path="/media/data/background" | |
if [ -d "$path" ]; then | |
filename=$(find $path -type f | shuf -n 1) |
View josm_gridlines.sh
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/sh | |
# Written by Vincent de Philly (https://help.openstreetmap.org/users/867/vincent-de-phily) | |
# Improved by Marco Antonio Frias | |
# | |
# This script was sugguest written in help forum to answer the question "Coordinate lines in josm?" | |
# https://help.openstreetmap.org/questions/9273/coordinate-lines-in-josm | |
file=gridlines.gpx |
View pdf2png
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
inkscape ".pdf" -z --export-dpi=600 --export-area-drawing --export-png=".png |
View recorddesktop.sh
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/sh | |
FFMPEG=$(which ffmpeg) | |
# frame size, widthxheight (execute: xwininfo -root | grep 'geometry' | awk '{print $2;}') | |
SIZE="1600x900" | |
# video codec | |
VCODEC=libtheora |
View png2video
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
ffmpeg -i audio.wav -f image2 -r 1 -i stellarium_%02d.png -c:v libx264 -b:v 2000k -c:a aac -strict experimental -b:a 320k -r 30 video.mp4 |
View speed_firefox
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
1. Close Firefox | |
2. Execute this: | |
find ~/.mozilla/firefox/ -type f -name '*.sqlite' -exec sqlite3 {} 'VACUUM;' \; |