- License
- style.css
- License
- License URI
- Bundled
- fonts
- icons
- images
- javascripts
- style.css
- css
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 | |
add_post_meta( 100, "sub_title", "Hello World!" ); | |
add_post_meta( 100, "sub_title", "Good Morning!" ); | |
update_post_meta( 100, "sub_title", "Bye" ); | |
/* | |
array(2) { | |
[0]=> |
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
var Cylon = require('cylon'); | |
Cylon.robot({ | |
connection: [ | |
{ name: 'sphero', adaptor: 'sphero', port: '/dev/cu.Sphero-PRO-AMP-SPP' } | |
], | |
device: [ | |
{ name: 'sphero', driver: 'sphero' } | |
], |
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
#!/usr/bin/env bash | |
set -ex | |
service monit stop | |
sed -i -e "s/^user .*;$/user ec2-user ec2-user;/" /etc/nginx/nginx.conf | |
sed -i -e "s/^listen.owner .*$/listen.owner = ec2-user/" /etc/php-fpm.d/www.conf | |
sed -i -e "s/^listen.group .*$/listen.group = ec2-user/" /etc/php-fpm.d/www.conf | |
sed -i -e "s/nginx:nginx/ec2-user:ec2-user/g" /etc/monit.d/php-fpm |
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
add_action( 'admin_footer', function(){ | |
echo <<EOL | |
<script type="text/javascript"> | |
$('bigger-link').click(function () { | |
$('.mceContentBody *').css('font-size', $(this).attr('data-fontsize')); | |
}); | |
</script> | |
EOL; |
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
#!/usr/bin/env bash | |
set -ex | |
mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.bak | |
echo "server { | |
listen 80; | |
server_name _; | |
return 301 https://\$host\$request_uri; | |
}" > /etc/nginx/conf.d/default.conf |
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 | |
class Example_Test extends WP_UnitTestCase { | |
/** | |
* @test | |
* @runInSeparateProcess | |
* @preserveGlobalState disabled | |
*/ | |
public function test_post_condition() |
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
#!/usr/env/bin bash | |
set -ex | |
rm -f /etc/ssh/ssh_host_* | |
cd /var/log | |
find /var/log/ -type f -name '*.log' -exec cp /dev/null {} \; | |
cp /dev/null /var/log/syslog | |
yes | cp /dev/null /home/vagrant/.ssh/authorized_keys |
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
#!/usr/bin/env bash | |
dir=`pwd` | |
vccw_cwd='' | |
while [ '/' != $dir ] | |
do | |
parent=`dirname $dir` | |
dir=$parent | |
if [ -e $dir/.vccw/machines/default/virtualbox/id ]; then |
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
#!/usr/bin/env bash | |
set -ex; | |
echo 'DROP DATABASE IF EXISTS wordpress_test;' | mysql -u root | |
rm -fr /tmp/wordpress | |
rm -fr /tmp/wordpress-tests-lib | |
bash $(wp --info --format=json | jq -r '.wp_cli_dir_path')/templates/install-wp-tests.sh wordpress_test root '' localhost latest; |