Skip to content

Instantly share code, notes, and snippets.

View herrera-ignacio's full-sized avatar
💻
Hacking

Nacho Herrera herrera-ignacio

💻
Hacking
View GitHub Profile
@herrera-ignacio
herrera-ignacio / ec2-apache.sh
Created July 26, 2019 01:01
EC2 User data: install Apache web server for Amazon Linux 2 Image
#!/bin/bash
########################################
##### USE THIS WITH AMAZON LINUX 2 #####
########################################
# get admin privileges
sudo su
# install httpd (Linux 2 version)
@herrera-ignacio
herrera-ignacio / demo.ts
Created August 13, 2020 23:26
React - AuthContext & Provider
//== src/context/AuthContext.ts ==//
import { createContext, useContext } from 'react';
import { User } from 'src/store/types/user';
import { userInitialState } from 'src/store/reducers/user';
export type AuthContextProps = {
isLoading: boolean;
isAuthenticated: boolean;
user: User;
;= @echo off
;= rem Call DOSKEY and use this file as the macrofile
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0%
;= rem In batch mode, jump to the end of the file
;= goto:eof
;= Add aliases below here
;= ## SYSTEM ##
ls=ls --show-control-chars -F --color -a $*
pwd=cd
@herrera-ignacio
herrera-ignacio / daily-operator.md
Last active December 11, 2021 01:52
Daily Operator Handbook

Daily Operator Handbook

Docker

  • docker ps
  • docker kill <container>
  • docker logs -f <container>

Networking & OS

@herrera-ignacio
herrera-ignacio / mac-productivity.md
Last active June 16, 2021 20:41
Mac Productivity
@herrera-ignacio
herrera-ignacio / windows-productivity.md
Last active May 16, 2021 03:20
Windows Productivity Tools
@herrera-ignacio
herrera-ignacio / resume.md
Last active May 26, 2020 14:38
My Resume

Resume

me

My latest PDF resume is here!

About Me

I love what I do, I've been programming since I was 7 years old, and it has become not only my profession but my hobby.

@herrera-ignacio
herrera-ignacio / vim.md
Last active May 17, 2020 23:43
Vim Cheat Sheet

Cheat sheet

Splits

  • :split <file>
  • :<lines_height>sp <file>
  • :vs <file>
  • Ctrl+w+<direction> to move between splits

Remember you can use Ctrl+^(6) to switch between buffers.

@herrera-ignacio
herrera-ignacio / vim-custom.md
Last active April 26, 2020 23:54
Vim configuration
@herrera-ignacio
herrera-ignacio / windows.md
Created April 26, 2020 22:05
Windows Productive Development

Windows Development Environment

How to setup your Windows Productive & Appealing environment, in my case I mostly use Node.js, React/React-Native, and C++.

Software

Software

  • Scoop / Chocolatey (Package manage)
  • Virtual Box