Skip to content

Instantly share code, notes, and snippets.

@cowboy
cowboy / simple-iife-example.js
Last active December 12, 2015 03:49
IIFE: the simplest example i can contrive
var value, getValue;
value = 1;
getValue = function() { return value; };
value = 2;
getValue() // 2
var value, getValue;
value = 1;
@holmberd
holmberd / deploy-keys.md
Last active February 11, 2024 20:36
Setup GitHub repository SSH deploy keys

Setup GitHub repository SSH deploy keys

  1. Create GitHub repository in github and save the SSH repository url

  2. Init git on server in code directory

  • git init
  1. Create SSH keys on the server
  • ssh-keygen -t rsa -b 4096 -C [email protected]
  • Rename the key that doesn't end with .pub to repo-name.deploy.pem