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 kill -9 $(sudo lsof -t -i:9001) |
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
| var MongoClient = require('mongodb').MongoClient; | |
| var DbConnection = function () { | |
| var db = null; | |
| var instance = 0; | |
| async function DbConnect() { | |
| try { | |
| let url = 'mongodb://myurl.blablabla'; |
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
| export PATH=/opt/homebrew/bin:$PATH |
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
| To change permission of folder: | |
| - sudo chmod -R 777 node_module |
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
| name: Lighthouse Check | |
| on: [pull_request] | |
| jobs: | |
| lighthouse-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - run: mkdir /tmp/artifacts | |
| - name: Run Lighthouse |
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
| version: "3" | |
| services: | |
| finance_sql: | |
| container_name: tx_sqlserver | |
| restart: "always" | |
| image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu | |
| environment: | |
| SA_PASSWORD: "P@ssw0rd" | |
| ACCEPT_EULA: "Y" | |
| MSSQL_PID: "Express" |
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
| version: "3" | |
| services: | |
| tx_postgres: | |
| container_name: tx_postgres | |
| restart: always | |
| image: mdillon/postgis:11-alpine | |
| volumes: | |
| - ./data-dir:/var/lib/postgresql/data | |
| ports: | |
| - "5432:5432" |
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 -i pemFile.pem userName@ipv6 |
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 COMMANDS: | |
| 1. List all docker containers | |
| - COMMAND: docker ps -a | |
| 2. Docker logs | |
| - COMMANDS: docker logs [OPTIONS] CONTAINER | |
| 3. To remove all docker containers: | |
| - COMMAND: docker system prune -a --volumes | |
| - WARNING! This will remove: |
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
| To start fresh agent: eval "$(ssh-agent -s)" | |
| Root ssh path: ssh-add ~/.ssh/limbik_key |