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
| sudo rm /etc/apt/sources.list.d/nodesource.list | |
| sudo curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - | |
| sudo apt install -y nodejs | |
| sudo 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
| kill $(ps aux | grep 'master.js' | awk '{print $2}') |
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
| /toocamp_*_dispos_live/_update_by_query | |
| ```json | |
| { | |
| "query": { | |
| "exists": { | |
| "field": "raw_data" | |
| } | |
| }, | |
| "script": { |
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
| rsync -av -e ssh --exclude='*.log' ~/virt/ destination:/tmp |
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
| alias y=yarn | |
| alias l='ls -la' | |
| alias rn=react-native | |
| alias egit="git --git-dir=.gitenyo" | |
| alias cgit="git --git-dir=.gitclient" | |
| alias g='git' | |
| alias get='git' |
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 | |
| CHANNEL="#devops" | |
| USERNAME="tamea" | |
| EMOJI=":ghost:" | |
| HOOK=<slack hook url> | |
| MSG=$1 | |
| PAYLOAD="payload={\"channel\": \"$CHANNEL\", \"username\": \"TAMEA SERVER - $USERNAME\", \"text\": \"$MSG\", \"icon_e$ |
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/zsh | |
| echo "making commits from $1 anonymous" | |
| export OLD_EMAIL=$1 | |
| export CORRECT_NAME="Enyosolutions" | |
| export CORRECT_EMAIL="new@Email.com" | |
| echo $OLD_EMAIL |
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
| sudo su | |
| sudo apt update | |
| sudo apt install -y nano curl wget nginx letsencrypt fail2ban | |
| sudo apt install mysql-common mysql-server -y | |
| mysql_secure_installation | |
| systemctl start mysql | |
| systemctl enable mysql |
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
| sudo -i -u postgres | |
| psql |
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
| sudo -i -u postgres | |
| psql | |
| CREATE DATABASE "db_name"; | |
| CREATE USER "your_user" WITH ENCRYPTED PASSWORD 'XXXXXXXX'; | |
| GRANT ALL PRIVILEGES ON DATABASE "db_name" TO "your_user"; | |
| GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "your_user"; | |
| GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO "your_user"; | |
| GRANT ALL PRIVILEGES ON ALL FUNCTIONS IN SCHEMA public TO "your_user"; |
NewerOlder