In order to use sdk command
https://github.com/reitzig/sdkman-for-fish
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
| #- iTerm | |
| # https://iterm2.com/ | |
| # iterm2 colors gallery: https://iterm2colorschemes.com | |
| # save the color scheme you want as XXXX.itermcolors | |
| # Import the color scheme(s) you wish | |
| # Settings -> Profiles -> Default -> colors -> Color Presets -> Import... | |
| #- Fish | |
| brew install fish |
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
| brew install n | |
| mkdir ~/n | |
| set -xg N_PREFIX ~/n/ | |
| fish_add_path ~/n/bin/ # fish 3.2.0 | |
| n lts | |
| n | |
| node -v |
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
| [core] | |
| editor = vim | |
| [color] | |
| # Enable colors in color-supporting terminals | |
| ui = auto | |
| [color "diff"] | |
| frag = cyan | |
| new = green | |
| commit = yellow | |
| [color "branch"] |
- https://shop.blackroll.com/collections/foam-rollers/products/blackroll-med
- https://www.amazon.de/Blackroll-Selbstmassagerolle-MED-wei%C3%9F-gr%C3%BCn/dp/B00NJIPY1U/ref=sr_1_5?keywords=blackroll+med&qid=1568463191&s=gateway&sr=8-5
There are other brands as well and you can buy it on Amazon, the Blackroll "Med" is softer than the standard one which is good for a start, as the harder one will be too painful and it can lead to you quitting it all together
The main use of the roll is that you stretch the Fascia band in your legs which allows you to use your muscles more and release the stress on the knee, you can google for more info about Fascia band
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
| docker volume create mysql_5_7 | |
| docker run -d --name=mysql_5_7 -e MYSQL_ROOT_PASSWORD=root1234 -p 3306:3306 -v mysql_5_7:/var/lib/mysql mysql:5.7 --sql-mode="" | |
| docker run --name memcached -p 11211:11211 -d memcached |
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
| # listing directories with the largest size | |
| du -hs */ | sort -hr | |
| # deleting files in a directory with lots of files | |
| ls -p| head -10000 | xargs rm -- | |
| #deleting folders in directory with lots of folders | |
| ls -p| head -10000 | xargs rm -rf -- |
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
| # Docker setup | |
| docker volume create postgres_volume | |
| docker run --name pg-docker -d -p 5432:5432 -v postgres_volume:/var/lib/postgresql/data -e POSTGRES_PASSWORD=docker postgres | |
| docker exec -it pg-docker bash | |
| su - postgres | |
| psql | |
| create role my-app with createdb login password 'password'; | |
| #in database.yml | |
| host: 0.0.0.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
| #List all indices: | |
| curl 'localhost:9200/_cat/indices?v' | |
| #List all aliases: | |
| curl 'localhost:9200/_cat/aliases?v' | |
| #Delete an index | |
| curl -XDELETE 'http://localhost:9200/index_name/' |
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
| #Find a file in directory and sort by date modified (logs updated for example) | |
| find ./ -name "file_name" -printf "%T+\t%p\n" | sort -r | |
| #Monitor the HTTP requests coming out of shell | |
| tcpflow -p -c -i en0 port 80 | grep -oE '(GET|POST|HEAD) .* HTTP/1.[01]|Host: .*' | |
| #or | |
| httpry -i en0 |
NewerOlder