Skip to content

Instantly share code, notes, and snippets.

View JasonGiedymin's full-sized avatar
🏠
Working from home

Jason Giedymin JasonGiedymin

🏠
Working from home
View GitHub Profile
@JasonGiedymin
JasonGiedymin / nginx.conf
Created September 8, 2017 19:52 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@JasonGiedymin
JasonGiedymin / agnoster-newline.zsh-theme
Created January 24, 2017 06:59 — forked from nweddle/agnoster-newline.zsh-theme
Agnoster ZSH Theme with New Line
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
package slick
/**
* This is some code extracted from TimeOut codebase, demonstrating:
* - Use of tag typed to avoid mixing session of different DB
* - The use of the Reader Monad to compose Actions together and defer the choice of async/sync computation
*
* I remove the part where we can say if our operation are read only or not (to use different connection), in order to
* make things easier.
**/
@JasonGiedymin
JasonGiedymin / Mesos upstart scripts
Last active December 29, 2015 19:49 — forked from kwilczynski/Mesos upstart scripts
Updating with mesos trunk: - Change log location - Change mesos home (temporary)
description "Mesos Master"
start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]
respawn
respawn limit 2 5
env MESOS_CONFIG="/etc/mesos/conf"
env MESOS_HOME="/usr/local/lib"
#!/bin/bash
java_binary_link="/usr/bin/java"
java_library="libjvm.so"
library_paths=(
/jre/lib/amd64/server
/jre/lib/amd64/client
/usr/lib
/lib
@JasonGiedymin
JasonGiedymin / Foo.coffee
Created July 8, 2011 03:10
Extending Backbone.Model in CoffeeScript
Backbone = require 'backbone'
class Foo extends Backbone.Model
set: -> super
foo = new Foo
foo.set x: 'x'
console.log foo.get 'x' # x
@JasonGiedymin
JasonGiedymin / hello-backbonejs-step5.coffee
Created July 8, 2011 03:10 — forked from mythz/hello-backbonejs-step5.coffee
Hello Backbone.js in CoffeeScript
# Rewrote excellent intro to Backbone.js http://arturadib.com/hello-backbonejs/ in CoffeeScript
$ ->
Backbone.sync = (method, model, success, error) ->
success()
class Item extends Backbone.Model
defaults:
part1: 'hello'
part2: 'world'
@JasonGiedymin
JasonGiedymin / README.md
Created July 2, 2011 01:32 — forked from bergie/README.md
Falsy Values tutorials