Work with CLI: https://github.com/visionmedia/commander.js
Daemonize script: https://github.com/nodejitsu/forever
| <?php | |
| /** | |
| * Brightkite PHP Object to do basic things such as checkin, post a note, and search | |
| * for location. | |
| * | |
| * This object is chain-able. | |
| * Ex: | |
| * Brightkite::factory()->current_location()->note('new note'); | |
| * Brightkite::factory()->address('San Francisco, CA')->checkin()->note('new note'); |
| /* This is a template command. */ | |
| CmdUtils.CreateCommand({ | |
| name: "example", | |
| icon: "http://example.com/example.png", | |
| homepage: "http://example.com/", | |
| author: {name: "Your Name", email: "[email protected]"}, | |
| license: "GPL", | |
| description: "A short description of your command", | |
| help: "How to use your command", | |
| takes: {"input": /.*/}, |
| <?php | |
| class Foo { | |
| public static function name() { | |
| echo __CLASS__; | |
| } | |
| } |
| var http = require("http"); | |
| var url = require("url"); | |
| var fs = require("fs"); | |
| var sys = require('sys'); | |
| var config = require('./config'); | |
| var emailer = require('./emailer').emailer; | |
| var appLogger = require('./logger').appLogger; | |
| var downloadDirSuffix = config.downloadDirSuffix; | |
| var downloadDir = config.downloadDir; |
| var options, req, request; | |
| request = require('request'); | |
| options = { | |
| uri: 'https://p04-fmfmobile.icloud.com/fmipservice/friends/{account_id}/{unique_device_id}/minCallback/selFriend/refreshClient', | |
| method: 'POST', | |
| headers: { | |
| 'X-Apple-AuthScheme': 'Forever', | |
| 'Content-type': 'application/json' |
Work with CLI: https://github.com/visionmedia/commander.js
Daemonize script: https://github.com/nodejitsu/forever
| #!/bin/sh | |
| files=`git diff --cached --name-status | awk '{print $2}'` | |
| count_javascript=`grep -iR 'console\.log' $files | wc -l | awk '{print $1}'` | |
| count_ruby=`grep -R 'logger\.debug' $files | wc -l | awk '{print $1}'` | |
| if [[ "$count_javascript" -ge 1 ]]; then | |
| echo "Remove any config.log() statements left in javascript sources" | |
| echo "" |
First install the required gems:
gem install octokit awesomeprint rainbowThen run it to extract all of your open GitHub issues into files (with comments).
ruby my-gh-issues.rb| # Run with: rake environment elasticsearch:reindex | |
| # Begins by creating the index using tire:import command. This will create the "official" index name, e.g. "person" each time. | |
| # Then we rename it to, e.g. "person20121001" and alias "person" to it. | |
| namespace :elasticsearch do | |
| desc "re-index elasticsearch" | |
| task :reindex => :environment do | |
| klasses = [Place, Person, Caption] |
| .DS_Store | |
| Gemfile.lock | |
| *.pem | |
| node.json | |
| tmp/* | |
| !tmp/.gitignore |