start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/bash | |
| src=$(go env GOROOT) | |
| dst=$(brew --prefix)/Cellar/go/libexec | |
| dst_link=$(readlink -f ${dst}) | |
| if [ $? -ne 0 ]; then | |
| echo "Create GOROOT symlink to latest go version" | |
| echo "${src} -> ${dst}" |
| #!/bin/bash | |
| # Binaries for golang will be placed in /usr/local/go | |
| # And /usr/local/go/bin must be in PATH | |
| # Put 'export PATH="${PATH}:/usr/local/go/bin"' in shell config | |
| # Go version before update | |
| go version | |
| # Parse url to latest archive for linux | |
| fileurl=$(curl -sL https://go.dev/dl/ | egrep 'downloadBox.*linux-amd64' | head -1 | sed -e 's#^.*\(/dl/.*\.tar\.gz\).*#https://golang.org\1#') |
| #!/bin/bash | |
| # Put this file to $PATH and then call it `git sync` | |
| set -e | |
| LANG=C | |
| NC='\033[0m' | |
| RED="${NC}\033[0;31m" | |
| YLW="${NC}\033[1;33m" | |
| WHI="${NC}\033[1;37m" | |
| GRN="${NC}\033[1;32m" |
| #!/usr/bin/zsh | |
| VERFILE=lib/Data.pm | |
| if (git diff --cached --diff-filter=M --unified=0 $VERFILE|grep VERSION 1>/dev/null) | |
| then | |
| exit 0 | |
| else | |
| cat <<\EOF |
| #!/bin/bash | |
| CUR_PWD=`pwd` | |
| TEMPPATH=${HOME}/.tmp | |
| GITDIR=${TEMPPATH}/git | |
| function clone_git { | |
| git clone https://github.com/git/git.git $GITDIR &>/dev/null | |
| } |
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use DBI; | |
| use File::Copy 'move'; | |
| use File::Copy::Recursive 'dircopy'; | |
| $\="\n"; | |
| my $temp = '/usr/local/share/eltex/temporary/'; | |
| my $template = '/usr/local/share/eltex/template/'; |
| #!/usr/bin/env bash | |
| # Usage: {script} [ OPTIONS ] | |
| # | |
| # OPTIONS | |
| # | |
| # -h, --help Displays this help message. | |
| # -t, --type Default type is "dev". Values is "stable" and "dev". | |
| # -b, --build Version of Sublime Text 3. If not defined tries to get the | |
| # build into the Sublime Text 3 website. | |
| # --target Default target is "/usr/local". |
| VERSION=2.8.5 | |
| apt-get -y install wget | |
| rm -rf redis-$VERSION | |
| wget http://download.redis.io/releases/redis-$VERSION.tar.gz | |
| tar -xzvf redis-$VERSION.tar.gz | |
| cd redis-$VERSION | |
| ./configure --prefix=/usr | |
| make | |
| rm -rf /tmp/redis-$VERSION.$$ | |
| mkdir /tmp/redis-$VERSION.$$ |
| Searching players: | |
| http://worldoftanks.eu/community/accounts/api/%API_VER%/?source_token=%TOKEN%&search=%NAME%&offset=0&limit=1 | |
| Showing player's stats: | |
| http://worldoftanks.eu/community/accounts/%PLAYER_ID%/api/%API_VER%/?source_token=%TOKEN% | |
| Showing player's stats from past: | |
| http://dava2.worldoftanks.com/userstats/2/stats/slice/?platform=android&server=eu&account_id=%PLAYER_ID%&hours_ago=24&hours_ago=168&hours_ago=336 |