Skip to content

Instantly share code, notes, and snippets.

@zero-master
zero-master / SHORTCUTS
Created April 3, 2013 12:46
Centmin Mod install created command short cuts outlined here to allow you to quickly edit your /usr/local/lib/php.ini file and your /usr/local/etc/php-fpm.conf file. Full list of command shortcuts below:
Centmin Mod install created command short cuts outlined here to allow you to quickly edit your /usr/local/lib/php.ini file and your /usr/local/etc/php-fpm.conf file. Full list of command shortcuts below:
Edit php.ini = phpedit ( /usr/local/lib/php.ini )
Edit my.cnf = mycnf ( /etc/my.cnf )
Edit php-fpm.conf = fpmconf ( /usr/local/etc/php-fpm.conf )
Edit nginx.conf = nginxconf ( /usr/local/nginx/conf/nginx.conf )
Edit (nginx) virtual.conf = vhostconf - only edits /usr/local/nginx/conf/conf.d/virtual.conf not the additional vhost domain.com.conf files added later
Edit (nginx) php.conf = phpinc ( /usr/local/nginx/conf/php.conf )
Edit (nginx) drop.conf = dropinc ( /usr/local/nginx/conf/drop.conf )
Edit (nginx) staticfiles.conf = statfilesinc ( /usr/local/nginx/conf/staticfiles.conf )
@zero-master
zero-master / One More IP
Created April 3, 2013 12:45
Adding Addition IP to OVH
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1
nano /etc/sysconfig/network-scripts/ifcfg-eth0:1
DEVICE="eth0:1"
BOOTPROTO="static"
IPADDR="142.4.223.247"
@zero-master
zero-master / Prosper202 Offer Rotator and Tracker
Created April 3, 2013 12:44
Prosper202 Offer Rotator and Tracker
<?php
/*
-------------------------------------------------------------------------------------------------
Offer Link Rotation Script
Last edit: 2/25/2010
http://www.ctrtard.com
This script is designed to work with Prosper202
Parts ripped from Wes's landing page rotation script
@zero-master
zero-master / Facebook Iframe Breaker and Redirector
Created April 3, 2013 12:40
Facebook Iframe Breaker and Redirector
<script type="text/javascript">
if (top != self) top.window.location = 'http://URL-OF-DESTINATION-TAB';
</script>