Skip to content

Instantly share code, notes, and snippets.

View ghostafbr's full-sized avatar
👻
/bb|[^b]{2}/

Andrés Felipe Bolaños ghostafbr

👻
/bb|[^b]{2}/
View GitHub Profile
@ghostafbr
ghostafbr / Dockerfile
Created August 27, 2023 02:11 — forked from Klerith/Dockerfile
Preparar imagen de Docker - Node App
# Install dependencies only when needed
FROM node:18-alpine3.15 AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
@ghostafbr
ghostafbr / heroes-with-desc.js
Created February 9, 2023 04:02
Super heroes collection
export const heroes = [
{
'id': 'dc-batman',
'superhero':'Batman',
'publisher':'DC Comics',
'alter_ego':'Bruce Wayne',
'first_appearance':'Detective Comics #27',
'characters':'Bruce Wayne'
},
{
@ghostafbr
ghostafbr / git-alias.md
Created November 20, 2022 05:26 — forked from Klerith/git-alias.md
Useful Git Alias

Log

git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"

Status

git config --global alias.s status --short

Alternativa útil de status

git config --global alias.s status -sb

@ghostafbr
ghostafbr / OSX-Convert-MOV-GIF.md
Created May 16, 2021 01:39 — forked from tskaggs/OSX-Convert-MOV-GIF.md
Creating GIFs from .MOV files in OSX using FFmpeg and ImageMagick

Convert MOV to GIF using FFmpeg and ImageMagick

I tried a few different techniques to make a GIF via command-line and the following gives me the best control of quality and size. Once you're all setup, you'll be pumping out GIFs in no time!

Preparation

Install FFmpeg

  • $ brew install ffmpeg [all your options]
    • Example: $ brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools

Install ImageMagick

@ghostafbr
ghostafbr / cloudSettings
Created July 19, 2020 19:48
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-19T14:48:32.814Z","extensionVersion":"v3.4.3"}