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
;= @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 / 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;
@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 / 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
@herrera-ignacio
herrera-ignacio / vim-custom.md
Last active April 26, 2020 23:54
Vim configuration
@herrera-ignacio
herrera-ignacio / promises.js
Created March 30, 2020 17:58
Playing with Promises in Javascript
// Promises javascript example
// Maximize asynchronous benefits!
const makePromise = (num) => () => new Promise((resolve, reject) => {
return setTimeout(() => {
console.log(num)
resolve();
}, 1000 * Math.floor(3 * Math.random()))
});
@herrera-ignacio
herrera-ignacio / iterm2.md
Created March 16, 2020 02:02 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)