Skip to content

Instantly share code, notes, and snippets.

View nandofarias's full-sized avatar

Fernando Farias nandofarias

View GitHub Profile
@nandofarias
nandofarias / docker-cheat-sheat.md
Created November 18, 2021 14:04 — forked from andredurao/docker-cheat-sheat.md
Docker Cheat Sheet

Build docker image

$ cd /path/to/Dockerfile
$ sudo docker build .

View running processes

@nandofarias
nandofarias / theme.js
Last active September 26, 2021 21:59
Blink Shell (Dracula Pro - Van Helsing)
black = '#0B0D0F';
red = '#FF9580';
green = '#8AFF80';
yellow = '#FFFF80';
blue = '#9580FF';
magenta = '#FF80BF';
cyan = '#80FFEA';
white = '#F8F8F2';
lightBlack = '#0B0D0F';
lightRed = '#FFAA99';
@nandofarias
nandofarias / init.toml
Created March 11, 2021 20:33
Spacevim config
#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2017 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at 163.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
# All SpaceVim option below [option] section
[options]

Keybase proof

I hereby claim:

  • I am nandofarias on github.
  • I am nandofarias (https://keybase.io/nandofarias) on keybase.
  • I have a public key ASAc-y5A8ibwcOvN8l3SWswA2YKp6sIWgeiNgjR97kbtxQo

To claim this, I am signing this object:

adb tcpip 5555
adb connect <device ip addr>:5555
adb devices
@nandofarias
nandofarias / README-Template.md
Created October 29, 2018 16:03 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

FROM circleci/buildpack-deps:sid-curl
RUN sudo curl -sLO https://storage.googleapis.com/kubernetes-release/release/v1.9.6/bin/linux/amd64/kubectl && sudo chmod +x kubectl && sudo mv kubectl /usr/bin
RUN sudo curl -sLO https://github.com/kubernetes/kops/releases/download/1.9.0/kops-linux-amd64 && sudo chmod +x kops-linux-amd64 && sudo mv kops-linux-amd64 /usr/bin/kops
RUN sudo apt-get update && sudo apt-get install -qq -y libpython-dev gettext docker python-pip python-setuptools wget
RUN sudo curl -sO https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
RUN sudo pip install -q awscli --upgrade
brew install youtube-dl
youtube-dl --extract-audio --audio-format mp3 "https://www.youtube.com/watch?v=YVdC7nZ6LNY"
ffmpeg -i "OUTPUT-OF-FIRST URL" -ss 00:00:15.00 -t 00:00:10.00 -c copy out.mp3
@nandofarias
nandofarias / Dockerfile
Created November 30, 2017 15:56
Dockerfile . node:alpine + bcrypt
FROM node:8.9.0-alpine
WORKDIR /usr/src/app
COPY package.json package-lock*.json npm-shrinkwrap*.json /usr/src/app/
RUN apk --no-cache add --virtual native-deps \
git g++ gcc libgcc libstdc++ linux-headers make python && \
npm install node-gyp -g &&\
npm install &&\
npm install nodemon &&\
npm rebuild bcrypt --build-from-source && \
npm cache clean --force &&\
@nandofarias
nandofarias / nodejs-custom-es6-errors.md
Last active October 19, 2017 16:05 — forked from slavafomin/nodejs-custom-es6-errors.md
Custom ES6 errors in Node.js

Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.

I've tried to make it as lean and unobtrusive as possible.

Defining our own base class for errors

errors/AppError.js