This file contains hidden or 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 | |
docker pull docker.elastic.co/kibana/kibana:7.2.0 | |
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.2.0 | |
docker run --name some-elastic -e 'discovery.type=single-node' -d --restart always -p 9200:9200 docker.elastic.co/elasticsearch/elasticsearch:7.2.0 | |
docker run --name some-kibana -d --restart always --link some-elastic:elasticsearch -p 5601:5601 docker.elastic.co/kibana/kibana:7.2.0 |
This file contains hidden or 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
# ~/.config/fish/config.fish | |
set -gx GOPATH /home/lala/workspace/go | |
set -gx PATH $PATH /usr/local/go/bin $GOPATH/bin | |
function fish_prompt | |
set_color --bold $fish_color_cwd | |
echo -n (prompt_pwd) | |
set_color normal | |
echo -n ' > ' |
This file contains hidden or 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 | |
ssh -D 1080 -N user@proxy-server & # The & won't work with password authentication | |
PROXY_PID="$!" | |
curl -x socks5://localhost:1080 https://google.com | |
kill -TERM "$PROXY_PID" |
This file contains hidden or 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
# WinKey | |
set $mod Mod4 | |
# Set resulotion | |
exec "xrandr --output eDP-1 --mode 1600x900" | |
# Set background | |
exec "feh --bg-fill /home/assafmo/Pictures/Wallpapers/IMG_20180929_063914.jpg" | |
# Natural scrolling (xinput list -> get device id -> xinput list-props $id -> get libinput Natural Scrolling Enabled id) |
This file contains hidden or 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 | |
DEV=$(mount | grep /media/ | awk '{print $1}') | |
udisksctl unmount -b "$DEV" | |
udisksctl power-off -b "$DEV" |
This file contains hidden or 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
gawk -v FPAT=\'[^,]*|"[^"]*"\' '{print $3}' < test.csv |
This file contains hidden or 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
# Put in ~/.ssh/config | |
Host * | |
ControlMaster auto | |
ControlPath ~/.ssh/%r@%h:%p | |
ControlPersist yes | |
ServerAliveInterval 30 |
This file contains hidden or 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 | |
google-chrome --headless --disable-gpu --print-to-pdf="$PDF_NAME" "$URL" |
This file contains hidden or 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 | |
sudo apt install -y tor | |
# get hostname from /var/lib/tor/ssh/hostname on the server | |
torsocks ssh [email protected] |
This file contains hidden or 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 | |
rfkill block bluetooth |