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
apt install -y apt install rsync nload htop iotop lynx curl \ | |
lm-sensors screen ncdu jq lbzip2 pigz unzip s-tui ethtool build-essential \ | |
smartmontool hddtemp lmsensor | |
# for stretch | |
# python-pip | |
# pip install s-tui |
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 bash | |
function isRoot() { | |
if [ "$EUID" -ne 0 ]; then | |
return 1 | |
fi | |
} | |
if ! isRoot; then | |
echo "Sorry, you need to run this as root" |
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
apt install -y apt install rsync nload htop iotop lynx curl \ | |
lm-sensors screen ncdu jq lbzip2 pigz unzip s-tui ethtool build-essential \ | |
smartmontool hddtemp lmsensor | |
# for stretch | |
# python-pip | |
# pip install s-tui |
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
location ~ ^/wp-content/uploads/(.*) { | |
if (!-f $request_filename) { | |
rewrite ^/wp-content/uploads/(.*)$ http://EXTERNAL_URL/wp-content/uploads/$1 redirect; | |
} | |
} |
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 | |
$indicesServer = array('PHP_SELF', | |
'argv', | |
'argc', | |
'GATEWAY_INTERFACE', | |
'SERVER_ADDR', | |
'SERVER_NAME', | |
'SERVER_SOFTWARE', | |
'SERVER_PROTOCOL', |
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
# Install Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Install nvm | |
brew install nvm | |
# Export nvm environment | |
export NVM_DIR="$HOME/.nvm" | |
. "$(brew --prefix nvm)/nvm.sh" |
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 | |
/* | |
One wp-config for local development to staging to production. | |
*/ | |
// Define Environments | |
$environments = array( |
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/python | |
import Image | |
#_______________________________________________________load image/create 'canvas' | |
source = Image.open("test26.jpg") | |
img = source.load() | |
print source.format |
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/python | |
import Image | |
#Created by vvdr12 | |
#Fully open license. Have fun. | |
#change threshold value in 'def contrastpoints' for higher/lower line density. | |
#put a 'test.jpg' file in the same folder as the code. | |
#_functions______________________________________________ |
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 | |
date_default_timezone_set( 'America/New_York' ); | |
// Load the WordPress Environment | |
define( 'WP_DEBUG', true ); /* uncomment for debug mode */ | |
require('./wp-load.php'); | |
// User functions | |
//require('./wp-admin/includes/user.php'); | |
// Debugging |
NewerOlder