docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=SECRET_PASSWORD_123 -v F:\DockerVolumes\postgres\data:/var/lib/postgresql/data:rw -d postgres
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
import bson | |
from pymongo import MongoClient | |
def dump(collections, conn, db_name, path): | |
""" | |
MongoDB Dump |
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
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 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
const path = require('path') | |
const winston = require('winston') | |
const LOG_DIR = path.join(path.dirname(path.dirname(__filename)), 'logs') | |
const consoleLogFormat = winston.format.combine( | |
winston.format.timestamp({format: 'DD/MM/YYYY HH:mm:ss'}), | |
winston.format.colorize(), | |
winston.format.printf(({level, message, label, timestamp}) => { | |
return `${timestamp} ${label ? `[${label}] ` : ''}${level}: ${message}`; |
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
. /etc/update-motd.d/50-landscape-sysinfo
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
setInterval(() => { | |
document.querySelectorAll(".circular.style-scope.yt-icon-button")[12].click(); | |
document.querySelectorAll(".style-scope.ytd-menu-popup-renderer")[3].click(); | |
}, 500); |
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
#!/bin/bash | |
# enable color support of ls | |
if [ -x /usr/bin/dircolors ]; then | |
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
alias ls='ls --color=auto' | |
alias dir='dir --color=auto' | |
alias vdir='vdir --color=auto' | |
alias grep='grep --color=auto' |
1. Install and start mongo service [official docs]
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
NewerOlder