Skip to content

Instantly share code, notes, and snippets.

function pushme {
br=`git branch | grep "*"`
git add --all
if (($# > 1)); then
params=''
for i in $*;
do
@devjin0617
devjin0617 / .manifest
Created May 19, 2017 15:15
chrome extension using a content script to access the `window` object
{
"content_scripts": [
{
"matches": ["http://*/*", "https://*/*"],
"js": ["inject.js"],
"all_frames": true
}
],
"web_accessible_resources": [
"content.js"
@dario1985
dario1985 / sphinx.conf
Created August 9, 2012 13:28
Sphinx configuration file using php
#!/usr/bin/php
#############################################################################
#
# S P H I N X C O N F I G U R A T I O N
#
#############################################################################
<?php
define('SPHINX_CONF_SOURCES_DIR', __DIR__ . DIRECTORY_SEPARATOR . "sources.d");