23 Jan 2012
Command | Description |
---|---|
csf -s | Start the firewall rules |
csf -f | Flush/Stop firewall rules (note: lfd may restart csf) |
# Rsync EXCLUDE configuration to [email protected]:public_html | |
# test drive, remove n to actually sync | |
# I - ignore time, c - checksum, grep to exclude unchanged files | |
# rsync -aniIc --exclude-from=.exclude.rsync ./ [email protected]:public_html/ | grep -v "^\." | |
# Not needed on live: | |
.git* | |
sites/all/drush | |
.exclude.rsync |
# Ignore configuration files that may contain sensitive information. | |
sites/*/settings*.php | |
# Ignore paths that contain user-generated content. | |
sites/*/files | |
sites/*/private | |
# Ignore .htaccess | |
# changed for server security, Options +SymLinksifOwnerMatch | |
#.htaccess |
#!/bin/bash | |
# | |
# Usage: | |
# Just copy the following line to your terminal and it will autostart and | |
# remove itself afterwards | |
# | |
# wget -q https://gist.github.com/macmladen/1c5a6fdc57bf184b24d6/raw/no-ghost.sh ; bash no-ghost.sh | |
# | |
# Author: MacMladen @MacMladen ([email protected]) | |
# 2015.01.28 |
// Find events on element http://stackoverflow.com/a/2519061/1099667 | |
// initially with alert() but changed to console.log() | |
// jQuery 1.8+ | |
$.each($("#element").data("events"), function(i, e) { | |
alert(i); | |
}); | |
//jQuery 1.4+ | |
$.each($("#element").data("events"), function(i, event) { | |
console.log(i); | |
$.each(event, function(j, h) { |
23 Jan 2012
Command | Description |
---|---|
csf -s | Start the firewall rules |
csf -f | Flush/Stop firewall rules (note: lfd may restart csf) |
# /dir/ means exclude the root folder /dir | |
# /dir/* means get the root folder /dir but not the contents | |
# dir/ means exclude any folder anywhere where the name contains dir/ | |
# Examples excluded: /dir/, /usr/share/mydir/, /var/spool/dir/ | |
# /dir means exclude any folder anywhere where the name contains /dir | |
# Examples excluded: /dir/, /usr/share/directory/, /var/spool/dir/ | |
# /var/spool/lpd//cf means skip files that start with cf within any folder within /var/spool/lpd | |
# | |
# include, + | |
# exclude, - |
All versions download available at: https://archive.apache.org/dist/lucene/solr/
Java available at: http://java.com/en/download/index.jsp
Solr 4.10 - requires Java 7, compatible with Java 8
# A sample Guardfile based on Omega 4.x and init result | |
# More info at https://github.com/guard/guard#readme | |
# for this file to work you need some gem-s | |
# copy the following without hashtag to Gemfile: | |
# source 'https://rubygems.org' | |
# | |
# group :development do | |
# | |
# # Sass, Compass and extensions. |
Barracuda [Mon Jul 28 13:03:10 UTC 2014] ==> BOA Skynet welcomes you aboard! | |
Barracuda [Mon Jul 28 13:03:15 UTC 2014] ==> INFO: UPGRADE | |
Barracuda [Mon Jul 28 13:03:15 UTC 2014] ==> INFO: Reading your /root/.barracuda.cnf config file | |
Barracuda [Mon Jul 28 13:03:16 UTC 2014] ==> NOTE! Please review all config options displayed below | |
Barracuda [Mon Jul 28 13:03:16 UTC 2014] ==> NOTE! It will *override* all settings in the Barracuda script | |
Barracuda [Mon Jul 28 13:03:16 UTC 2014] ==> Legacy PHP-CLI 5.2 is not used on this system | |
Barracuda [Mon Jul 28 13:03:16 UTC 2014] ==> Legacy PHP-FPM 5.2 is not used on this system |
# .htaccess: | |
AuthName "Restricted Area" | |
AuthType Basic | |
AuthUserFile /home/gamasup/.htpasswd | |
AuthGroupFile /dev/null | |
require valid-user | |
# .htpasswd: | |
a:fNU9ioFLlnGn6 |