Skip to content

Instantly share code, notes, and snippets.

View 1ncend1ary's full-sized avatar

Aleksei Seliverstov 1ncend1ary

View GitHub Profile
@1ncend1ary
1ncend1ary / README
Created December 5, 2019 20:06
Count lines of code script
## create file git-cloc with specified contents
brew install cloc
chmod +x git-cloc
mv git-cloc /user/local/bin ## or to your $PATH
@1ncend1ary
1ncend1ary / isntall.sh
Last active March 13, 2020 20:47
Install docker and docker-compsoe on ubuntu
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
@1ncend1ary
1ncend1ary / CMakeLists.txt
Last active November 12, 2020 16:23
Minimal CMakeLists.txt for C++ sanitizer debug
cmake_minimum_required(VERSION 3.8)
project(clw-05)
set(CMAKE_CXX_STANDARD 17)
#set(ENV{ASAN_OPTIONS} detect_leaks=1)
#set(ENV{ASAN_OPTIONS=detect_leaks} "1")
if (MSVC)
clear lock
clear mod5
add lock = Mode_switch
keycode 66 = Mode_switch Escape NoSymbol NoSymbol
keycode 43 = h H Left Left
keycode 44 = j J Down Down
keycode 45 = k K Up Up
keycode 46 = l L Right Right
@1ncend1ary
1ncend1ary / saveall.mat
Created April 25, 2021 12:32
Matlab save all figures to folder
FolderName = tempdir; % Your destination folder
FigList = findobj(allchild(0), 'flat', 'Type', 'figure');
for iFig = 1:length(FigList)
FigHandle = FigList(iFig);
FigName = num2str(get(FigHandle, 'Number'));
set(0, 'CurrentFigure', FigHandle);
savefig(fullfile(FolderName, [FigName '.fig']));
end
@1ncend1ary
1ncend1ary / config
Created May 10, 2021 18:13
i3 configuration file at: .i3/config
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
@1ncend1ary
1ncend1ary / config.toml
Last active May 10, 2021 18:14
i3status-rust configuration file
[theme]
name = "solarized-dark"
[theme.overrides]
idle_bg = "#424242"
idle_fg = "#ffffff"
info_bg = "#2196f3"
info_fg = "#ffffff"
good_bg = "#8bc34a"
good_fg = "#000000"
warning_bg = "#ffc107"
@1ncend1ary
1ncend1ary / userChrome.css
Created May 10, 2021 18:17
Firefox no top tabbar configuration file
/* hides the native tabs */
#TabsToolbar {
visibility: collapse;
}
#titlebar {
display: none;
}
@1ncend1ary
1ncend1ary / .Xmodmap
Created May 10, 2021 18:19
Xmodmap file for different keyboard modifications
keycode 66 = ISO_Level3_Shift
clear mod1
clear mod4
clear control
keycode 64 = Super_L
keycode 133 = Control_L
keycode 37 = Alt_L
add mod1 = Alt_L
add mod4 = Super_L
add control = Control_L
@1ncend1ary
1ncend1ary / a.zsh
Created July 18, 2021 14:57
Convert adoc files to pdf
asciidoctor -r asciidoctor-pdf -b pdf -a allow-uri-read -o test.pdf defn.adoc */*.adoc