git remote add secret_prefix-tools ssh://amaslenn@server.com:1234/secret_prefix-tools
git fetch secret_prefix-tools
git branch tools secret_prefix-tools/master
git read-tree --prefix builder/ -u tools:builder
git commit
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
#!/bin/bash -eE | |
taskset -c 0-1 ./run-one.sh ucx & | |
taskset -c 2-3 ./run-one.sh ucx1 & | |
taskset -c 4-5 ./run-one.sh ucx2 & | |
taskset -c 6-7 ./run-one.sh ucx3 & | |
wait |
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
#!/bin/bash -eEl | |
function node_exporter_name() { | |
arch=$(uname -m) | |
if [ "${arch}" = "aarch64" ]; then | |
arch="arm64" | |
elif [ "${arch}" = "x86_64" ]; then | |
arch="amd64" | |
fi |
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
build: | |
only: | |
- tags | |
script: | |
- 'export upload_url=$(curl -s -H "Authorization: token $github_token" "https://api.github.com/repos/openucx/ucx/releases" | python -c "import sys,os,json; d=json.load(sys.stdin); tag=os.environ.get(\"CI_COMMIT_TAG\"); rel = [r for r in d if r[\"tag_name\"] == tag]; url = rel[0][\"upload_url\"] if rel else \"\"; print url" | grep -oP "https\S+assets")' | |
- echo $upload_url | |
- 'export tar_name=$(ls *.tar.gz)' | |
- echo $tar_name | |
- 'curl -s -H "Authorization: token $github_token" -H "Content-Type: application/zip" --data-binary @"$tar_name" "${upload_url}?name=${tar_name}&label=${tar_name}"' |
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
See attached files. |
№ | Work time | Rest time | Full time | Pure work | Pure rest |
---|---|---|---|---|---|
1 | 20 | 5 | 00:25 | 00:20 | 00:05 |
2 | 20 | 5 | 00:50 | 00:40 | 00:10 |
3 | 20 | 5 | 01:15 | 01:00 | 00:15 |
4 | 20 | 15 | 01:50 | 01:20 | 00:30 |
5 | 20 | 5 | 02:15 | 01:40 | 00:35 |
6 | 20 | 5 | 02:40 | 02:00 | 00:40 |
7 | 20 | 5 | 03:05 | 02:20 | 00:45 |
8 | 20 | 15 | 03:40 | 02:40 | 01:00 |
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
[user] | |
name = Maslennikov, Andrey | |
email = andrew.maslennikov@gmail.com | |
[alias] | |
st = status -sb | |
br = branch | |
co = checkout | |
ci = commit | |
rb = rebase | |
hist = log --graph --pretty=format:\"%C(red)%h%C(reset) %C(cyan)%ad%C(reset) [%C(green)%an%C(reset)] %C(bold)%d%C(reset) %s\" --abbrev-commit --date=short |
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 checkout <tag> | |
make configure | |
./configure --with-curl | |
make -j4 all doc | |
sudo make install install-man |
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
" Vundle and friends | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'flazz/vim-colorschemes' | |
call vundle#end() | |
filetype plugin indent on | |
" colorscheme |
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
# found here: http://stackoverflow.com/questions/1286183/git-find-fat-commit | |
#!/usr/bin/perl | |
foreach my $rev (`git rev-list --all --pretty=oneline`) { | |
my $tot = 0; | |
($sha = $rev) =~ s/\s.*$//; | |
foreach my $blob (`git diff-tree -r -c -M -C --no-commit-id $sha`) { | |
$blob = (split /\s/, $blob)[3]; | |
next if $blob == "0000000000000000000000000000000000000000"; # Deleted | |
my $size = `echo $blob | git cat-file --batch-check`; |
NewerOlder