mongo_backup.sh
#!/bin/bash
set -e
URI=mongodb://user:password@0.0.0.0:27017
<!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> |
#!/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 |