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
$(window).resize(function() { | |
if(!isset() or $(document).width() != document_width) { | |
/* Actions.... */ | |
var document_width = $(document).width(); | |
} | |
}); | |
function isset() { | |
if(typeof(document_width) == 'undefined') | |
return false; |
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
[remote "origin"] | |
+ url = git://github.com/shield-9/opcache-dashboard.git | |
+ pushurl = git@github.com:shield-9/opcache-dashboard.git | |
- url = git@github.com:shield-9/opcache-dashboard.git |
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
<Files "wp-config.php"> | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule ^(.*)$ - [R=404,L] | |
</IfModule> | |
<IfModule !mod_rewrite.c> | |
Order deny,allow | |
Deny from all | |
</IfModule> | |
</Files> |
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
#!/bin/bash | |
FIRST=$(/sbin/ifconfig eth0|grep -i global|head -n 1|cut -d ":" -f2,3,4,5) | |
SECOND=$(/sbin/ifconfig eth0|grep -i global|head -n 1|cut -d ":" -f6,7,8,9|cut -d "/" -f1) | |
if [ -z "${FIRST}" -o -z "${SECOND}" ]; then | |
exit 0 | |
fi | |
case "${SECOND}" in |
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
service memcached stop; service mysqld stop; service httpd stop; swapoff -a; swapon -a; service httpd start; service mysqld start; service memcached start |
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
#!/bin/bash | |
FIRST=$(ip a show dev eth0|grep -E 'inet6 (.+) scope global'|head -n 1|sed -e "s/^ *inet6 *//g"|cut -d ":" -f1,2,3,4) | |
SECOND=$(ip a show dev eth0|grep -E 'inet6 (.+) scope global'|head -n 1|cut -d ":" -f5,6,7,8|cut -d "/" -f1) | |
if [ -z "${FIRST}" -o -z "${SECOND}" ]; then | |
exit 0 | |
fi | |
case "${SECOND}" in |
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 | |
/** | |
* Determines which Filesystem Method to use. | |
* The priority of the Transports are: Direct, SSH2, FTP PHP Extension, FTP Sockets (Via Sockets class, or fsockopen()) | |
* | |
* Note that the return value of this function can be overridden in 2 ways | |
* - By defining FS_METHOD in your <code>wp-config.php</code> file | |
* - By using the filesystem_method filter | |
* Valid values for these are: 'direct', 'ssh2', 'ftpext' or 'ftpsockets' | |
* Plugins may also define a custom transport handler, See the WP_Filesystem function for more information. |
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
ALTER TABLE ew_wp_commentmeta ENGINE=InnoDB ROW_FORMAT=DYNAMIC; | |
ALTER TABLE ew_wp_2_commentmeta ENGINE=InnoDB ROW_FORMAT=DYNAMIC; | |
ALTER TABLE ew_wp_3_commentmeta ENGINE=InnoDB ROW_FORMAT=DYNAMIC; | |
ALTER TABLE ew_wp_5_commentmeta ENGINE=InnoDB ROW_FORMAT=DYNAMIC; | |
ALTER TABLE ew_wp_commentmeta CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | |
ALTER TABLE ew_wp_2_commentmeta CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | |
ALTER TABLE ew_wp_3_commentmeta CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | |
ALTER TABLE ew_wp_5_commentmeta CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; |
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
svn co https://i18n.svn.wordpress.org/ja/ | |
svn copy trunk branches/4.2 | |
cd branches/4.2 | |
mkdir messages | |
cd messages | |
wget https://translate.wordpress.org/projects/wp/dev/ja/default/export-translations?format=po -O ja.po | |
wget https://translate.wordpress.org/projects/wp/dev/ja/default/export-translations?format=mo -O ja.mo | |
wget https://translate.wordpress.org/projects/wp/dev/admin/network/ja/default/export-translations?format=po -O admin-network-ja.po |
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
./letsencrypt-auto certonly --apache --keep -d extendwings.com -d www.extendwings.com | |
./letsencrypt-auto certonly --apache --keep -d aigis.pw | |
./letsencrypt-auto certonly --apache --keep -d shield-9.org | |
sudo apachectl graceful |
OlderNewer