- User Manager
- User Permission Interface
- User Permission Facebook Login
- Double Check Google Login
- Check User Group Functions
- Home Page
- Images Archive
- Home Movies
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 | |
App::uses("AppModel","Model"); | |
class UserPermission extends AppModel { | |
// PERMISSION STATES | |
const ALLOWED = true; | |
const DENIED = false; |
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
# run as root! | |
yum erase ffmpeg faac libfaac x264 libx264 libvpx -y | |
yum install gcc gcc-c++ automake autoconf libtool nasm git subversion nasm pkgconfig -y | |
export LD_LIBRARY_PATH=/usr/local/lib/ | |
echo /usr/local/lib > /etc/ld.so.conf.d/custom-libs.conf | |
ldconfig | |
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 | |
/* | |
Will patch code inbtween the following blocks | |
##@patch:[email protected] | |
CODE TO BE PATCHED | |
##@patch:[email protected] |
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 | |
class Nmap { | |
public function __contruct() { | |
} |
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
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel -y | |
mkdir /tmp/ffmpeg | |
cd /tmp/ffmpeg | |
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz | |
tar xzvf yasm-1.2.0.tar.gz | |
cd yasm-1.2.0 | |
./configure --prefix=/usr --libdir=/usr/lib64 # or ./configure --prefix=/usr if on a 32-bit machine | |
make |
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 php | |
<?php | |
# delete DTT branches | |
# will go through all repos in /home/websites | |
# and ask if you want to delete the branch | |
# will skip master and any branch you are currently on | |
# pass in -y to skip asking and just delete | |
############################################################### |
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 php | |
<?php | |
//path to lib/Cake/Console/cake | |
$cakeShellpath = ""; | |
//path to your default app directory. IE: /home/sites/mysite.com/cake/app | |
// ( So you don't have to add '--app /myapppath' for every call and if you're hosting multiple cake sites under a single installation) | |
$defaultAppPath = ""; |
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/php | |
<?php | |
$i = "/mnt/hgfs/johnhardy/Desktop/test.jpg"; | |
$img = new Imagick($i); | |
$img->setFormat("pdf"); | |
$fh = "/mnt/hgfs/johnhardy/Desktop/test.pdf"; |
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
Hide: | |
defaults write com.apple.finder CreateDesktop -bool false && killall Finder | |
Show: | |
defaults write com.apple.finder CreateDesktop -bool true && killall Finder |
OlderNewer