Skip to content

Instantly share code, notes, and snippets.

View BeKnowDo's full-sized avatar
:bowtie:
Focusing

Cesar Perez BeKnowDo

:bowtie:
Focusing
View GitHub Profile
@BeKnowDo
BeKnowDo / docker-config.md
Last active January 22, 2021 20:34
Docker: Step by step
@BeKnowDo
BeKnowDo / rhel.md
Last active January 22, 2021 16:13
Red Hat 8 Setup

Nginx

  • sudo dnf install nginx -y
  • sudo systemctl start nginx
  • firewall-cmd --permanent --zone=public --add-service=http
  • firewall-cmd --permanent --zone=public --add-service=https

** NOTE ** When adding NGINX entries within RHEL, apparently you MUST checkout your code into the /var/www/ directory. I will update this once I learn why NINX entries can't point outside of of this directory.

@BeKnowDo
BeKnowDo / mac-os-dev-setup.md
Last active April 22, 2021 20:19
MacOS Catalina Setup

MacOS Catalina Setup

Install Xcode

VS Code Installation

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

@BeKnowDo
BeKnowDo / History|-116e151a|entries.json
Last active December 24, 2022 01:30
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/cesarperez/web-projects/aba-applied-api/.gitignore","entries":[{"id":"TMvt","source":"Workspace Edit","timestamp":1670693277072}]}
@BeKnowDo
BeKnowDo / linux-commands.md
Last active December 4, 2020 15:00
Common Linux Commands

Common Linux Commands

The purpose of this this is to document every day commands we use in the terminal on linux based systems.
(we'll use ZSH as our shell)

Copy files to/from a remote server

The directory on the left is where you're coping FROM
scp -r /YOUR_LOCAL_DIRECTORY YOUR_USER_NAME@REMOTE_SERVER_IP:REMOTE_SERVER_DIRECTORY

Compressing Files

@BeKnowDo
BeKnowDo / ubuntu-setup.md
Last active March 10, 2024 15:05
Setting up Ubuntu for my development environment and other utilities

Ubuntu 20.04

Installing gDebi

sudo apt install gdebi-core

Sharing Drives via Samba

  • Install the taskel and samba server packages
    • sudo tasksel install samba-server
    • sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
    • sudo bash -c 'grep -v -E "^#|^;" /etc/samba/smb.conf_backup | grep . > /etc/samba/smb.conf'
  • sudo nano /etc/samba/smb.conf
@BeKnowDo
BeKnowDo / windows-10.md
Last active March 31, 2024 21:32
Windows 10 sucks...but we can make it less sucky. This is how I setup local development for Win10

Install Chocolately

Install ConEmu

  • Install via chocolately choco install conemu -y

Install Nginx

  • Install via chocolately choco install nginx -y ** The -y argument is to skip any confirmation messages...just install it. It's fine ;)
@BeKnowDo
BeKnowDo / redux-saga.md
Last active August 20, 2018 20:47
My assessment of Redux Saga

Redux Saga

  • Why would I use Redux Saga?
  • What is Redux Saga?
  • Features of Redux Saga
  • Redux Saga vs...

Why would I use Redux Saga?

  • Has a large and growing community with hundreds of contributors
  • Works great for both client and server environments
@BeKnowDo
BeKnowDo / palindrome.js
Created June 12, 2017 18:41
Palindrome
function palindrome(string) {
let reverseString = string.split('').reverse().join('')
return reverseString === string
}
document.querySelector('#test').innerHTML = palindrome('level')
@BeKnowDo
BeKnowDo / square-digits.js
Created June 12, 2017 18:40
Square Digits
function squareDigits(num) {
//may the code be with you
let number = num.toString(),
if (typeof number === 'string') {
let numberArray = number.split(''),
newArray = []
numberArray.forEach(function(item){
if(new Number(item)) {