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
# dump database and files | |
mysqldump -u user database > ~/database.sql | |
tar -zcvf ~/backup.tar.gz database.sql /var/www/sitefolder | |
rm ~/database.sql |
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 | |
if [ "$#" -gt 0 ]; | |
then | |
echo "using $1 as domain;" | |
else | |
echo -e "usage: $0 [site domain] [database name:database password]\ne.g. $0 domain.org database:password" | |
exit | |
fi |
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 | |
# This script will forward internet connection over redsocks proxy | |
# - Install redsocks and make it listen to any IP | |
# - Setup Wifi AP or ETH connection and DHCP server | |
# - Connect to ssh with -D 1080 parameter or start tor on port 1080 | |
# - Run the script | |
INTERNET_INTERFACE=wlan0 | |
SUBNET_INTERFACE=wlan1 |
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
<?php | |
set_time_limit(500); | |
function Zip($source, $destination) | |
{ | |
if (!extension_loaded('zip') || !file_exists($source)) { | |
return false; | |
} |
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 | |
# author Marek Vavrecan ([email protected]) | |
# show usage | |
[ $# -eq 0 ] && { echo "Usage: $0 [apk path] [source namespace] [target namespace]"; exit 1; } | |
APK_PATH="$1" | |
NAMESPACE_FROM="$2" | |
NAMESPACE_TO="$3" |
NewerOlder