ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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
Set-ExecutionPolicy RemoteSigned | |
$mongoDbPath = "C:\MongoDB" | |
$mongoDbConfigPath = "$mongoDbPath\mongod.cfg" | |
$url = "http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.4.9.zip" | |
$zipFile = "$mongoDbPath\mongo.zip" | |
$unzippedFolderContent ="$mongoDbPath\mongodb-win32-x86_64-2008plus-2.4.9" | |
if ((Test-Path -path $mongoDbPath) -eq $True) | |
{ |
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
import requests | |
def example(): | |
# grab some lat/long coords from wherever. For this example, | |
# I just opened a javascript console in the browser and ran: | |
# | |
# navigator.geolocation.getCurrentPosition(function(p) { | |
# console.log(p); | |
# }) |
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
sudo aptitude -y install build-essential libssl-dev libreadline5 libreadline5-dev zlib1g zlib1g-dev | |
sudo apt-get -y install libxslt-dev libxml2-dev | |
sudo apt-get -y install libmysqlclient-dev ruby-dev | |
sudo apt-get -y install libcurl4-openssl-dev | |
sudo apt-get -y install imagemagick libmagickcore-dev libmagickwand-dev | |
sudo apt-get -y install libsqlite3-dev | |
sudo apt-get -y install libreadline-dev | |
sudo apt-get -y install git | |
sudo apt-get -y install libicu48 | |
sudo apt-get -y install nodejs |
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
#c:: ;Window+C Convert Columnar Data to SQL-Compatible List | |
StringReplace,clipboard,clipboard,`n,`,,All | |
StringReplace,clipboard,clipboard,`r,,All | |
StringGetPos, pos, clipboard, ID`, ; remove "ID" if first item in the list (Access). | |
if pos = 0 | |
StringRight, clipboard, clipboard, StrLen(clipboard)-3 | |
testString = %clipboard% | |
StringReplace,testString,testString,`,,,All | |
testString := testString * 1 | |
if (testString is integer) { |
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
[mergetool] | |
prompt = false | |
keepBackup = false | |
keepTemporaries = false | |
[merge] | |
tool = winmerge | |
[mergetool "winmerge"] | |
name = WinMerge |
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
<?php | |
namespace Acme\PeopleSoftBundle\Listener; | |
use Doctrine\DBAL\Event\ConnectionEventArgs; | |
use Doctrine\DBAL\Events; | |
use Doctrine\Common\EventSubscriber; | |
/** | |
* Changes Doctrine's default Oracle-specific column type mapping to Doctrine |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# odbc_trace_parser.py | |
# | |
# Copyright 2013 Spencer McIntyre <zeroSteiner@gmail.com> | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are | |
# met: |
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
; KeypressOSD.ahk | |
;-------------------------------------------------------------------------------------------------------------------------- | |
; ChangeLog : v2.22 (2017-02-25) - Now pressing same combination keys continuously more than 2 times, | |
; for example press Ctrl+V 3 times, will displayed as "Ctrl + v (3)" | |
; v2.21 (2017-02-24) - Fixed LWin/RWin not poping up start menu | |
; v2.20 (2017-02-24) - Added displaying continuous-pressed combination keys. | |
; e.g.: With CTRL key held down, pressing K and U continuously will shown as "Ctrl + k, u" | |
; v2.10 (2017-01-22) - Added ShowStickyModKeyCount option | |
; v2.09 (2017-01-22) - Added ShowModifierKeyCount option | |
; v2.08 (2017-01-19) - Fixed a bug |
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
from collections import defaultdict | |
import datetime | |
import requests | |
import time | |
CHECKINS_API = 'https://api.foursquare.com/v2/users/self/checkins' | |
CATEGORIES_API = 'https://api.foursquare.com/v2/venues/categories' | |
YEAR_BEGIN = int(time.mktime(datetime.date(2013,1,1).timetuple())) | |
YEAR_END = int(time.mktime(datetime.date(2014,1,1).timetuple())) | |
WEEK = int(time.mktime(datetime.date(2013,12,29).timetuple())) |