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 | |
add_filter('upload_dir' , 'vogue_change_upload_dir'); | |
function vogue_change_upload_dir( $dir ){ | |
$d = date('d'); | |
$dir['subdir'] = '/vogue/$y/$m/' .$d; | |
$dir['dir'] = $dir['basedir'] . $dir['subdir']; |
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 | |
add_filter('upload_dir' , 'vogue_change_upload_dir'); | |
function vogue_change_upload_dir( $dir ){ | |
$time = current_time( 'mysql' ); | |
$y = substr( $time, 0, 4 ); | |
$m = substr( $time, 5, 2 ); |
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
var arguments = process.argv.slice(2) | |
if ( typeof(arguments[0]) === 'undefined'){ | |
console.log( 'please enter a number of coins' ) | |
process.exit(1) | |
} | |
function move(n, a, b, c) { |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDP3csli1nFBQu8KVb1/aiNzn455QGov3jUfvFrT7TH+WSU5N7qaEqg1mCgQiky+86JeYQbYDkv8bxnviV+qwzamDtDzc8tW/yPFTywsA9X4e/pgL3wqn8h/SNq3f33uw9D24UJHB+QG1JB4i51HoXoomnAeT5OgQ77kZ41MeJExfcMUc5LLBwzPcLazRPDsilP/og/nHvgyskLrsOVXFI+vj8fXiIiP6SdQ4bgkBsxeWDA5y3DeO/zQsUNVGuRSuAlharTkLkH6SVP/o3rT8cOSaiyRtCbOurMF9g05I0seYzslGFYOzV1iHvUKktR8E54doTEkV4w7foGWfu09u8R [email protected] |
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 | |
$results = array(); | |
$times = 10000; | |
$m = new Memcache(); | |
$m->addServer( '127.0.0.1', 11211 ); | |
$d = new Memcached(); | |
$d->addServer( '127.0.0.1', 11211 ); | |
//$d->setOption( Memcached::OPT_BINARY_PROTOCOL, true ); |
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
Index: src/wp-admin/css/common.css | |
=================================================================== | |
--- src/wp-admin/css/common.css (revision 31694) | |
+++ src/wp-admin/css/common.css (working copy) | |
@@ -1942,6 +1942,10 @@ | |
display: block; | |
} | |
+#request-filesystem-credentials-dialog { | |
+ display: none; |
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
jQuery( window ).off( 'beforeunload', wp.updates.beforeunload ); | |
jQuery( window ).on( 'beforeunload', function(){ | |
return 'always prompt' | |
}); | |
~ | |
~ | |
~ | |
~ | |
~ |
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
sudo apt-get install libxml2-dev libpcre3-dev libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev libxpm-dev libfreetype6-dev libmysqlclient-dev libt1-dev libgd2-xpm-dev libgmp-dev libsasl2-dev libmhash-dev unixodbc-dev freetds-dev libpspell-dev libsnmp-dev libtidy-dev libxslt1-dev libmcrypt-dev librecode-dev libt1-dev libgmp-dev bison bzip2 libbz2-dev libcurl4-openssl-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libfreetype6-dev libgmp-dev libmcrypt-dev libmysqlclient-dev libpspell-dev | |
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
sudo: false | |
language: php | |
matrix: | |
include: | |
- php: 5.6 | |
before_install: | |
- WP_CORE_DIR=/tmp/wordpress/ | |
- git clone https://github.com/WordPress/twentysixteen.git src/wp-content/themes/twentysixteen | |
- | | |
if [[ true ]]; then |
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
#!/bin/bash | |
set -e | |
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' > tmpfile | |
while read -u 3 path_key path | |
do | |
url_key=$(echo $path_key | sed 's/\.path/.url/') | |
url=$(git config -f .gitmodules --get "$url_key") |