var Person = Backbone.Model.extend();
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| #-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password | |
| REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'` | |
| if [ -z "$REPO_URL" ]; then | |
| echo "-- ERROR: Could not identify Repo url." | |
| echo " It is possible this repo is already using SSH instead of HTTPS." | |
| exit | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/ | |
| # Install stuff # | |
| ################# | |
| # Install development tools and some misc. necessary packages | |
| yum -y groupinstall "Development tools" | |
| yum -y install zlib-devel # gen'l reqs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # remove mongodb's collections with command "mongn rm app*" | |
| # Usage `mongorm <-c collections*> <-d dababase>` | |
| E_BADARGS=85 | |
| E_NOFILE=86 | |
| DATABASE='' | |
| COLLECTIONS='' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RESET_COLOR = "\033[0m" | |
| COLOR_CODES = { | |
| "debug" : "\033[1;34m", # blue | |
| "info" : "\033[1;32m", # green | |
| "warning" : "\033[1;33m", # yellow | |
| "error" : "\033[1;31m", # red | |
| "critical" : "\033[1;41m", # background red | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # Corey Goldberg, Dec 2012 | |
| # | |
| import os | |
| import sys | |
| import xml.etree.ElementTree as ET | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Index | |
| --------------------------------------------------------------------- | |
| curl -XPUT http://localhost:9200/pictures/ -d ' | |
| { | |
| "settings": { | |
| "analysis": { | |
| "analyzer": { | |
| "index_analyzer": { | |
| "tokenizer": "standard", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Warning! | |
| # if you DIY a stage package like this, | |
| # you must use the Stage3`s /etc/udev/* | |
| # or rm /etc/udev/rules.d/70* | |
| # Warning! | |
| # last edited by likuku on 2012.03.29 | |
| DATE=`date +%Y_%m_%d_%H_%M_%S` | |
| ARCH=`uname -m` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://npmjs.org/install.sh | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| color 0a | |
| title 清理win7系统垃圾--- | |
| echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ | |
| echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ | |
| echo.★☆ ☆★ | |
| echo.★☆ ☆★ | |
| echo.★☆ ☆★ | |
| echo ★☆ 正在清除系统垃圾文件,请稍等..... ☆★ | |
| echo.★☆ ☆★ |