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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#get coupons from skycart | |
select * from coupons c WHERE c.coupon_type = 'G' AND c.coupon_id NOT IN (SELECT coupon_id FROM coupon_redeem_track) | |
#SELECT * from customers c, coupon_gv_customer cgc WHERE c.customers_id = cgc.customer_id |
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
Magento Grab Database: | |
mysqldump --routines -u root -p db_name -h 127.0.0.1 --lock-tables=false --single-transaction | gzip -9 > db_name.sql.gz | |
#see what CVE's are fixed | |
rpm -q --changelog openssh | grep CVE | |
rpm -q --changelog openssl | grep CVE-2014-0160 | |
#master process listening on 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
<?php | |
//faster using strpos | |
$staging_subdomains = array( | |
's1', | |
's2', | |
's3', | |
's4', | |
's5', | |
'mac', | |
'local', |
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
enquiries: enquiries | |
shop: shop | |
# to make the e-mails also get pushed to someone else, add a list of comma seperated email address | |
#ie: enquiries: enquiries, [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
[email protected] shop | |
[email protected] enquiries | |
@DOMAINNAME.com enquiries |
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
myhostname = mail.SERVERNAME.com | |
mydomain = SERVERNAME.com | |
inet_interfaces = all | |
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain | |
mynetworks_style = host | |
#Then add the following to the same file: | |
smtpd_sasl_auth_enable = yes | |
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination,reject_non_fqdn_recipient | |
smtpd_sasl_security_options = noanonymous |
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
auth default { | |
mechanisms = plain login | |
passdb pam { | |
} | |
userdb passwd { | |
} | |
socket listen { | |
client { | |
path = /var/spool/postfix/private/auth | |
mode = 0660 |
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
SSLCertificateFile /usr/local/ssl/server.crt | |
SSLCertificateKeyFile /usr/local/ssl/server.key | |
SSLProtocol -all +TLSv1 +SSLv3 | |
SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM |
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
<select id="country" name="country"> | |
<option value="" selected="selected"></option> | |
<option value="Afghanistan">Afghanistan</option> | |
<option value="Albania">Albania</option> | |
<option value="Algeria">Algeria</option> | |
<option value="Andorra">Andorra</option> | |
<option value="Antigua and Barbuda">Antigua and Barbuda</option> | |
<option value="Argentina">Argentina</option> | |
<option value="Armenia">Armenia</option> | |
<option value="Australia">Australia</option> |
NewerOlder