Skip to content

Instantly share code, notes, and snippets.

View pak11273's full-sized avatar
💭
I may be slow to respond.

Isaac Pak pak11273

💭
I may be slow to respond.
View GitHub Profile
* {
box-sizing: border-box;
max-width: 100%;
}
html {
/* browser font-size is usually 16px */
/* em relies on parent font-size */
/* root font-size */
font-size: 62.5%;
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
# Add these lines to the bottom of your .bash_profile
# Enable tab completion
source ~/git-completion.bash
# colors!
green="\[\033[0;32m\]"
blue="\[\033[0;34m\]"
purple="\[\033[0;35m\]"
reset="\[\033[0m\]"
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@pak11273
pak11273 / gist:873eb6e305bd807f2d5cd0650dc597e8
Last active February 4, 2021 19:11
git-completion.bash
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
@pak11273
pak11273 / gist:27592c841b9bfcf2fb8d3b2a20a9f532
Created January 26, 2021 05:22
Dockerfile Web (Golang)
# indicates the base image to use which is golang
FROM golang:1.15-alpine3.12
# sets the port environment variable
ENV PORT=8080
RUN mkdir /app
# adds the src directory from the host to the image
ADD ./web /app
@pak11273
pak11273 / gist:7c467790fee14d78a5816bebeca9db59
Last active February 14, 2021 23:31
Github Actions prod.yml
name: Build Containers for Prod & Push to Dockerhub
# Anytime a pull request or push to master branch occurs then do the following jobs
# commented out docker actions and using opspresso for now
on:
pull_request:
branches:
- master
push:
branches:
# Grabbing changes from the original repo that you cloned locally
git fetch && git reset --hard origin/<branch name>
@pak11273
pak11273 / gist:77b3b85f4ce570da08ab43d2843c483d
Last active January 24, 2021 15:18
Dockerfile Client (React)
FROM node:lts-alpine
# A directory inside the docker container
WORKDIR /usr/src/app
# Copies everything over to Docker environment
COPY ./client .
# Installs all node packages
RUN npm install
@pak11273
pak11273 / gist:edfcc2d5b5f41e08a9cab2632a9087cb
Last active January 24, 2021 15:18
Dockerfile Server (Golang)
# indicates the base image to use which is golang
FROM golang:1.15-alpine3.12
# sets the GIN_MODE environment variable
ENV GIN_MODE=release
# sets the port environment variable
ENV PORT=3004
RUN mkdir /app