Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Isaac Pak pak11273

I may be slow to respond.
View GitHub Profile
pak11273 /
Created Nov 3, 2018 — forked from noelboss/
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like or and pull or export it to a production server. Or you use a service like my to act upon a Web-Hook that's triggered that service.

View gist:2ed637f53aa92c7faceba83adece3d62
// Basic Setup
// Create a Dockerfile and .dockerignore in root directory
// Run any npm scripts required (ie. babel build scripts)
// Build the container (don't forget the period at the end)
docker build -t <username>/<app name> .
ie. docker build -t pak11273/example:1.0.0 .
View gist:9d4d9ba195381131994e09b1f3733262
// VIM
// When copy/pasting react code, turn off vim autoclose tags
// vim batch command
:cdo s/pattern/newpattern/g | update
// repeat a macro with visual mode
View gist:19b5329199939d7f69d56f97fe50b848
// when pulling sub directories from git clone
git pull --depth=1 origin master
View gist:2e1db7c00afba3750994dfb0e81f7e74
# template ref:
# Custom
View gist:f393ec1e42eb64a116cf82a29b5281e9
# See for more about ignoring files.
# dependencies
# testing
View gist:bbdcffb45dfcad77ef2c1916d216a6c7
"compilerOptions": {
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"module": "commonjs",
"removeComments": true,
"sourceMap": true,
"target": "es5",
"outDir": "dist"
View gist:f23dd60b4a7228ab3a93f16b3ade1c85
I. Delete local/temp files and folders
*) Press WINDOWS-R on the keyboard to bring up the Run window.
*) Type %TMP% and then click OK.
*) Delete the contents of the folder that opens up.
II. Delete windows update files manually (Windows 7 / 10)
*) Stop the Windows update service before we can clear the update cache. To do that, search for “Services” in the Start menu and open it. If you are using your system as a standard user, then open it as an administrator using the right-click menu.
*) Run as administrator Windows Services
*) Once the Services window has been opened, find the service “Windows Update,” right-click on it and then select the option “Stop.” This action stops the Windows update service
*) Stop Windows Update Service
View gist:a1a37ddd44dde3c0592eecc40b0ce997
Clone the repo: git clone
Switch branches to issue-716-fix-broken-hints
choco install make
Run npm install and then make.
Go to chrome://extensions in browser and select the "Load Unpacked Extension" button (may need developer mode enabled).
Navigate to the git cloned directory
copy/paste this config: let blacklists = ["*://","*","*://*","@*","*","*","*"]
Once all of this is done, go back to chrome://extensions and turn off developer mode
View bashrc
# formatting container list
alias dockerps='docker ps --format="ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.CreatedAt}}\nSTATUS\t{{.Status}}\n"'
# formatting images list
alias dockerimages='docker images --format="ID\t{{.ID}}\nREPOSITORY\t{{.Repository}}\nTAG\t{{.Tag}}\nCREATED\t{{.CreatedAt}}\nSIZE\t{{.Size}}\n"'