In Git you can add a submodule to a repository. This is basically a sub-repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: supervisord | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Example initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. |
| # How to add user into group, and make changes take effect *without logout/login*: the *newgrp* command | |
| # | |
| # Do note that this method will only update the groups, in the current shell session (and its child-processes). | |
| # New shell sessions will not have the groups updated - either use this method to update the groups in each shell | |
| # session, or logout/login to make the group update permanent by default | |
| # | |
| # In short: | |
| # $ sudo adduser user_x my_grp | |
| # $ newgrp my_grp && newgrp | |
| # |
| !/bin/sh | |
| . /lib/lsb/init-functions | |
| ## Variables | |
| LOGFILE="/srv/R/tmp/Rserv/rserve.log" | |
| CONFIGFILE="/etc/Rserv.conf" | |
| RUN_AS="webapps" | |
| # Rserve configs |
| from starcluster import config | |
| from starcluster import cluster | |
| cfg = config.StarClusterConfig().load() | |
| ec2 = cfg.get_easy_ec2() | |
| cm = cluster.ClusterManager(cfg, ec2=ec2) | |
| cl = cm.get_cluster("your_running_cluster_tag") | |
| print len(cl.running_nodes) |
| copy proxmox iso on usb stick | |
| #fdisk -l | |
| #mount /dev/sdb1 /mnt | |
| #mount -o loop -t iso9660 /mnt/proxmox_1-7.iso /mnt | |
| #cd /mnt | |
| #chroot /mnt sbin/unconfigured.sh |
START each keyword clauseON a new line.camelCase or snake_case for node identifiers but be consistent.UPPER_CASE_AND_UNDERSCORES.CamelCaseWithInitialCaps.MATCH (clauses)-->(should)-->(always)-->(use)-->(parentheses)-->(around)-->(nodes)| var myApp = angular.module('myApp').service('CordovaNetwork', ['$ionicPlatform', '$q', function($ionicPlatform, $q) { | |
| // Get Cordova's global Connection object or emulate a smilar one | |
| var Connection = window.Connection || { | |
| "CELL" : "cellular", | |
| "CELL_2G" : "2g", | |
| "CELL_3G" : "3g", | |
| "CELL_4G" : "4g", | |
| "ETHERNET" : "ethernet", | |
| "NONE" : "none", | |
| "UNKNOWN" : "unknown", |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: IBController | |
| # Short-Description: starts instance of IBController | |
| # Description: starts instance of IBController using start-stop-daemon | |
| ### END INIT INFO | |
| ############### EDIT ME ################## | |
| # ini file |
To remove a submodule you need to: