Skip to content

Instantly share code, notes, and snippets.

View john20xdoe's full-sized avatar
:shipit:

Lee Alexis john20xdoe

:shipit:
  • Philippines
View GitHub Profile
@john20xdoe
john20xdoe / keybase.md
Last active January 24, 2018 01:28
Keybase proof of ownership

Keybase proof

I hereby claim:

  • I am john20xdoe on github.
  • I am arekkushisu (https://keybase.io/arekkushisu) on keybase.
  • I have a public key whose fingerprint is 2F88 CF26 9C22 AAB9 5291 8B14 8462 63D0 D793 88B6

To claim this, I am signing this object:

@john20xdoe
john20xdoe / docker_clear.txt
Last active January 18, 2018 03:29
Docker clear image commands (local copies)
# stop all instances and remove
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)
# force remove wih sudo
docker rm -f -v $(sudo docker ps -a -q)
# remove only untagged
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
@john20xdoe
john20xdoe / launch.json
Created January 24, 2018 01:27
VS Code config for Atlassian SDK developers
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
/*
* This attaches the VSCode debugger to the JIRA instance created by a `atlas-debug` command.
* Before attaching the debugger, you need to run `atlas-debug` to spin up a JIRA instance.
* Default port is 5005.
* Reference: https://developer.atlassian.com/server/framework/atlassian-sdk/creating-a-remote-debug-target/
*/
"version": "0.2.0",
"configurations": [
@john20xdoe
john20xdoe / System Design.md
Created March 26, 2018 08:05 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@john20xdoe
john20xdoe / .bash_profile
Last active April 2, 2018 00:52
Mac OS bash profile for improving terminal and common needs
# 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
@john20xdoe
john20xdoe / bash
Created July 9, 2018 01:04
Remove all node_modules recursively using bash
# 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 '{}' +
@john20xdoe
john20xdoe / docker_commands.txt
Last active December 10, 2018 02:42
Docker and Git commands
# 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}")
@john20xdoe
john20xdoe / app-store-badge.svg
Created January 26, 2019 05:50
Play Store and App Store download icons
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@john20xdoe
john20xdoe / readme.md
Last active March 14, 2019 02:22
Gitlab CE run command

ultrarangers/gitlab-ce:latest

  • Creates data volume in your user directory, in folder named 'gitlab'
  • URL: //localhost:10040
  • Container name: gitlab
sudo docker run --detach \
  --hostname gitlab.local \
 --publish 10040:80 --publish 10041:443 --publish 10042:22 \
@john20xdoe
john20xdoe / cloudSettings
Last active July 21, 2023 01:03
VSCode public settings for Dev 1 team
{"lastUpload":"2020-04-21T01:22:44.724Z","extensionVersion":"v3.4.3"}