- import os import fnmatch
def locate_files(search_directory): files = [] for root, dirnames, filenames in os.walk(search_directory): for image in fnmatch.filter(filenames, '*.sh'): images.append(os.path.join(root, image)) return images
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
export DBNAME=openvbx | |
export DBUSER=openvbx | |
export DBPASS=openvbxPass |
#!/bin/bash | |
# $1 : OpenVPN Config File | |
# $2 : Astaro .apc to create | |
# $3 : username | |
# $4 : password | |
if [ $# -lt 2 ] || [ $# -gt 4 ] | |
then | |
echo | |
echo Usage: |
<?php | |
date_default_timezone_set("UTC"); | |
$handle = new PDO("sqlite::memory:"); | |
$handle->setAttribute( | |
PDO::ATTR_ERRMODE, | |
PDO::ERRMODE_EXCEPTION | |
); |
def locate_files(search_directory): files = [] for root, dirnames, filenames in os.walk(search_directory): for image in fnmatch.filter(filenames, '*.sh'): images.append(os.path.join(root, image)) return images
import os | |
import fnmatch | |
def locate_files(search_directory): | |
files = [] | |
for root, dirnames, filenames in os.walk(search_directory): | |
for file in fnmatch.filter(filenames, '*.sh'): | |
files.append(os.path.join(root, file)) | |
return files |
I hereby claim:
To claim this, I am signing this object:
^([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))-([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$ |
/* | |
Fade content bs-carousel with hero headers | |
Code snippet by maridlcrmn (Follow me on Twitter @maridlcrmn) for Bootsnipp.com | |
Image credits: unsplash.com | |
*/ | |
/********************************/ | |
/* Fade Bs-carousel */ | |
/********************************/ | |
.fade-carousel { |
git init --bare $HOME/.cfg | |
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' | |
config config --local status.showUntrackedFiles no | |
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc |