Skip to content

Instantly share code, notes, and snippets.

sudo yum update
sudo yum -y groupinstall 'Development Tools'
sudo yum -y install
cd ~
curl -O http://download.redis.io/redis-stable.tar.gz
tar zxvfp redis-stable.tar.gz
cd redis-stable
make distclean
make
make test
@greatdg
greatdg / gist:ef1af93d6599628d192e
Created July 5, 2014 04:31
get a hard disk security dentifier (SID)
SID_AND_ATTRIBUTES user;
bool ConvertSid( PSID pSid, char * pszSidText, DWORD dwBufferlen)
{
DWORD dwSidRev;
DWORD dwSubAuthorities;
DWORD dwCounter;
DWORD dwSidSize;
PSID_IDENTIFIER_AUTHORITY SecIA;
@greatdg
greatdg / app.js
Created May 30, 2014 07:05
automated deployment from bitbucket using post hook
var express = require('express'),
exec = require('child_process').exec,
config = require('./config.json'),
bodyParser = require('body-parser');
var app = express();
app.use(bodyParser());
--[[
Add Similar, testing version
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of