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 | |
| gdrive_name=gdrive | |
| gdrive_bin=/usr/bin/$gdrive_name | |
| if [ -f $gdrive_name ] ; then | |
| echo "$gdrive_name already existe, probably it's installed..." | |
| exit 0 | |
| else | |
| echo "Downloading Google Drive | Script for Linux x64..." |
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 | |
| gdrive_name=gdrive | |
| gdrive_bin=/usr/bin/$gdrive_name | |
| if [ -f $gdrive_name ] ; then | |
| echo "$gdrive_name already existe, probably it's installed..." | |
| exit 0 | |
| else | |
| echo "Downloading Google Drive | Script for Linux x64..." |
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
| .markdown-body { | |
| font-size: 15px; | |
| line-height: 1.7; | |
| overflow: hidden; } | |
| .markdown-body > *:first-child { | |
| margin-top: 0 !important; } | |
| .markdown-body > *:last-child { | |
| margin-bottom: 0 !important; } | |
| .markdown-body a.absent { | |
| color: #c00; } |
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
| #include <amxmodx> | |
| #include <sockets> | |
| #define MAX_INFO_LEN 1400 | |
| #define MAX_INFO_FORMAT 100 | |
| // A2S_INFO definitions for source according to http://developer.valvesoftware.com/wiki/Server_Queries#Source_servers_2 | |
| #define A2S_INFO "^xFF^xFF^xFF^xFF^x54Source Engine Query^x00" | |
| #define A2S_INFO_LEN 25 |
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
| try { | |
| await db.collection('users').create({ | |
| name, | |
| email, | |
| phone, | |
| password | |
| }) | |
| } catch (error) { | |
| if (error.code == 11000) { | |
| const duplicated = error.match(/index:\s([a-z]+)/i); |
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
| // This file is to register independent modules and dependencies of each entities, usecase, etc. | |
| // | |
| // All this is fiction: | |
| // infrastructure -> External frameworks | |
| // interfaces -> Layer of abstraction of frameworks | |
| // | |
| import serviceLocator from './config/serviceLocator' | |
| serviceLocator.register('webserver', () => { // Generic 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
| const enviroment = {}; | |
| Object.assign(enviroment, process.env); | |
| for (let [key, value] of Object.entries(enviroment)) { | |
| switch (value) { | |
| case "true": | |
| enviroment[key] = true; | |
| break; | |
| case "false": | |
| enviroment[key] = false; |
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
| // Server configuration | |
| sv_cheats 1 | |
| mp_limitteams 0 | |
| mp_autoteambalance 0 | |
| mp_freezetime 0 | |
| mp_roundtime 60 | |
| mp_roundtime_defuse 60 | |
| mp_roundtime_hostage 60 | |
| mp_maxmoney 99999 | |
| mp_startmoney 99999 |
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 | |
| zenity --warning --text="25-minutes pomodoro started!" | |
| sleep 1500 | |
| echo "Good job! finished pomodoro!" >> ~/finish.txt | |
| gedit ~/finish.txt | |
| rm ~/finish.txt |
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 | |
| apt install curl | |
| # | |
| # Writes sources.list in order to add non-free repository | |
| # | |
| DEBIAN_RELEASE=`cat /etc/*-release 2> /dev/null | grep PRETTY_NAME | awk -F "=" {'print $2'} | awk -F "(" {'print $2'} | awk -F ")" {'print $1'}` | |
| sourcesListFile=/etc/apt/sources.list |