source: [projectcartoon.com](http://www.projectcartoon.com/cartoon/2)
This file contains 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
"use strict"; | |
var https = require('https'); | |
var fs = require('fs'); | |
var auth = require('http-auth') | |
var jsDAV = require("jsDav/lib/jsdav"); | |
jsDAV.debugMode = false; | |
var jsDAV_Locks_Backend_FS = require("jsDav/lib/DAV/plugins/locks/fs"); | |
var basic = auth({ | |
authRealm : "Private area.", |
This file contains 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 | |
##3.5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 | |
## | |
## Debian / Linux / Ubuntu / LSB | |
## Startup script for Express / Node.js application with the forever module | |
## | |
## | |
## A modification of "init.d.lsb.ex" by Nicolas Thouvenin | |
## | |
## |
This file contains 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
var fs = require('fs'); | |
var express = require('express'); | |
var app = express(); | |
var path = require('path'); | |
app.get('/:site/:file', function(req, res, next){ | |
var filePath = path.join(__dirname + '/sites' , req.params.site, req.params.file); | |
if (fs.existsSync(filePath)){ | |
res.sendfile(filePath); |
This file contains 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 | |
if pgrep Dropbox > /dev/null; then | |
osascript -e 'tell application "Dropbox" to quit' | |
fi | |
diskutil unmountDisk /dev/disk2 > /dev/null 2>&1 |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Gitple is a cloud application available online at https://gitple.io With Giple Chat, your visitors can talk with you directly at your homepage or mobile app. Many productivity features are ready for you to handle multple conversations at the same time.
After a few clicks, you can add Gitple chat widget to your homepage. Diverse settings are available at Gitple Workspace application. You can change the widget's looks, allowing from either logined user or not etc.
This file contains 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
if [ -f ~/.bash-git-prompt/gitprompt.sh ]; then | |
GIT_PROMPT_ONLY_IN_REPO=1 | |
GIT_PROMPT_THEME=Custom # use custom theme specified in file GIT_PROMPT_THEME_FILE (default ~/.git-prompt-colors.sh) | |
source ~/.bash-git-prompt/gitprompt.sh | |
fi |
This file contains 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
# see https://coderwall.com/p/fasnya/add-git-branch-name-to-bash-prompt | |
# Terminal colours (after installing GNU coreutils) | |
NM="\[\033[0;38m\]" # means no background and white lines | |
GR="\[\033[0;90m\]" # dark grey | |
HI="\[\033[0;37m\]" # change this for letter colors | |
HII="\[\033[0;31m\]" # change this for letter colors | |
SI="\[\033[0;33m\]" # this is for the current directory | |
IN="\[\033[0m\]" |
OlderNewer