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.
| #!/bin/zsh | |
| function popup() { | |
| # how long bar stays open | |
| duration=4 | |
| # color of bar | |
| bar_bg='#4265f4' | |
| # bar position |
| #!flask/bin/python | |
| from flask import Flask, jsonify, abort, request, make_response, url_for | |
| from flask.ext.httpauth import HTTPBasicAuth | |
| app = Flask(__name__, static_url_path = "") | |
| auth = HTTPBasicAuth() | |
| @auth.get_password | |
| def get_password(username): | |
| if username == 'miguel': |
| # A two-line colored Bash prompt (PS1) with Git branch and a line decoration | |
| # which adjusts automatically to the width of the terminal. | |
| # Recognizes and shows Git, SVN and Fossil branch/revision. | |
| # Screenshot: http://img194.imageshack.us/img194/2154/twolineprompt.png | |
| # Michal Kottman, 2012 | |
| RESET="\[\033[0m\]" | |
| RED="\[\033[0;31m\]" | |
| GREEN="\[\033[01;32m\]" | |
| BLUE="\[\033[01;34m\]" |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <openssl/rsa.h> | |
| #include <openssl/applink.c> | |
| void print_buf_hex( unsigned char *buf, int len ) | |
| { | |
| int i; | |
| for( i = 0; i < len; i++ ) |
| #!/usr/bin/env python2 | |
| # coding: utf-8 | |
| import os,socket,threading,time | |
| #import traceback | |
| allow_delete = False | |
| local_ip = socket.gethostbyname(socket.gethostname()) | |
| local_port = 8888 | |
| currdir=os.path.abspath('.') |
| #!/bin/bash | |
| # | |
| # DESCRIPTION: | |
| # | |
| # Set the bash prompt according to: | |
| # * the active virtualenv | |
| # * the branch/status of the current git repository | |
| # * the return value of the previous command | |
| # * the fact you just came from Windows and are used to having newlines in | |
| # your prompts. |
| # nihtvision | |
| # https://raw.githubusercontent.com/pjhalsli/configs/master/colorschemes/nightvision | |
| # https://www.reddit.com/r/unixporn/comments/56r2qr/bspwm_having_fun_with_colors/ | |
| #[colors] | |
| # special | |
| #foreground = #3f3f3f | |
| #foreground_bold = #3f3f3f | |
| #cursor = #3f3f3f | |
| #background = #111010 | |
| # black |
| " Vim syntax file | |
| " Language: HTML (version 5) | |
| " Maintainer: Rodrigo Machado <[email protected]> | |
| " URL: http://rm.blog.br/vim/syntax/html.vim | |
| " Last Change: 2009 Aug 19 | |
| " License: Public domain | |
| " (but let me know if you liked it :) ) | |
| " | |
| " Note: This file just adds the new tags from HTML 5 | |
| " and don't replace default html.vim syntax file |
| ! modify CapsLock to Control, and Shift+CapsLock to CapsLock | |
| ! https://wiki.archlinux.org/index.php/Xmodmap#Modifier_keys | |
| clear lock | |
| clear control | |
| clear mod1 | |
| add control = Caps_Lock Control_L Control_R | |
| keycode 66 = Control_L Caps_Lock NoSymbol NoSymbol | |
| ! swap right control and right alt | |
| ! http://askubuntu.com/questions/237564/remap-right-alt-to-behave-as-right-ctrl |