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/bash | |
# update_gfwlist.sh | |
# Author : VincentSit | |
# Copyright (c) http://xuexuefeng.com | |
# | |
# Example usage | |
# | |
# ./whatever-you-name-this.sh | |
# | |
# Task Scheduling (Optional) |
yum -y groupinstall 'Development Tools' | |
yum -y install wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel | |
OPENSSL="openssl-1.0.2h" | |
NGINX="nginx-1.11.1-1" | |
mkdir -p /opt/lib | |
wget https://www.openssl.org/source/$OPENSSL.tar.gz -O /opt/lib/$OPENSSL.tar.gz | |
tar -zxvf /opt/lib/$OPENSSL.tar.gz -C /opt/lib |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
(function ($){ | |
var check=false, isRelative=true; | |
$.elementFromPoint = function(x,y) | |
{ | |
if(!document.elementFromPoint) return null; | |
if(!check) | |
{ | |
var sl; |
// scope object pagination method | |
// reference : strong-remoting/lib/remote-objects.js line 550 | |
// reference : strong-remoting/lib/shared-method.js line 245 | |
define('__paginate__' + scopeName, { | |
isStatic: isStatic, | |
http: {verb: 'get', path: '/' + pathName+'/paginate'}, | |
accepts: {arg: 'filter', type: 'object'}, | |
description: 'Pagination Queries ' + scopeName + ' of ' + this.modelName + '.', | |
accessType: 'READ', | |
returns: {arg: scopeName, type: [toModelName], root: true} |
/*! | |
Animate.css - http://daneden.me/animate | |
Licensed under the MIT license - http://opensource.org/licenses/MIT | |
Copyright (c) 2013 Daniel Eden | |
*/ | |
.animated,.conf .conf-time,.conf .conf-title .conf-point,.conf .conf-title .conf-text,.conf .conf-title .conf-ver,.intro .slogan .slogan-bg,.intro .slogan .slogan-drops,.intro .slogan .slogan-text,.intro .slogan .slogan-time,.intro .slogan-tips,.talk .talk-title .talk-circle,.talk .talk-title .talk-text span,.topical .topical-content,.topical .topical-title .topical-circle,.topical .topical-title .topical-text { | |
-webkit-animation-duration:1s; | |
animation-duration:1s; | |
-webkit-animation-fill-mode:both; |