Skip to content

Instantly share code, notes, and snippets.

View petscheit's full-sized avatar

Paul Etscheit petscheit

  • Berlin
  • 16:00 (UTC -12:00)
View GitHub Profile
@prologic
prologic / LearnGoIn5mins.md
Last active April 22, 2024 13:28
Learn Go in ~5mins
@oakgary
oakgary / !Header.jpg
Last active November 26, 2019 10:27
Async Error Handling in Node.js
!Header.jpg
@dineshsprabu
dineshsprabu / forever_npm_start
Last active June 9, 2022 12:58
Forever for NPM applications starting with 'npm start'
/*
If your package.json file contains "start": "node ./bin/www"
Use the following command to bring up your app with forever
*/
forever start --minUptime 1000 --spinSleepTime 1000 ./bin/www
/* Check list of forever process using the command */
forever list
@the-teacher
the-teacher / app.md
Last active November 21, 2020 19:14
Rails Mailer Yandex

Gemfile

gem 'rails_config'

config/settings/development.yml

mailer:
@yeukhon
yeukhon / myjob.js
Created July 24, 2014 04:08
Parent and child job using kue + node.js + Q.js based on node-job-queue example (https://github.com/prateekbhatt/node-job-queue/blob/master/nested-job-queue.js)
var kue = require('kue'),
jobs = kue.createQueue();
var Q = require('q');
var db = {};
function parentJob(id, done) {
var job = jobs.create('parent', {
type: 'PARENT',
id: id