This file contains hidden or 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
netstat -anp | grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n |
This file contains hidden or 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
# via http://binarynature.blogspot.com/2013/03/measure-internet-connection-speed-from-linux-command-line.html | |
wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py && chmod +x speedtest-cli && ./speedtest-cli |
This file contains hidden or 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
# PROBLEM **************************************************************************** | |
error: Your local changes to the following files would be overwritten by merge: | |
Library/Formula/node.rb | |
Please, commit your changes or stash them before you can merge. | |
Aborting | |
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master | |
###################################################################################### | |
# FIX BELOW ------------------------- | |
cd $(brew --repository) |
This file contains hidden or 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
http { | |
# memcached servers, generated according to wp-ffpc config | |
upstream memcached-servers { | |
server 127.0.0.1:11211; | |
} | |
# PHP-FPM upstream; change it accordingly to your local config! | |
upstream php-fpm { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
# find all files forward this directory and set 644 | |
sudo find . -type f -exec chmod 644 {} + | |
# find all directories forward and set 755 | |
sudo find . -type d -exec chmod 755 {} + |
This file contains hidden or 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 | |
CONCAT( | |
'ALTER TABLE ', | |
TABLE_SCHEMA, | |
'.', | |
TABLE_NAME, | |
' ENGINE = MyISAM;' | |
) | |
FROM | |
information_schema. TABLES |
This file contains hidden or 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 | |
/** | |
* Template Name: Attachment Fixing Utility | |
*/ | |
?> | |
<html> | |
<head> | |
<title>Wordpress Attachments Fixing Utility</title> | |
<style> |
This file contains hidden or 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
mkdir $(seq -f '%02.0f' 1 12) | |
creates folders: | |
01 02 03 04 05 06 07 08 09 10 11 12 |
This file contains hidden or 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
alias exim_summary="exim -bp | exiqsumm" | |
alias exim_log="tail -f /var/log/exim4/mainlog" | |
alias exim_force_send="exiqgrep -i | xargs exim -M" | |
alias exim_force_send_frozen="exiqgrep -zi | xargs exim -M" | |
# delete messages from the mail queue by receiver email address | |
exim -bp|grep "[email protected]"| awk {'print $3'}| xargs exim -Mrm |