- [X] GitKraken Glo
sudo mount -uw / && sudo ln -s /System/Volumes/Data/nix /nix
curl https://nixos.org/nix/install | sh
. /Users/gtrun/.nix-profile/etc/profile.d/nix.sh
nix-channel --add https://github.com/NixOS/nixpkgs/archive/nixpkgs-19.09-darwin.tar.gz nix-darwin
wget https://github.com/hardenedlinux/NSM-data-analysis/releases/download/nix/nix_2.3_master_e3eecb5_amd64.deb
sudo dpkg -i nix_2.3_master_e3eecb5_amd64.deb
sudo ln -s /opt/nix-multiuser/nix/bin/nix* /usr/local/bin
nix-channel --add https://nixos.org/channels/nixos-19.09 nixpkgs
nix-channel --update
export NIX_PATH="$HOME/.nix-defexpr/channels/nixpkgs"
##for Julia CUDA
export NIXPKGS_ALLOW_UNFREE=1
source /opt/nix-multiuser/nix/etc/profile.d/nix.sh
- SSD 225GB
- 2T extended
5.2.1 dev-sec/puppet-os-hardening: This puppet module provides numerous security-related configurations, providing all-round base protection.
6.1.3 Arch Linux - Package Search 宋体
6.2.2 ✔ DONE Releases · kovidgoyal/kitty
- State “✔ DONE” from “⚔ STARTED” [2019-09-03 Tue 00:16]
6.2.4 ✘ CANCELED thestinger/termite: A keyboard-centric VTE-based terminal, aimed at use within a window manager with tiling and/or tabbing support.
- State “✘ CANCELED” from [2019-09-03 Tue 00:16]
to Kitty
6.2.5 ✘ CANCELED iTerm2 - macOS Terminal Replacement
- State “✘ CANCELED” from [2019-09-03 Tue 00:17]
to kitty
brew install rxvt-unicode
6.5.1 bastillion-io/Bastillion: Bastillion is a web-based SSH console that centrally manages administrative access to systems. Web-based administration is combined with management and distribution of user’s public SSH keys.
6.5.2 Termius
8.1.1 [[https://www.reddit.com/r/unixporn/comments/crlaoo/fluxbox_blossom_theme/][[Fluxbox] Blossom theme : unixporn]]
8.3.2 [[https://www.reddit.com/r/unixporn/comments/958f9b/kde_i3gaps_arc_dark_t/e3t2bt1/?context=8&depth=9][[KDE i3-gaps] Arc Dark T : unixporn]]
8.3.3.1 [[https://www.reddit.com/r/unixporn/comments/d4ytzc/plasma_simple_blurry/][[Plasma] Simple Blurry : unixporn]]
cargo install tree-sitter-cli
brew install libxml2v
brew cask install dotnet-sdk
git clone https://github.com/Microsoft/python-language-server.git
cd python-language-server/src/LanguageServer/Impl
dotnet publish -c Release -r osx-x64
chmod a+x $(git rev-parse --show-toplevel)/output/bin/Release/osx-x64/publish/Microsoft.Python.LanguageServer
git clone https://github.com/Microsoft/python-language-server.git
cd python-language-server/src/LanguageServer/Impl
dotnet publish -c Release -r linux-x64
chmod a+x $(git rev-parse --show-toplevel)/output/bin/Release/linux-x64/publish/Microsoft.Python.LanguageServer
pip3 install python-Levenshtein
conda install -c conda-forge python-language-server
git clone -b bingo https://github.com/saibing/tools.git
cd tools/gopls
go install
brew install rust
brew update
brew install ccls
install.packages('IRkernel')
install.packages('repr')
pbdZMQ
install.packages('pbdZMQ')
library(devtools)
install_github("RBigData/pbdZMQ")
install.packages('IRkernel')
IRkernel::installspec()
brew tap homebrew/science
brew install Caskroom/cask/xquartz
brew install r
link image to static
ln -s /Users/gtrun/Dropbox/application/blog/content/static/ox-hugo /Users/gtrun/Dropbox/application/blog/static
cd ~/Library/Rime
import_tables:
- luna_pinyin
- luna_pinyin.sgmain
- luna_pinyin.poetry
- luna_pinyin.cn_en
- luna_pinyin.english
- luna_pinyin.computer
- luna_pinyin.chat
- luna_pinyin.biaoqing
brew cask install squirrel
curl -fsSL https://git.io/rime-install | bash
brew install yaml-cpp leveldb opencc
git clone https://github.com/google/googletest
cd googletest
mkdir build
cd build
cmake ..
make
make install
git clone git://github.com/s-yata/marisa-trie.git
cd marisa-trie
autoreconf -i
./configure
make
make install
sudo cp /Library/Input\ Methods/Squirrel.app/Contents/Frameworks/librime.1.dylib /usr/local/lib
14.1.2 wyounas/homer: Homer, a text analyser in Python, can help make your text more clear, simple and useful for your readers.
14.3.1 Apps:SSH agent - Trezor Wiki
- download youtube-dle
15.1 ❤ Love cmus(1): C* Music Player - Linux man page
brew install mpv
, just change all the relative import statements as follows from .music_api import YoutubePlayer to from music_api import YoutubePlayer
16.1.1 gitMemory :)
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
18.1 robcowart/influx_snmp: SNMP Data Collection and Analytics with the TICK Stack (Telegraf, InfluxDB, Chronograf and Kapacitor)
diskutil list
diskutil unmountDisk /dev/disk5
sudo dd bs=1m if=/Users/gtrun/Downloads/nixos-graphical-19.03.173292.65729e08178-x86_64-linux.iso of=/dev/rdisk4
20.3.4.1 fish: Documentation
apt-get install sudo
echo "test ALL=(ALL:ALL) ALL" >> /etc/sudoers
sudo apt-get update
sudo apt build-dep emacs25 -y
sudo apt-get install mailutils
mkdir ~/src
cd ~/src
wget https://github.com/emacs-mirror/emacs/archive/emacs-26.3-rc1.tar.gz
tar -xvf emacs-26.3-rc1.tar.gz
cd emacs-emacs-26.3-rc1/
./autogen.sh
./configure --with-mailutils
make -j8 all & sudo make install
sudo apt-get install zsh git curl ripgrep silversearcher-ag w3m -y
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
git clone https://github.com/GTrunSec/my-nsm-emacs.git ~/.emacs.d
rm -rf ~/.emacs.d
scp -r test@10.220.170.150:~/.emacs.d ~/.emacs.d
ssh test@10.220.170.150 #NSM-sensor1
echo "
auto lo
iface lo inet loopback
auto enp1s0
auto enp8s0
# The primary network interface
#allow-hotplug enp1s0
iface enp1s0 inet static
address 10.220.170.150
netmask 255.255.255.0
gateway 10.220.170.94
#allow-hotplug enp1s0
iface enp8s0 inet static
address 192.168.122.20
netmask 255.255.255.0
gateway 192.168.122.1
" > /etc/network/interfaces
ssh test@10.220.170.151 #NSM-sensor1
echo "
auto lo
iface lo inet loopback
auto enp1s0
# The primary network interface
#allow-hotplug enp1s0
iface enp1s0 inet static
address 10.220.170.151
netmask 255.255.255.0
gateway 10.220.170.94
" > /etc/network/interfaces
ssh test@10.220.170.152 #NSM-sensor2
echo "
auto lo
iface lo inet loopback
auto enp1s0
auto enp9s0
# The primary network interface
#allow-hotplug enp1s0
iface enp1s0 inet static
address 10.220.170.152
netmask 255.255.255.0
gateway 10.220.170.94
iface enp9s0 inet static
address 192.168.122.22 netmask 255.255.255.0
gateway 192.168.122.1
" > /etc/network/interfaces
23.1 StreisandEffect/streisand: Streisand sets up a new server running your choice of WireGuard, OpenConnect, OpenSSH, OpenVPN, Shadowsocks, sslh, Stunnel, or a Tor bridge. It also generates custom instructions for all of these services. At the end of the run you are given an HTML file with instructions that can be shared with friends, family members, and fellow activists.
docker pull adguard/adguardhome
sudo docker stop adguardhome
sudo docker rm adguardhome
sudo docker run --name adguardhome -v /my/own/workdir:/opt/adguardhome/work -v /my/own/confdir:/opt/adguardhome/conf --net=host -p 67:67/udp -p 80:80/tcp -p 443:443/tcp -p 853:853/tcp -p 3000:3000/tcp -d adguard/adguardhome
25.2 panr/hugo-theme-hello-friend: Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
- osx
sudo rm -rf /Library/Ruby/
sudo chown $USER /Library/Ruby/
gem install bundler jekyll
ruby-bundle install
26.1 docker-slim/docker-slim: DockerSlim (docker-slim): Don’t change anything in your Docker container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
28.1 jesseduffield/horcrux: Split your file into encrypted fragments so that you don’t need to remember a passcode
30.1 TMSU
32.1 nicolargo/glances: Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
sh <(curl https://nixos.org/nix/install) --daemon
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
ln -s ~/.config/nixpkgs/darwin/ ~/.nixpkgs
sudo launchctl stop org.nixos.nix-daemon
sudo launchctl start org.nixos.nix-daemon