This is how to REAL install Remix OS on VirtualBox. rootfs could be writable!!!
- any linux liveCD iso file (Xubuntu here)
- Remix OS iso file ("Remix_OS_for_PC_Android_M_32bit_B2016092201.iso" here)
- VirtualBox
require('./module.js') // { a: 1 } | |
import module from './module.js' // undefined | |
import { a } from './module.js' // 1 | |
require('./module2.js') // { default: { a: 1 }, b: 2 } | |
import module2 from './module2.js' // { a: 1} | |
import { b } from './module2.js' // 2 | |
require('./module3.js') // { default: { a: 1 }, b: 2 } |
# wordpress-seo provides ability to edit meta information and provides sitemap. | |
# w3-total-cache provides advanced caching no matter the server technology available. | |
# better-wp-security provides brute force protection and a number of WordPress enhancements. | |
# google-analytics-for-wordpress provides robust Google Analytics integration through the Google API. | |
# redirection detects 404s and 301s and allows admins to set up redirects in the WP admin. | |
# ewww-image-optimizer provides automatic optimization of uploaded images with local libraries instead of cloud-based services. | |
# backupwordpress simple backup solution that can store backups above web root. | |
# relevanssi provides better site search using a local index. | |
# cloudflare is the best. Free automatic CDN and security solution. | |
# jarvis is a quick search for the WordPress admin. Indespensible. |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
#!/bin/bash | |
echo "installing WP test content" | |
wp plugin install wordpress-importer --activate | |
curl -OL https://raw.githubusercontent.com/manovotny/wptest/master/wptest.xml | |
wp import wptest.xml --authors=create | |
wp plugin uninstall wordpress-importer --deactivate | |
rm wptest.xml |
<?php | |
//edit with your data | |
$repo_dir = '~/repository.git'; | |
$web_root_dir = '~/project'; | |
$post_script = '~/project/scripts/post_deploy.sh'; | |
$onbranch = 'master'; | |
// A simple php script for deploy using bitbucket webhook | |
// Remember to use the correct user:group permisions and ssh keys for apache user!! | |
// Dirs used here must exists on server and have owner permisions to www-data |
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
#Understanding closures, callbacks and promises
For a code newbie like myself, callbacks, closures and promises are scary JavaScript concepts.
10 months into my full-time dev career, and I would struggle to explain these words to a peer.
So I decided it was time to face my fears, and try to get my head around each concept.
Here are the notes from my initial reading. I'll continue to refine them as my understanding improves.
<?php | |
trait Singleton | |
{ | |
/** | |
* The instance of our Singleton object. | |
*/ | |
protected static $instance; | |
/** |
#!/bin/bash | |
#title : replication-start.sh | |
#description : This script automates the process of starting a Mysql Replication on 1 master node and N slave nodes. | |
#author : Nicolas Di Tullio | |
#date : 20160706 | |
#version : 0.2 | |
#usage : bash mysql_replication_autostart.sh | |
#bash_version : 4.3.11(1)-release | |
#============================================================================= |