mongo_backup.sh
#!/bin/bash
set -e
URI=mongodb://user:[email protected]:27017
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "blocks": [ | |
| { | |
| "alignment": "left", | |
| "segments": [ | |
| { | |
| "foreground": "blue", | |
| "properties": { | |
| "fetch_version": false, |
| // npm i axios playwright playwright-core | |
| const playwright = require("playwright"); | |
| const fs = require("fs"); | |
| const path = require("path"); | |
| const axios = require("axios"); | |
| async function scrapeItems(url) { | |
| const browser = await playwright.chromium.launch({ | |
| headless: process.env.NODE_ENV === "production", |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <link | |
| href="https://fonts.googleapis.com/css?family=Roboto:100,300" | |
| rel="stylesheet" | |
| /> | |
| <title>Maintainance Mode On</title> |
mongo_backup.sh
#!/bin/bash
set -e
URI=mongodb://user:[email protected]:27017
| #!/usr/bin/env bash | |
| echo " | |
| ---------------------- | |
| NODE & NPM | |
| ---------------------- | |
| " | |
| # add nodejs LTS ppa (personal package archive) from nodesource | |
| curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - |
| // Create a .bat file and put that file at root of workspace directory | |
| // Result: It will remove all `node_modules` directory from current and sub directories. | |
| FOR /d /r . %%d IN (node_modules) DO @IF EXIST "%%d" rd /s /q "%%d" |
| #!/usr/bin/env bash | |
| echo " | |
| ---------------------- | |
| NODE & NPM | |
| ---------------------- | |
| " | |
| # add nodejs LTS ppa (personal package archive) from nodesource | |
| curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - |
| #!/usr/bin/python | |
| # eg: python tracker-event-bot.py 50 5 0 | |
| # syntax: filename total_sec event_sec shutdown_binary_flag | |
| # shutdown_binary_flag => "0 = no", "> 0 = yes & shutdown after that seconds on end of script" | |
| import sys | |
| from time import sleep | |
| import random | |
| import ctypes | |
| import os | |
| import platform |