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
# Nerd Fonts for your IDE | |
# https://www.nerdfonts.com/font-downloads | |
brew tap homebrew/cask-fonts && brew install --cask font-3270-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-fira-mono-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-go-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-lgc-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-monofur-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-overpass-nerd-font |
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
## Email settings | |
smtp_server="smtps://smtp.gmail.com:465" | |
from_email="[email protected]" | |
user_acc="[email protected]" | |
user_pass="pass" | |
mail_subject="Subject" | |
login_url="reset-link" | |
mail_template_text="Hello!\n Please use this link to set a new password.\n ${login_url} \n" |
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debugg by PID", | |
"type": "node", | |
"processId": "43776", |
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
alias robo='/home/user/Загрузки/robomongo-0.9.0-linux-x86_64-0786489/bin/robomongo' | |
alias d='cd ~; cd Desktop' | |
alias sht='gnome-screenshot --interactive' | |
alias krak='setsid /usr/share/gitkraken/gitkraken' | |
alias goog='setsid /usr/bin/google-chrome-stable' | |
alias ngrok='cd ~/Downloads; ./ngrok' | |
alias wk='cd ~/Desktop/work' | |
# Git | |
alias gad='git add' |
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
// Remove all the containers that end with '_data': | |
docker rm $(docker ps -a | grep "_data" | awk 'NR>1 {print $1}') | |
// show and remove all unused data volumes | |
docker volume ls -qf dangling=true | |
docker volume rm $(docker volume ls -qf dangling=true) |
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 | |
const User = (age, name) => (msg) => { | |
const state = [age, name]; | |
return msg(state) | |
} | |
const getAge = (arr) => arr[0]; | |
const getName = (arr) => arr[1]; | |
const getInfo = (arr) => `${arr[0]} ${arr[1]}`; |
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
let str = "А по морде ведром - опа!"; | |
const isPalindrome = (str) => { | |
const getLetter = (n, list) => { | |
return list[n].toLowerCase(); | |
} | |
const helper = (firstNum, lastNum, list) => { | |
const testExp = /[^a-zA-Za-яА-Я]/; |
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
# colors | |
COLOR_YELLOW=`echo -e "\033[0;33m"` | |
COLOR_GREEN=`echo -e "\033[01;32m"` | |
COLOR_BLUE=`echo -e "\033[01;34m"` | |
COLOR_WHITE=`echo -e "\033[0;37m"` | |
COLOR_RESET=`echo -e "\033[00m"` | |
# Show git repo status | |
export GIT_PS1_SHOWDIRTYSTATE=1 |
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
# Dump | |
mongodump --db somedb | |
# Restore the training database to a new database called training2 | |
mongorestore --db training2 dump/training |
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
mogrify -quality 80% *.jpg | |
-----script---- | |
for file in *.jpg; do | |
convert "$file" -quality 80% "$file" | |
done; |