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/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 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 sendgrid = require('sendgrid')(config.sendgridMailer.auth.key); | |
exports.bookMarkedArticle = function (req,res,cb) { | |
async.waterfall([ | |
function(done) { | |
res.render('bookmarks/bookmark-invite', { | |
name: req.user.firstName, | |
article: req.article | |
}, function(err, emailHTML) { |
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 http = require('http'); | |
var data = { | |
"collapseKey":"applice", | |
"delayWhileIdle":true, | |
"timeToLive":3, | |
"data":{ | |
"message":"My message","title":"My Title" | |
}, | |
"registration_ids":["token goes here"] |
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
# Simple script to send you email when someone unfollows you on twitter. | |
# | |
# Replace email on line 24 with the email you want to receive notifications at, and | |
# twitter handle on line 23 with your own (or whomever you want to track unfollows for). | |
# | |
# Set up a crontab to check however often you like. If someone follows and then unfollows you | |
# very quickly (within the interval), you won't get an email. | |
# | |
# Requires that you can send mail from the command line of the environment where | |
# you're running the script using mailx, e.g. `echo "body" | mailx -s "subject" foo@bar.com |
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
diff --git a/app/controllers/oauth.server.controller.js b/app/controllers/oauth.server.controller.js | |
new file mode 100644 | |
index 0000000..a3c0c7a | |
--- /dev/null | |
+++ b/app/controllers/oauth.server.controller.js | |
@@ -0,0 +1,208 @@ | |
+'use strict'; | |
+ | |
+/** | |
+ * Module dependencies. |
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 net = require('net'); | |
var server = net.createServer(function(socket) { | |
function onData(command) { | |
if (command == "exit") { | |
console.log("Exiting"); | |
socket.end(); | |
} | |
} | |
socket.on("connect", function(){console.log('connect')}); | |
socket.on("data", function(d){console.log(d.toString())}); |
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
function tryIt() { | |
var sheets = { | |
"1": { | |
"name": "type1", | |
"marker": "http://www.google.com/mapfiles/markerA.png" | |
}, | |
"2": { | |
"name": "type2", | |
"marker": "http://www.google.com/mapfiles/markerB.png" | |
}, |
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
# You may add here your | |
# server { | |
# ... | |
# } | |
# statements for each of your virtual hosts to this file | |
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls |
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
error_reporting(E_ALL); | |
ini_set('error_reporting', E_ALL); | |
ini_set('display_errors',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
$ getent group group_name |
NewerOlder