Skip to content

Instantly share code, notes, and snippets.

View RavenHursT's full-sized avatar
💭
Currently Job Searching. Please reach out if you might have something!

Matthew Marcus RavenHursT

💭
Currently Job Searching. Please reach out if you might have something!
View GitHub Profile
@vlaja
vlaja / config.yml
Last active July 11, 2024 23:48
Firebase multi-site deployment config for CircleCI
version: 2.1
executors:
node10:
docker:
- image: circleci/node:10
working_directory: ~/project
commands:
build:
@syafiqfaiz
syafiqfaiz / how-to-copy-aws-rds-to-local.md
Last active November 13, 2024 14:24
How to copy production database on AWS RDS(postgresql) to local development database.
  1. Change your database RDS instance security group to allow your machine to access it.
    • Add your ip to the security group to acces the instance via Postgres.
  2. Make a copy of the database using pg_dump
    • $ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
    • you will be asked for postgressql password.
    • a dump file(.sql) will be created
  3. Restore that dump file to your local database.
    • but you might need to drop the database and create it first
    • $ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
  • the database is restored
@RavenHursT
RavenHursT / js-phonescreen-questions.js
Last active August 12, 2022 22:22
Questions for JavaScript phone screen
//What does this do? What is it called? What is it typically used for?
(function () {
// Code
})();
//What does this do and what does it output?
function Obj() {
this.foo = "FOO"
this.func = function () {
var self = this
@staltz
staltz / introrx.md
Last active November 14, 2024 11:27
The introduction to Reactive Programming you've been missing
@RavenHursT
RavenHursT / .bash_aliases
Last active April 6, 2018 19:41
.bash_aliases
alias cp='cp -iv' # Preferred 'cp' implementation
alias mv='mv -iv' # Preferred 'mv' implementation
alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation
alias ll='ls -FGlAhp' # Preferred 'ls' implementation
alias less='less -FSRXc' # Preferred 'less' implementation
cd() { builtin cd "$@"; ll; } # Always list directory contents upon 'cd'
alias cd..='cd ../' # Go back 1 directory level (for fast typers)
alias ..='cd ../' # Go back 1 directory level
alias ...='cd ../../' # Go back 2 directory levels
alias .3='cd ../../../' # Go back 3 directory levels
@RavenHursT
RavenHursT / .bash_profile
Last active April 9, 2018 18:21
Mac OSX .bash_profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@milligramme
milligramme / bash_completion
Created January 20, 2012 08:13
brew install bash-completion
$ brew install bash-completion
==> Downloading http://bash-completion.alioth.debian.org/files/bash-completion-1.3.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/bash-completion/1.3
==> make install
==> Caveats
Add the following lines to your ~/.bash_profile file:
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi