Skip to content

Instantly share code, notes, and snippets.

View dyoung522's full-sized avatar

Donovan C. Young dyoung522

View GitHub Profile
@dyoung522
dyoung522 / pa-docker.zsh
Created January 27, 2022 15:28
Docker compose aliases and commands
# Summary
# dc-start - starts docker-compose
# dc-stop - shuts down docker-compose and runs cleanup commands
# dc-restart - stops and then starts docker-compose
# dc-logs - displays and tails the docker-compose log files
# pa-docker | pa-docker-v3 <command> - runs the command inside the primary PA docker container
# Change this to be whatever docker-compose file you wish to use
COMPOSE_FILE=docker-compose-dev.yaml
@dyoung522
dyoung522 / .gitconfig
Last active March 12, 2020 20:59
git config file
[user]
email = dyoung522@gmail.com
name = Donovan Young
[credential]
helper = osxkeychain
[alias]
co = checkout
promote = !$ZSH/bin/git-promote
wtf = !$ZSH/bin/git-wtf
rank-contributers = !$ZSH/bin/git-rank-contributers
ProxyCommand ssh aws-gateway exec nc -w 10 %h %p
@dyoung522
dyoung522 / .rubocop.yml
Last active June 2, 2020 15:19
Rails rubocop.yml
AllCops:
TargetRubyVersion: 2.6.6
Exclude:
- db/**/*
- config/**/*
- script/**/*
- bin/**/*
- node_modules/**/*
Style/HashEachMethods:
@dyoung522
dyoung522 / proxy-settings.md
Last active July 17, 2017 19:27
Proxy ON/OFF scripts
  1. create a file named ~/.env-proxy-on with the following:
### PROXY STUFF
export NO_PROXY=127.0.0.1,localhost,192.168.99.100
export PROXY_HOST=192.168.50.100
export PROXY_PORT=3128
export PROXY=$PROXY_HOST:$PROXY_PORT
export PROXY_URL=http://$PROXY
export ALL_PROXY=$PROXY_URL
export HTTP_PROXY=$PROXY_URL
@dyoung522
dyoung522 / kafka-oracle-vm-config.md
Last active March 30, 2024 06:58 — forked from vipmax/kafka install systemd.md
kafka installation with systemd
  1. Install Kafka

    cd /opt
    curl -O http://www.gtlib.gatech.edu/pub/apache/kafka/0.11.0.0/kafka_2.11-0.11.0.0.tgz
    tar xvzf kafka_2.11-0.11.0.0.tgz
    ln -s kafka_2.11-0.11.0.0/ kafka
  2. Edit /usr/lib/systemd/system/kafka-zookeeper.service

@dyoung522
dyoung522 / getopt.sh
Last active August 22, 2016 16:59
Bash GetOpt example
#!/bin/bash
PROGRAM=$(basename $0)
VERSION="0.0.1"
OPT_VERBOSE=0
OPT_FORCE=0
OPT_CLEAN=0
OPT_TEST=0
# Verbose modes
@dyoung522
dyoung522 / README.md
Created June 23, 2016 20:07 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@dyoung522
dyoung522 / get_params_from_url.js
Last active February 15, 2016 21:04
JS: Retrieve params from the calling URL
export default {
getParams() {
const scripts = document.getElementsByTagName('script'),
myScript = scripts[scripts.length - 1],
query = myScript.src.replace(/^[^\?]+\??/, '');
let Params = {};
if ( !query ) { return Params } // return empty object
@dyoung522
dyoung522 / tech-questions.md
Last active September 12, 2016 17:50
Technical Interview Questions

Technical Interview Questions

General

  • In as much detail as you like, explain what happens when I type "google.com" into my browser's address bar and press enter.
  • Explain the difference between dynamic vs. static programming languages? What are the advantages/disadvantages of each?
  • What's something you love/hate about your favorite programming language?
  • What tools do you use for your day to day work? Language, IDEs/editors, version control, build systems, provisioning, etc.?
  • What's the difference between an class vs. an object?
  • What is inheritance? What are some alternate ways to reuse logic without using it? What are some downsides to it?