Skip to content

Instantly share code, notes, and snippets.

View rickkln's full-sized avatar
💻
Coding.

Rick Kleinhans rickkln

💻
Coding.
View GitHub Profile
@rickkln
rickkln / ad.fish
Created July 14, 2020 12:57
Fish shell functions, particularly useful for arcanist in the context of this workflow: https://jg.gg/2018/09/29/stacked-diffs-versus-pull-requests/
function ad
if count $argv > /dev/null
arc diff --update $argv[1]
else
arc diff
end
end
@rickkln
rickkln / keybase.md
Created May 12, 2020 09:39
Keybase proof

Keybase proof

I hereby claim:

  • I am rickkln on github.
  • I am rickkln (https://keybase.io/rickkln) on keybase.
  • I have a public key ASBs_VRE38xe4QCFWAR_doq455KvjlrL43dh_B82kZEv4go

To claim this, I am signing this object:

@rickkln
rickkln / macfix1-install-nokogiri.rb
Created December 12, 2015 11:35 — forked from SteveBenner/macfix1-install-nokogiri.rb
Mac fix - Install Nokogiri gem on OS X 10.9 Mavericks
#!/usr/bin/env ruby
#
# Mac fix 1 - Install the Nokogiri gem on Mac OS 10.9 Mavericks
#
# Usage: to configure and install using Bundler, pass in 'bundle' as an argument to the script.
#
# Nokogiri works at a very low level, so it has many issues on various platforms.
# As a result, the command `install gem nokogiri` often will fail. This fix is for
# errors involving 'libiconv', such as the following one I encountered:
#
# Yumee Tool Investigation
####Server side frameworks:
These frameworks provide structure, libraries, ecosystems and web servers as a combined package to help you build websites, web applications and web api's. When you hit a URL you hit your load balancer which passes on the request to your web application. The server side application talks to your db, manipulates the objects and returns the appropriate data.
- [Spring (Java)](http://spring.io) is the most popular Java framework.
- [Play 2.0 (Java and Scala)](https://www.playframework.com) is my favourite Java framework. It's very fast and it supports Scala. It was used by some people in last years CS334 project.
- [Django (Python)](https://www.djangoproject.com) is the most popular Python framework.
- [Sinatra (Ruby)](http://www.sinatrarb.com) a minimalist Ruby framework used mostly for small projects.
- [Expressjs (Javascript and CoffeeScript)](http://expressjs.com) is the most popular Nodejs framework. It's a very minimalistic framework (inspired by Si
prompt: Is this ok?: (yes) yes
info: Creating snapshot 0.0.0-53
info Uploading: [=============================] 99%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: npm http GET http://registry.npmjs.org/express/3.0.6
npm http GET http://registry.npmjs.org/jade
npm http GET http://registry.npmjs.org/sax/0.5.0
npm http GET http://registry.npmjs.org/xml2js/0.2.3
npm http GET http://registry.npmjs.org/eyes
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
warn: Error returned from Nodejitsu
error: Error: Subdomain chosen belongs to another user
error: at AppController._isFreeRootSubdomain (/root/nodejitsu/lib/nodejitsu/resources/app/controller.js:963:17)
error: at Resource._request (/root/nodejitsu/node_modules/resourceful/lib/resourceful/resource.js:184:13)
error: at Function.Resource.runAfterHooks (/root/nodejitsu/node_modules/resourceful/lib/resourceful/resource.js:93:12)
error: at Resource._request (/root/nodejitsu/node_modules/resourceful/lib/resourceful/resource.js:179:14)
error: at Couchdb.view (/root/nodejitsu/node_modules/resourceful/lib/resourceful/engines/couchdb/index.js:143:5)
error: at Request.cradle.Connection.request [as _callback] (/root/nodejitsu/node_modules/resourceful/node_modules/cradle/lib/cradle.js:213:9)
prompt: Is this ok?: (yes) yes
info: Creating snapshot 0.0.0-49
info Uploading: [=============================] 99%
info: Updating app activity-explorer
info: Activating snapshot 0.0.0-49 for activity-explorer
info: Starting app activity-explorer
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy the app
error:
prompt: Is this ok?: (yes) yes
info: Creating snapshot 0.0.0-46
info Uploading: [=============================] 99%
info: Updating app activity-explorer
info: Activating snapshot 0.0.0-46 for activity-explorer
info: Starting app activity-explorer
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
warn: Error returned from Nodejitsu
error: Error: socket hang up
@rickkln
rickkln / AE package.json
Created February 4, 2013 13:35
Activity Explorer Nodejitsu Support
{
"name": "activity-explorer",
"private": true,
"scripts": {
"start": "node app.js"
},
"dependencies": {
"express": "3.0.6",
"jade": ">= 0.0.1",
"xml2js": "~0.2.0",
app.get('/', function(req, res){
var ua = req.header('user-agent');
if(/mobile/i.test(ua)) {
res.render('mobile.html');
} else {
res.render('desktop.html');
}
});