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
| # https://trac.ffmpeg.org/wiki/Encode/H.264 | |
| # https://trac.ffmpeg.org/wiki/Encode/AAC | |
| # -map 0 -c copy: copy all remaining streams | |
| # -pix_fmt yuv420p: be compatible with most players | |
| # high quality video, high quality audio | |
| avconv -i input.mov -map 0 -c copy -c:v libx264 -preset veryslow -pix_fmt yuv420p -crf 17 -c:a libfdk_aac -vbr 4 output.mov | |
| # high quality *compatible* full-hd video, high quality audio |
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
| rd /q /s md5check_temp | |
| xcopy /e /i /h X:\ md5check_temp | |
| md5deep64.exe -lrX md5sum.txt md5check_temp\ |
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
| DEL /q ..\tmp\*.* | |
| "C:\Program Files\Python 2.7\python.exe" pybackup.py >> ..\logs\pybackup.log 2>&1 |
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 | |
| AGENTPID=$HOME/.ssh/agent.pid | |
| AUTHSOCK=$HOME/.ssh/auth.sock | |
| if [[ -z ${SSH_AUTH_SOCK+x} ]] | |
| then | |
| if [[ ! -e $AUTHSOCK || ! -e $(cat $AUTHSOCK) ]] | |
| then | |
| eval $(ssh-agent -s) |
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
| Terrain + roads | |
| https://www.google.com.br/maps/vt?lyrs=p&x=2569&y=4639&z=13&scale=1 | |
| https://www.google.com.br/maps/vt?lyrs=p&x=5139&y=9279&z=14&scale=1 | |
| https://www.google.com.br/maps/vt?lyrs=p&x=10278&y=18558&z=15&scale=1 | |
| Birdeye + roads | |
| https://www.google.com.br/maps/vt?lyrs=y&x=2569&y=4639&z=13&scale=1 | |
| https://www.google.com.br/maps/vt?lyrs=y&x=5139&y=9279&z=14&scale=1 |
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
| gem 'redis' | |
| gem 'json' |
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
| # Copy and paste the following lines into a shell replacing $1 with the actual username. | |
| # It will then ask for the public key to initialize the .ssh dir. | |
| # The key will be appended to the authorized_keys file; current content (if any) will be preserved. | |
| U=$1 ; H=$(eval echo ~$U) ; sudo mkdir -p $H/.ssh \ | |
| && echo "Paste ssh key: (end with ^D)" \ | |
| && cat > /tmp/$U_key.pub \ | |
| && cat /tmp/$U_key.pub | sudo tee -a $H/.ssh/authorized_keys > /dev/null \ | |
| && rm /tmp/$U_key.pub \ | |
| && sudo chown $U:$U $H/.ssh \ |
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
| module God | |
| module Conditions | |
| class AppFileTouched < TriggerCondition | |
| def initialize | |
| super | |
| @mutex = Mutex.new | |
| @queue = [] | |
| @condition = ConditionVariable.new | |
| @thread = nil | |
| end |
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
| require 'csv' | |
| CSV do |out| | |
| csv = CSV.new(STDIN) | |
| csv.each do |row| | |
| out << row.map do |x| | |
| if m = x.match(/^\d+$/) | |
| (m[0].to_i * 1.6).round.to_s | |
| elsif m = x.match(/^(\d+)( m)(.*)$/) | |
| (m[1].to_i * 1.6).round.to_s + ' km' + m[3] |