Skip to content

Instantly share code, notes, and snippets.

View dphilla's full-sized avatar
🦀
Focusing

Dan Phillips dphilla

🦀
Focusing
View GitHub Profile
@dphilla
dphilla / invite_codes.txt
Created November 20, 2024 01:23
invite_codes.txt
INVITE-AB1234
INVITE-AB5678
INVITE-AB9012
INVITE-AB3456
INVITE-AB7890
INVITE-AB2345
INVITE-AB6789
INVITE-AB0123
INVITE-AB4567
INVITE-AB8901
@dphilla
dphilla / tmux.sh
Created October 9, 2024 15:57
Fresh tmux setup + configure
#!/bin/bash
# This script installs tmux and configures it with common key bindings and settings.
#
# Usage:
# chmod +x tmux.sh
# ./tmux.sh or bash tmux.sh
# Determine the OS
ios="$(uname)"
@dphilla
dphilla / puma.rb
Last active January 15, 2021 00:24
basic puma.rb
# basic mina puma.rb
# Change to match your CPU core count
workers 1 # note this will be the number of app instances running on the machine!
# Min and Max threads per worker
threads 0, 5
app_dir = File.expand_path("../..", __FILE__)
shared_dir = "#{app_dir}"
@dphilla
dphilla / ngnix_server
Last active December 18, 2020 19:29
basic_ngnix_server
# from mina production
# Ubuntu 20.04
# /etc/nginx/sites-available/mina symlinked to /etc/nginx/sites-enabled/mina
# todo: more needed here for redirects, static pages, etc**
upstream mina {
server unix:///home/mina/app/shared/tmp/sockets/puma.sock;
}
server {
@dphilla
dphilla / long_and_helpful_git_commands.md
Last active June 18, 2018 18:32
Long and Helpful Git Commands

git merge-tree "git merge-base branch_1 branch_2" branch_1 branch_2 | grep -A3 "changed in both"

git log --oneline --decorate --all --graph for fun

<h1> hi </h1>
@dphilla
dphilla / my_file.md
Created April 23, 2018 17:21
a new gist

header

something

bold

strike

@dphilla
dphilla / .bashrc
Created February 16, 2018 21:39
Ubuntu .bashrc
# for examples
eval "$(rbenv init -)"
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac