From e6d9a8d26e15d4f9dbba92470676b85cc55c5fad Mon Sep 17 00:00:00 2001 From: Matt Burchett Date: Thu, 19 Feb 2015 18:29:17 -0800 Subject: [PATCH] Made some clean changes. --- minecraft/REAMDE.md | 1 + minecraft/texture-packs/getpacks.sh | 24 +++++++++++++++ pidgin/README.md | 1 + web-manage/README.md | 1 + web-manage/nginx/wp-nginx-lock.sh | 46 +++++++++++++++++++++++++++++ web-manage/nginx/wp-nginx-unlock.sh | 46 +++++++++++++++++++++++++++++ windows/README.md | 1 + windows/time-fix/README.md | 1 + windows/time-fix/time.reg | 4 +++ 9 files changed, 125 insertions(+) create mode 100644 minecraft/REAMDE.md create mode 100755 minecraft/texture-packs/getpacks.sh create mode 100644 pidgin/README.md create mode 100644 web-manage/README.md create mode 100755 web-manage/nginx/wp-nginx-lock.sh create mode 100755 web-manage/nginx/wp-nginx-unlock.sh create mode 100644 windows/README.md create mode 100644 windows/time-fix/README.md create mode 100755 windows/time-fix/time.reg diff --git a/minecraft/REAMDE.md b/minecraft/REAMDE.md new file mode 100644 index 0000000..2af6a2a --- /dev/null +++ b/minecraft/REAMDE.md @@ -0,0 +1 @@ +Various Minecraft tweaks diff --git a/minecraft/texture-packs/getpacks.sh b/minecraft/texture-packs/getpacks.sh new file mode 100755 index 0000000..571616b --- /dev/null +++ b/minecraft/texture-packs/getpacks.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +if [ -z "`ls | grep -v *.sh | grep SKYFALL`" ] +then + +echo 'No SKYFALL Textures Detected, downloading ...';echo; +for file in $(curl -s minecraft.skyfallgames.com/current/ | + grep href | + sed 's/.*href="//' | + sed 's/".*//' | + grep '^[a-zA-Z].*'); do +echo $file; curl -# -O http://minecraft.skyfallgames.com/current/$file +done + +else +echo 'SKYFALL Textures Detected, updating ...';echo; +for file in $(curl -s minecraft.skyfallgames.com/current/ | + grep href | + sed 's/.*href="//' | + sed 's/".*//' | + grep '^[a-zA-Z].*'); do + echo $file; curl -z $file -# -O http://minecraft.skyfallgames.com/current/$file +done +fi diff --git a/pidgin/README.md b/pidgin/README.md new file mode 100644 index 0000000..4eb9071 --- /dev/null +++ b/pidgin/README.md @@ -0,0 +1 @@ +Various Pidgin Plugins/Tweaks diff --git a/web-manage/README.md b/web-manage/README.md new file mode 100644 index 0000000..30cc692 --- /dev/null +++ b/web-manage/README.md @@ -0,0 +1 @@ +Various Web Management Scripts diff --git a/web-manage/nginx/wp-nginx-lock.sh b/web-manage/nginx/wp-nginx-lock.sh new file mode 100755 index 0000000..80759f7 --- /dev/null +++ b/web-manage/nginx/wp-nginx-lock.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +if [ -z "$1" ] +then + echo "Usage: ./wp-nginx-lock.sh [site name]" + echo "Parameters: ./wp-nginx-lock -h for help" + exit +fi + +if [ $1 == "-h" ] +then + echo "wp-nginx-lock.sh help:" + echo "" + echo "Usage: ./wp-nginx-lock.sh [site name] [parameter] [parameter-setting]" + echo "" + echo "[site name] is the htdocs folder name ie [/srv/http/www.example.com]" + echo "" + echo "Parameters must be specified in parameter section with the destination in parameter-setting." + echo "" + echo "-d, destination pre-htdocs folder [default is /srv/http]" +fi + +if [ -z "$2" ] +then + SRV=/srv/http +else + if [ -z "$3" ] + then + echo "You can't pass -d without a parameter parameter." + echo "Usage: ./wp-nginx-lock.sh www.example.com -d /srv/html" + exit + else + SRV=$3 + fi +fi + +echo "Checking for a valid wordpress instance..." + +if [ -f "$SRV/$1/wp-login.php" ] +then + echo "Valid Wordpress Instance Found, locking..." + chown -R root:root $SRV/$1/* +else + echo "No valid wordpress instance found. Exiting ..." + exit +fi diff --git a/web-manage/nginx/wp-nginx-unlock.sh b/web-manage/nginx/wp-nginx-unlock.sh new file mode 100755 index 0000000..3d1cb8c --- /dev/null +++ b/web-manage/nginx/wp-nginx-unlock.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +if [ -z "$1" ] +then + echo "Usage: ./wp-nginx-unlock.sh [site name]" + echo "Parameters: ./wp-nginx-unlock -h for help" + exit +fi + +if [ $1 == "-h" ] +then + echo "wp-nginx-unlock.sh help:" + echo "" + echo "Usage: ./wp-nginx-unlock.sh [site name] [parameter] [parameter-setting]" + echo "" + echo "[site name] is the htdocs folder name ie [/srv/http/www.example.com]" + echo "" + echo "Parameters must be specified in parameter section with the destination in parameter-setting." + echo "" + echo "-d, destination pre-htdocs folder [default is /srv/http]" +fi + +if [ -z "$2" ] +then + SRV=/srv/http +else + if [ -z "$3" ] + then + echo "You can't pass -d without a parameter parameter." + echo "Usage: ./wp-nginx-unlock.sh www.example.com -d /srv/html" + exit + else + SRV=$3 + fi +fi + +echo "Checking for a valid wordpress instance..." + +if [ -f "$SRV/$1/wp-login.php" ] +then + echo "Valid Wordpress Instance Found, unlocking..." + chown -R www-data:www-data $SRV/$1/* +else + echo "No valid wordpress instance found. Exiting ..." + exit +fi diff --git a/windows/README.md b/windows/README.md new file mode 100644 index 0000000..5f3f41b --- /dev/null +++ b/windows/README.md @@ -0,0 +1 @@ +Various Windows Fixes diff --git a/windows/time-fix/README.md b/windows/time-fix/README.md new file mode 100644 index 0000000..196d1dd --- /dev/null +++ b/windows/time-fix/README.md @@ -0,0 +1 @@ +This will set Windows to use UTC time for 64-bit machines, rather than localtime. This keeps the Windows clock from being set to the UTC time every time you boot into Linux. diff --git a/windows/time-fix/time.reg b/windows/time-fix/time.reg new file mode 100755 index 0000000..79ba62e --- /dev/null +++ b/windows/time-fix/time.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] + "RealTimeIsUniversal"=dword:00000001 \ No newline at end of file