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
var express = require('express') | |
, passport = require('passport') | |
, sessionStore = new express.session.MemoryStore() | |
, app = module.exports = express.createServer() | |
, nowjs = require('now'); | |
app.configure( function () { | |
app.use(express.bodyParser()); |
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
(function() { | |
var modules = {}, cache = {}; | |
if (this.require && this.require.modules) { | |
modules = this.require.modules; | |
} | |
var require = function(name, root) { | |
var path = expand(root, name), indexPath = expand(path, './index'), module, fn; | |
module = cache[path] || cache[indexPath]; |
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
var express = require('express'), | |
app = express(), | |
http = require('http'), | |
server = http.createServer(app), | |
users = 0, | |
MemoryStore = express.session.MemoryStore, | |
sessionStore = new MemoryStore(), | |
parseCookie = require('cookie').parse, | |
utils = require('connect').utils, | |
io = require('socket.io').listen(server); |
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
var express = require('express'), | |
app = express(), | |
http = require('http'), | |
server = http.createServer(app), | |
io = require('socket.io').listen(server); | |
app.get('/', function(req, res) { | |
res.send('<!doctype html> \ | |
<html> \ | |
<head><meta charset="utf-8"></head> \ |
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
# | |
# Disable MAC OS X screenshot ( Shift + Cmd + 4, Space ) shadow | |
# | |
# ref: http://osxdaily.com/2011/05/23/disable-shadow-screen-shots-mac/ | |
# | |
defaults write com.apple.screencapture disable-shadow -bool true | |
killall SystemUIServer | |
# To revert back to default use : |
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 | |
QMAILDUID=`id -u qmaild` | |
NOFILESGID=`id -g qmaild` | |
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` | |
LOCAL=`head -1 /var/qmail/control/me` | |
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then | |
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in | |
echo /var/qmail/supervise/qmail-smtpd/run |
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
# Throw this in config/initializers and add | |
# @import variables.sass to the top of application.sass | |
# to have all variables in app_config.yml | |
# available as variables in your sass stylesheets | |
# | |
# First draft by unixmonkey (http://gist.github.com/323198) | |
# flatten() added by Raphael J. Schmid <[email protected]> | |
# Full re-write. Configuration function added and can be used in compass/sass | |
# | |
# Example configuration.yaml |
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
// ---- | |
// Sass (v3.4.0.rc.1) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
$themes: ( | |
"theme-1": ( | |
"color": red | |
), | |
"theme-2": ( |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//cdn.tinymce.com/4/tinymce.min.js"></script> | |
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script> | |
<script> | |
tinymce.init({ | |
selector:'#editor', | |
min_height : 300, |
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
Verifying that +drinchev is my blockchain ID. https://onename.com/drinchev |
OlderNewer