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
The MIT License (MIT) | |
Copyright (c) 2013 wackoen | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
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
The MIT License (MIT) | |
Copyright (c) 2013 wackoen | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
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/perl -w | |
## | |
# | |
# Generate mac address | |
# | |
## | |
for ($i=0;$i<5;$i++){$m[$i]=int(rand(256));} printf "02:%X:%X:%X:%X:%X\n",@m; |
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/perl -w | |
## | |
# | |
# Generate mac address | |
# | |
## | |
for ($i=0;$i<5;$i++){$m[$i]=int(rand(256));} printf "02:%X:%X:%X:%X:%X\n",@m; |
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
# phpMyAdmin default Apache configuration | |
Alias /dbadmin /var/www/dbadmin | |
<Directory /var/www/dbadmin> | |
Options FollowSymLinks | |
DirectoryIndex index.php | |
<IfModule mod_php5.c> | |
AddType application/x-httpd-php .php |
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
#!/bin/bash | |
## | |
# | |
# @package Localhost Port Forwarder | |
# Allow access private server behind firewall | |
# | |
# @todo | |
# + Server config save | |
# + Multiple server port | |
# + Switch port forward type L - Local Port R - Remote Port |
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
#!/bin/bash | |
c=5 # seconds to wait | |
REWRITE="\e[25D\e[1A\e[K" | |
echo "Starting..." | |
while [ $c -gt 0 ]; do | |
c=$((c-1)) | |
sleep 1 | |
echo -e "${REWRITE}Backup Bola..$c" | |
done |
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
#!/bin/bash | |
SERVER=db2 | |
PORT=3306 | |
(echo > /dev/tcp/$SERVER/$PORT) | |
if [ "$?" -ne 0 ]; then | |
echo "Connection to $SERVER on port $PORT failed" | |
/etc/init.d/mysql stop | |
/etc/init.d/mysql bootstrap | |
exit 1 |
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
# Sample centos xen config file | |
vcpus = '2' | |
memory = '2046' | |
# | |
# Disk device(s). | |
# | |
# Comment 'file:/home/freakie/CentOS-7-x86_64-Minimal-1611.iso,hdc:cdrom,r' after installation complete | |
disk = [ |
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
#!/bin/bash | |
# You can override config options very easily. | |
# Just create a custom options file; it may be version specific: | |
# - custom-options.sh | |
# - custom-options-5.sh | |
# - custom-options-5.3.sh | |
# - custom-options-5.3.1.sh | |
# | |
# Don't touch this file here - it would prevent you to just "svn up" | |
# your phpfarm source code. |
OlderNewer