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 | |
function launch_script() | |
{ | |
echo "launching ${@:1}" | |
nohup run-process.sh ${@:1} 1>> /tmp/scripts.log 2>>/tmp/crashes.log & | |
} | |
function wait_process() | |
{ |
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 | |
VAR_DIR=/tmp/processes | |
LOCK_DIR=$VAR_DIR/lock | |
LOG_DIR=$VAR_DIR/log | |
mkdir -p $LOCK_DIR | |
mkdir -p $LOG_DIR | |
LOCK_FILE=$LOCK_DIR/$2-$$.lock |
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
<?php | |
namespace App\Controller; | |
use Slim\Http\Request; | |
use Slim\Http\Response; | |
class Home | |
{ | |
/** | |
* @param Request $request |
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
alias fuck='sudo $(fc -ln -1)' | |
alias _=sudo | |
alias upgrade='sudo apt-get update && sudo apt-get upgrade' | |
alias indian-date='TZ=Asia/Calcutta date' | |
alias clean='git st > file-to-remove && xargs rm -Rf < file-to-remove' |
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
#!/usr/bin/env python3 | |
import argparse | |
import json | |
import os | |
import sys | |
from shutil import which | |
if which('rclone') is None: |