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:
#!/bin/bash | |
# ssh-multi | |
# D.Kovalov | |
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html | |
# a script to ssh multiple servers over multiple tmux panes | |
starttmux() { | |
if [ -z "$HOSTS" ]; then |
#!/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 | |
:<<"=cut" | |
=head1 NAME | |
C<run_root_remotely> - use expect and sudo to deploy SSH key to remote | |
server root account and execute script on the remote via SSH as root | |
=head1 DESCRIPTION |
tmux_pwd () { | |
[ -z "${TMUX}" ] && return | |
TARGET=\-t$(tmux display-message -p "#S") | |
tmux set-window-option ${TARGET} default-path $PWD > /dev/null | |
(( sleep 300; | |
tmux set-window-option ${TARGET} default-path ~/Development > /dev/null; ) & ) > /dev/null 2>&1 | |
} | |
alias pwd="\pwd; tmux_pwd" |
I hereby claim:
To claim this, I am signing this object:
#!/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 |
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 <acid_kewpie@users.sf.net> | |
# mplayer -V | |
# MPlayer svn r34540 (Debian), built with gcc-4.7 (C) 2000-2012 MPlayer Team |
: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 |