I hereby claim:
- I am dmytro on github.
- I am dmytro_kovalov (https://keybase.io/dmytro_kovalov) on keybase.
- I have a public key ASCC4rInM6YQx0ly8mMJDPp58HR1bTT6sc9Dg179kZPnzQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| FROM tutum/lamp:latest | |
| RUN rm -fr /app | |
| ADD src /app | |
| RUN chown www-data -R /app/tiki | |
| ADD kraiany.dump.bz2 /kraiany.dump.bz2 | |
| ADD prepare.sh /prepare.sh |
| #!/bin/bash | |
| # (c) Dmytro Kovalov, 2016. | |
| # | |
| # Converts VIDEO_TS folder of the DVD stored on disk into VOB file for each of the titles | |
| # and converts them to H264 (using separate to264 script.) | |
| # Tested on Debian Linux with: | |
| # lsdvd -V | |
| # lsdvd 0.16 - GPL Copyright (c) 2002, 2003, 2004, 2005 "Written" by Chris Phillips <[email protected]> | |
| # mplayer -V | |
| # MPlayer svn r34540 (Debian), built with gcc-4.7 (C) 2000-2012 MPlayer Team |
| #!/bin/bash | |
| # Easy script to create OpenVPN client configuration with the user, pre-generating user's | |
| # RSA key and certificate. | |
| # | |
| # Configuration template must exist in the same directory, with only missing part: certificates. | |
| # | |
| # (c) Dmytro Kovalov, 2015 | |
| # | |
| cd $(dirname ${BASH_SOURCE[0]}) |
| #!/bin/bash | |
| # | |
| # If you have bunch of MP3's in a folder with filenames corresponding | |
| # to the titles of songs, but ID3 tags are missing or misformed (for | |
| # example, coming from Windows with cp1251 codepage, but you need | |
| # UTF8), this script will read filenames and set ID3 tags | |
| # correspondingly. | |
| # | |
| # cd to the directory with mp3 files and execute script | |
| # there. Directories on the upper level should have names: |
| #!/bin/bash | |
| doit () { | |
| NAME="$*" | |
| echo $NAME | |
| NAME=$(echo $NAME | sed 's;^\.\/;;') | |
| DIR=$(dirname "$NAME") | |
| FILE="$(echo $(basename ${NAME}) | sed 's/\.[^\.]*$//')" | |
| OUT=tmp/$DIR | |
| OFILE="${OUT}/${FILE}.mp3" |
| #!/bin/bash | |
| SLEEP=120 | |
| MAX_CONN=20 | |
| MY_IP=0.0.0.0 # Configure your IP here | |
| while true; do | |
| ( | |
| echo "create table ips (ip string);" | |
| echo 'begin transaction;' | |
| netstat -an | grep -v ESTABLISHED | grep ${MY_IP}:80 | awk '{print $5}' | cut -f4 -d: | while read IP; do |
| :vb_active_num: | |
| :namespace: Wizcorp::Couchbase | |
| :class: BucketStats | |
| :function: :avg # :avg, :sum, :none | |
| :operator: :< | |
| :rag: [1024,1024,1025] |
| def rag | |
| rag = -1 | |
| res = @connection.send(@key[:name]).send(@key[:function].to_sym) | |
| thresholds = @key[:rag].reverse | |
| thresholds.each_index do |idx| | |
| val = thresholds[idx] | |
| rag = idx if res.send(@key[:operator].to_sym, val) | |
| end |
| autoload -Uz vcs_info | |
| zstyle ':vcs_info:*' enable git | |
| precmd() { | |
| vcs_info | |
| } | |
| setopt prompt_subst | |
| zstyle ':vcs_info:git:*' check-for-changes true | |
| zstyle ':vcs_info:*' formats "%f[%%n@%%m %1~] $ " "%f%a %F{3}%m%u%c %f%b:%r/%S" | |
| zstyle ':vcs_info:*' nvcsformats "%f[%n@%m %1~]$ " "" |