In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:
- You can separate the code into different repositories.
| check if exist | |
| /dev/anbox-binder | |
| if it doesn't, anbox-binder don't work | |
| sudo apt install anbox-ubuntu-touch | |
| sudo wget -q --show-progress -O /home/phablet/anbox-data/android.img http://cdimage.ubports.com/anbox-images/android-armhf-64binder.img | |
| touch /home/phablet/anbox-data/.enable | |
| chmod -R o+wrx /home/phablet/anbox-data/data |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| # CENTMINMOD CUSTOM CONFIGURATIONS OPTIONS FILE | |
| # PLEASE NOTE: This file serves as a file with all the possible options, NOT what should be used in a production enviornment!!!! | |
| # https://centminmod.com | |
| # Creating a custom_config.inc file it will override default setting for upgrades and software installs. | |
| # Location: /etc/centminmod/custom_config.inc | |
| EMAIL='' # Server notification email address enter only 1 address | |
| PUSHOVER_EMAIL='' # Signup pushover.net push email notifications to mobile & tablets | |
| CMGIT='https://github.com/centminmod/centminmod.git' |
| /* | |
| * Plugin Header... | |
| * | |
| * Note: This particular block of code won't actually run because it doesn't have | |
| * the details of the register_post_type and register_taxonomy functions filled in. | |
| */ | |
| class JR3_Books { | |
| /** |
This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.
If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.
| // | |
| // Part 2: E-mail list MAGIC | |
| // | |
| // | |
| // A. Checkbox to join list on registration form | |
| // | |
| add_action( 'register_form', 'ac_email_opt_in' ); | |
| function ac_email_opt_in() { ?> |
| Over time, I collected some options to make Firefox really fast. | |
| WARNING! NO WARRANTY, use on your own risk! | |
| If you know what you're doing, go to 'about:config' and edit the listed values accordingly. | |
| Hint: Double-click boolean values to toggle true/false. | |
| ########################### | |
| If mouse-wheel scrolling is slow, try |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
| */ | |
| $args = array( |
| <?php /* | |
| WP No Category Base | |
| */ | |
| // Refresh rules on activation/deactivation/category changes | |
| register_activation_hook(__FILE__, 'no_category_base_refresh_rules'); | |
| add_action('created_category', 'no_category_base_refresh_rules'); | |
| add_action('edited_category', 'no_category_base_refresh_rules'); | |
| add_action('delete_category', 'no_category_base_refresh_rules'); | |
| function no_category_base_refresh_rules() { |