Skip to content

Instantly share code, notes, and snippets.

@slavafomin
slavafomin / nodejs-custom-es6-errors.md
Last active June 3, 2025 17:54
Custom ES6 errors in Node.js

Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.

I've tried to make it as lean and unobtrusive as possible.

Defining our own base class for errors

errors/AppError.js

@4nth0
4nth0 / startup-tech-blogs.json
Last active May 28, 2021 07:41
Startup tech blogs
{
"Uber" : "https://eng.uber.com",
"Pinterest" : "https://engineering.pinterest.com/",
"Github" : "https://github.com/blog/category/engineering",
"Reddit" : "http://www.redditblog.com/",
"Oyster" : "http://tech.oyster.com/",
"Cloudera" : "http://blog.cloudera.com/blog/",
"Instagram" : "http://instagram-engineering.tumblr.com/",
"Dropbox" : "https://blogs.dropbox.com/tech/",
"Flicker" : "http://code.flickr.net/",
@nichtich
nichtich / README.md
Last active September 12, 2025 05:54 — forked from oodavid/README.md
How to automatically deploy from GitHub

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named www-data (may be apache on other systems)
@trcarden
trcarden / gist:3295935
Created August 8, 2012 15:28
Rails 3.2.7 SSL Localhost (no red warnings, no apache config)
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key