Skip to content

Instantly share code, notes, and snippets.

View lifeeric's full-sized avatar
📚
infinity Explorer

Eric R. lifeeric

📚
infinity Explorer
View GitHub Profile
@lifeeric
lifeeric / pls_react_function_component.zsh
Created July 17, 2020 05:04 — forked from NOMADE55/pls_react_function_component.zsh
Adds a React Function Component in the supplied directory.
#!/bin/zsh
#
# React Function Component Maker made with ❤ by Lucas G. Terracino
#
# Help
show_help() {
# Display help
echo "Usage: pls_react_function_component [OPTION]... COMPONENT..."
echo "Adds a React Function Component in the supplied directory."
echo ""
@lifeeric
lifeeric / webdev_online_resources.md
Created August 5, 2020 12:04 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
Serial Keys:
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD
GV7N2-DQZ00-4897Y-27ZNX-NV0TD
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0
GZ3N0-6CX0L-H80UP-FPM59-NKAD4
YY31H-6EYEJ-480VZ-VXXZC-QF2E0
ZG51K-25FE1-H81ZP-95XGT-WV2C0
VG30H-2AX11-H88FQ-CQXGZ-M6AY4
@lifeeric
lifeeric / docker_wordpress.md
Created August 9, 2020 04:02 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@lifeeric
lifeeric / ssh.md
Created August 9, 2020 04:09 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

@lifeeric
lifeeric / youtube-dl-pluralsight.md
Created August 9, 2020 04:11 — forked from mavericksrini/youtube-dl-pluralsight.md
Download Pluralsight videos

Download Plural Sight videos

Software required:

youtube-dl

After installation and putting the youtube-dl in PATH

youtube-dl --username YOUR_USERNAME --password YOUR_PASSWORD --all-subs https://app.pluralsight.com/library/courses/javascript-development-environment -o "~/video/%(playlist)s/%(chapter_number)s. %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s" --sleep-interval 10

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@lifeeric
lifeeric / docker-help.md
Last active August 12, 2020 04:51 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r <session_name>
const bulkPhoneNumberList = invitations.map(person => {
return `{\"binding_type\":\"sms\",\"address\":\"+1${person.phone_number}\"}`;
});
const response = await client.notify
.services(process.env.TWILIO_NOTIFY_SID)
.notifications.create({
toBinding: phoneNumberList,
body: `Welcome to HyperCarrot! \nYou've been invited by ${orgName}. Click below to get started!\n${
process.env.FRONTEND_URL