Skip to content

Instantly share code, notes, and snippets.

View rmfranciacastillo's full-sized avatar
🎯
Focusing

Renato Francia Castillo rmfranciacastillo

🎯
Focusing
View GitHub Profile
@rmfranciacastillo
rmfranciacastillo / ddev_drupal_gitignore
Last active May 24, 2024 00:54
DDEV Drupal gitignore
# gitignore template for Drupal 10 projects
#
# earlier versions of Drupal are tracked in `community/PHP/`
# Ignore configuration files that may contain sensitive information
/sites/*/*settings*.php
/sites/*/*services*.yml
# Ignore paths that may contain user-generated content
/sites/*/files
@rmfranciacastillo
rmfranciacastillo / myscript.sh
Created February 11, 2020 03:19 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@rmfranciacastillo
rmfranciacastillo / .vimrc
Last active January 26, 2020 23:32
A simple .vimrc file I use to develop
"NeoBundle Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/renato/.vim/bundle/neobundle.vim/
" Required:
call neobundle#begin(expand('/home/renato/.vim/bundle'))
@rmfranciacastillo
rmfranciacastillo / .bashrc
Last active January 26, 2020 23:28 — forked from alivedise/.bashrc
bashrc
#!/bin/bash
# If not running interactively, don't do anything.
# This snippet helps to fix scp, sftp "Received message too long" issue..
[ -z "$PS1" ] && return
# Source global definitions
[ -f /etc/bashrc ] && . /etc/bashrc
[ -f /etc/profile ] && . /etc/profile
@rmfranciacastillo
rmfranciacastillo / .bashrc
Created September 16, 2019 20:25 — forked from alivedise/.bashrc
bashrc
#!/bin/bash
# If not running interactively, don't do anything.
# This snippet helps to fix scp, sftp "Received message too long" issue..
[ -z "$PS1" ] && return
# Source global definitions
[ -f /etc/bashrc ] && . /etc/bashrc
[ -f /etc/profile ] && . /etc/profile
@rmfranciacastillo
rmfranciacastillo / docker-help.md
Created March 15, 2019 13:55 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@rmfranciacastillo
rmfranciacastillo / .eslintrc.json for node module development
Created February 26, 2019 19:31
This is a .eslintrc.json configuration used to develop a sample module
{
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"env": {
@rmfranciacastillo
rmfranciacastillo / Flatten JS array
Created January 16, 2019 06:38
Flattens an Array using JS
let arr = [[1,2,[3]], [[[4]]]];
let flatten = arr.reduce((acc, value) => acc.concat(value), []);
while(flatten.some((item) => Array.isArray(item))){
console.log(flatten);
flatten = flatten.reduce((acc, value) => acc.concat(value), []);
}
console.log(flatten)
@rmfranciacastillo
rmfranciacastillo / ssh.md
Created December 3, 2018 01:38 — 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