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
# copy to your .bashrc to keey bash history backups at ~/bak/bash/history/ | |
# backup bash history when start new bash session and there no bak files for last 5 minutes | |
LAST_HIST_BAKS=$(find $HOME/bak/bash/history/ -type f -mmin -5) | |
if [ -z "$LAST_HIST_BAKS" ]; then | |
mkdir -p $HOME/bak/bash/history/ | |
zstd < $HOME/.bash_history > $HOME/bak/bash/history/bash_history.$(date +%Y-%m-%d_%H-%M-%S.%N).zst | |
# remove old (older then 30 days) bak files | |
find ~/bak/bash/history/ -type f -mtime '+30' | xargs --no-run-if-empty rm |
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
["Адыгейск (Адыгея)","Майкоп (Адыгея)","Горно-Алтайск (Алтай)","Алейск (Алтайский край)","Барнаул (Алтайский край)","Белокуриха (Алтайский край)","Бийск (Алтайский край)","Горняк (Алтайский край)","Заринск (Алтайский край)","Змеиногорск (Алтайский край)","Камень-на-Оби (Алтайский край)","Новоалтайск (Алтайский край)","Рубцовск (Алтайский край)","Славгород (Алтайский край)","Яровое (Алтайский край)","Белогорск (Амурская область)","Благовещенск (Амурская область)","Завитинск (Амурская область)","Зея (Амурская область)","Райчихинск (Амурская область)","Свободный (Амурская область)","Сковородино (Амурская область)","Тында (Амурская область)","Циолковский (Амурская область)","Шимановск (Амурская область)","Архангельск (Архангельская область)","Вельск (Архангельская область)","Каргополь (Архангельская область)","Коряжма (Архангельская область)","Котлас (Архангельская область)","Мезень (Архангельская область)","Мирный (Архангельская область)","Новодвинск (Архангельская область)","Няндома (Архангельская область)","Он |
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
package main | |
import "fmt" | |
import "flag" | |
import "crypto/rand" | |
import "math/big" | |
import "github.com/tv42/base58" | |
func secure_random(n int) []byte{ | |
b := make([]byte, n) |
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/bash | |
# This script uses too much unneeded dependencies (like python for adding some integers). Sorry for that. | |
# You can clean it for your cases (replace python with bc for example). | |
# TODO: test rsync version shoud has --info=progress2 option (v3.0.10 or more) | |
#USER="`whoami`" | |
CONTOUR_MOUNTPOINT="/run/media/$USER/CONTOUR GPS/DCIM" | |
CONTOUR_ARCHIVE='/path/to/archive' |
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 sh | |
# This script extracts GPS data (in GPX format) from ContourGPS camera videos. | |
# You need to have ffmpeg, gpsbabel and gnu parallel to run this script. | |
# | |
# Please note that *.gpx files in given directory may be overwriten! | |
# | |
# Usage: extract_contour_gps.sh <directory_with_movies> | |
# |
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 ruby | |
require 'rubygems' | |
require 'tmpdir' | |
@compose_method = 'LightenIntensity' | |
@processes_count = 4 | |
@intermediate_image_format = "tga" | |
class Numeric |
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
# Contibutor: [email protected] | |
# Maintainer: Moritz Fischer <[email protected]> | |
pkgname=gnuradio | |
pkgver=3.6.2 | |
pkgrel=1 | |
pkgdesc="free software development toolkit that provides the signal processing runtime and processing blocks to implement software radios using readily-available, low-cost external RF hardware and commodity processors" | |
arch=('i686' 'x86_64') | |
license=('GPL') | |
depends=('fftw' 'python2-numpy' 'boost-libs' 'cppunit' 'swig' 'gsl' 'blas' 'guile' 'libuhd') | |
makedepends=('boost') |
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 ruby | |
require 'rubygems' | |
require 'nokogiri' | |
if ARGV.size != 1 | |
$stderr.puts "kdenlive dissolve transition fixer. Prints fixed project xml contents. (See kdenlive bug: http://www.kdenlive.org/mantis/view.php?id=2668)" | |
$stderr.puts "Usage: #{File.basename $PROGRAM_NAME} <project.kdenlive>" |
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
GIT | |
remote: https://github.com/tgbyte/twitter-bootstrap-rails.git | |
revision: ef49b93cb585413b0e2d14e44e50063a0fd58b5c | |
specs: | |
twitter-bootstrap-rails (2.0.2.2) | |
actionpack (>= 3.1) | |
less-rails (~> 2.1.5) | |
railties (>= 3.1) | |
GEM |
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 ruby | |
require 'rubygems' | |
@optimize_image_bin = 'optimize_image_bin' # from google pagespeed sdk | |
@pngout = 'pngout' | |
@pngcrush = 'pngcrush' | |
@optipng = 'optipng' | |
@advpng = 'advpng' |
NewerOlder