Skip to content

Instantly share code, notes, and snippets.

@natpenguin
natpenguin / gifgen.sh
Created January 28, 2020 06:02
Generating gif files from mov or mp4 in directory of Downloads
#!/bin/bash
# This script is going to generate .gif from .MP4 and .mov in the Downloads directory
echo 'Checking tools that are needed in this script...'
# Checking Homebrew for installing ffmpeg
if !(type 'brew' > /dev/null); then
echo 'Installing Homebrew...'
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
if !(type 'brew' > /dev/null); then
@rocarvaj
rocarvaj / .vimrc
Created April 27, 2012 21:28
Minimal .vimrc for C/C++ developers
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
" Author: Gerhard Gappmeier
"
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)