Skip to content

Instantly share code, notes, and snippets.

View dan-mi-sun's full-sized avatar

dan ✨ dan-mi-sun

View GitHub Profile
@leigler
leigler / digitalocean-dokku-kirby.md
Last active April 24, 2024 12:03
set up for digital ocean dokku install for kirby
  • This document references this post with a few updates regarding the git remote set up

Install

  1. set up digital ocean droplet w/ dokku installed
  • add ssh key ssh-keygen -t rsa
  • with proper dns configured w/ url: (first set up the url by following these directions)
  • go to your droplet's IP address and give the app url your hostname
  • add two A records, (@ and *) to direct the url to your IP address (this can be done w/ digital ocean's dns or with the dns managing the domain. For staging, you'll only need to set up one A record pointing towards your subdomain)
@derhuerst
derhuerst / offline.md
Last active October 3, 2018 20:30
working offline as JavaScript dev

working offline as JavaScript dev

use npm@5

npm installs large dependency trees a lot faster. this is especially noticable over slow networks.

Running npm while offline will no longer insist on retrying network requests. npm will now immediately fall back to cache if possible, or fail. (npm/npm#15666)

use node_modules/*/readme.md

@woudsma
woudsma / dokku-kirby-autogit.md
Last active May 15, 2021 17:32
Dokku + Kirby + AutoGit

TL;DR

  • Configure Kirby for Dokku
  • Install deployment-keys and host keys Dokku plugins
  • Set up staging and production environments
  • Clone project repository into apps persistent storage folders
  • Mount desired folders including .git folder to apps
  • Add GIT_DIR and GIT_WORK_TREE environment variables to containers
  • Deploy to Dokku
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@sockmonk
sockmonk / iterm2.md
Created October 3, 2011 16:44 — forked from chelmertz/iterm2.md
iterm2 cheatsheet
Function Shortcut
previous tab ⌘ + left arrow
next tab ⌘ + right arrow
go to tab ⌘ + number
go to window ⌘ + Option + Number
go to split pane by direction ⌘ + Option + arrow
go to split pane by order of use ⌘ + ] , ⌘ + [
split window horizontally (same profile) ⌘ + D
split window vertically (same profile) ⌘ + d