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
#!/bin/bash | |
#OpenVPN Installation Script for Ubuntu | |
yesno () { | |
while read line; do | |
case $line in | |
y|Y|Yes|YES|yes|yES|yEs|YeS|yeS) return 1 | |
;; | |
n|N|No|NO|no|nO) return 0 | |
;; | |
*) |
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
#!/bin/bash | |
DBUSER="username"; | |
DBPASS="password"; | |
DBHOST="localhost"; | |
DB_OLD=database | |
DB_NEW=database_new | |
DBCONN="--host=${DBHOST} --user=${DBUSER} --password=${DBPASS}"; |
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
from argparse import ArgumentParser | |
#requires numpy, moviepy, and PIL libraries | |
from moviepy.editor import VideoFileClip | |
from numpy import zeros, array, uint8 | |
from PIL import Image | |
import math | |
def frange(x, y, inc): | |
while x < y: |