Skip to content

Instantly share code, notes, and snippets.

Pierre Paul Lefebvre PierrePaul

Block or report user

Report or block PierrePaul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active Nov 18, 2019
What I Wish I'd Known About Equity Before Joining A Unicorn
View what-i-wish-id-known-about-equity-before-joining-a-unicorn.md

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@yefim
yefim / Dockerfile
Last active Sep 6, 2019
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
View Dockerfile
# Example Dockerfile
FROM hello-world
View gist:60097d0661ad2f74a258
var game = require('../common/game');
class Camera extends Phaser.Group {
constructor({x = 0, y = 0}) {
super(game);
var {world, physics, camera} = game;
var {centerX, centerY, bounds} = world;
this.scale.setTo(1, 1);
@ncadou
ncadou / keepass_vars.py
Created May 27, 2014
Ansible vars plugin that reads from keepass (v1 databases)
View keepass_vars.py
from os import environ, path
from ansible import errors, utils
from keepassdb import Database
DEFAULT_DB = 'prod'
class VarsModule(object):
"""Loads variables from secret_vars/<username>.kdb in the same directory
@CMCDragonkai
CMCDragonkai / angularjs_directive_attribute_explanation.md
Last active Oct 15, 2019
JS: AngularJS Directive Attribute Binding Explanation
View angularjs_directive_attribute_explanation.md

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@marktheunissen
marktheunissen / VagrantFile.rb
Last active Jun 9, 2017
Running Ansible on a Vagrant machine without a plugin
View VagrantFile.rb
Vagrant::Config.run do |config|
config.vm.define :default do |tw_config|
tw_config.vm.box = "precise64"
tw_config.vm.box_url = "http://files.vagrantup.com/precise64.box"
tw_config.vm.provision :shell, :path => "provision/ansible-setup.sh"
tw_config.vm.provision :shell, :path => "provision/controller-setup.sh"
# Load a local setup file if it exists, so you can use it to
# provide additional provisioning steps.
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@iangreenleaf
iangreenleaf / yaml.vim
Created Mar 15, 2011
Dumb-smart indentation for Yaml
View yaml.vim
" Vim indent file
" Language: Yaml
" Author: Ian Young
" Get it bundled for pathogen: https://github.com/avakhov/vim-yaml
if exists("b:did_indent")
finish
endif
"runtime! indent/ruby.vim
"unlet! b:did_indent
You can’t perform that action at this time.