What this will cover
- Host a static website at S3
- Redirect
www.website.com
towebsite.com
- Website can be an SPA (requiring all requests to return
index.html
) - Free AWS SSL certs
- Deployment with CDN invalidation
$ git reflog expire --expire=1.minute refs/heads/master | |
$ git fsck --unreachable | |
$ git prune | |
$ git gc | |
Reference: http://www.newartisans.com/blog/2008/04/diving-into-git.html | |
Basically this removes all reflogs that are older than a minute for the master branch, finds and deletes any commits that aren’t being used, then does some general cleanup on the whole repository to further compress it. This could have had its own tip, but it’s probably better to illustrate a great use of the subject’s subcommands in your workflow. | |
-- http://gitready.com/intermediate/2009/02/09/reflog-your-safety-net.html |
# Make symbolic link for chocolatey default install | |
# cmd | |
mklink /D "C:\ProgramData\chocolatey" 'C:\ProgramData\chocolatey' | |
# powershell Admin | |
New-Item -ItemType SymbolicLink -Path "C:\ProgramData\chocolatey" -Target "D:\Bin\chocolatey" |
### Keybase proof | |
I hereby claim: | |
* I am john20xdoe on github. | |
* I am arekkushisu (https://keybase.io/arekkushisu) on keybase. | |
* I have a public key ASCNBjvLqjSSqnZbsQAk7xphxLWUIzQVqWdoT9O_FzZodgo | |
To claim this, I am signing this object: |
{"lastUpload":"2020-04-21T01:22:44.724Z","extensionVersion":"v3.4.3"} |
sudo docker run --detach \
--hostname gitlab.local \
--publish 10040:80 --publish 10041:443 --publish 10042:22 \
# Remove all containers | |
docker stop $(docker ps -a -q) | |
# Option 1 | |
docker rm $(docker ps -a -q) | |
#Option 2 | |
docker rm -f -v $(sudo docker ps -a -q) | |
# Remove untagged containers only | |
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}") |
# based on https://coderwall.com/p/guqrca/remove-all-node_module-folders-recursively | |
# Run this inside the parent folder containing your node projects. | |
# -prune lets the command not have to go into the children node_mdules. | |
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + |
# MAC commands | |
# Alias commands for enable show.hide all files | |
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app' | |
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app' | |
# iTerm2 | |
# Set CLICOLOR if you want Ansi Colors in iTerm2 | |
export CLICOLOR=1 | |
# Set colors to match iTerm2 Terminal Colors |