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
| const nodemailer = require( "nodemailer" ); | |
| const dotenv = require( "dotenv" ); | |
| dotenv.config(); | |
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
| ssh-keygen -o -t rsa -b 4096 -C "user@email.com" | |
| LINUX COPY CLIPBOARD | |
| xclip -sel clip < ~/.ssh/id_rsa.pub | |
| COPY MANUALLY | |
| cat ~/.ssh/id_rsa.pub |
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
| ////////// default.conf that was working | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name scrumbs.app *.scrumbs.app; | |
| #for certbot challenges (renewal process) | |
| location ~ /.well-known/acme-challenge { | |
| allow all; |
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
| WINDOWS | |
| (for /r %f in (*.extension) do @type "%f") | find /c /v "" | |
| UNIX | |
| find . -name '*.extension' | xargs wc -l |
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 TOTAL DISK SPACE | |
| df -h --total | |
| FIND WHAT IS USING UP SPACE | |
| du -cha --max-depth=1 / | grep -E "M|G" | |
| * this locates the foder - once you find the folder, execute the command against it | |
| du -cha --max-depth=1 /<FOLDER_NAME> | grep -E "M|G" |
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
| ////////////////// Full stack react ////////////////// | |
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 | |
| echo "***** Validating arguments *****" | |
| if [ $# -eq 3 ] | |
| then | |
| echo "Number of arguments is valid." | |
| else | |
| echo "Invalid number of arguments provided!" | |
| echo "Expected: 3" |
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
| const mongoURL = Database.URI || process.env.DATABASE_URI as string; | |
| const mongoOPTIONS = { | |
| useNewUrlParser: true, | |
| autoReconnect: true, | |
| reconnectTries: Number.MAX_VALUE, | |
| bufferMaxEntries: 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
| const tl = new TimelineLite({ | |
| onComplete: () => { | |
| this.projectsContainer.style.display = "none"; | |
| this.addProjectBtn.style.display = "none"; | |
| this.projectsContainer.style.opacity = "1"; | |
| this.addProjectBtn.style.opacity = "1"; | |
| } | |
| }); |
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
| Dependencies: | |
| -> http_post http://acme.com/software/http_post/ | |
| -> oauth_sign http://acme.com/software/oauth_sign/ | |
| Steps to install dependencies: | |
| HTTP_POST | |
| 1. Download | |
| wget http://acme.com/software/http_post/http_post_18May2018.tar.gz |