Skip to content

Instantly share code, notes, and snippets.

View ninrod's full-sized avatar
🤓
git commiting since 2014

Filipe Silva ninrod

🤓
git commiting since 2014
View GitHub Profile
@ninrod
ninrod / gist:3fd831932e23b3fe65f7f60c73bb5898
Created February 20, 2018 22:57 — forked from airblade/gist:10651609
Vim testing frameworks

In no particular order:

  • vroom

    • uses vim as a server
    • implemented in python
    • tests written in custom syntax
  • vimrunner

    • uses vim as a server
  • implemented in ruby

@ninrod
ninrod / remove-docker-containers.md
Created August 22, 2017 17:54 — forked from ngpestelos/remove-docker-containers.md
How to remove unused Docker containers and images
  1. Delete all containers

     $ docker ps -q -a | xargs docker rm
    

-q prints only the container IDs -a prints all containers

Notice that it uses xargs to issue a remove container command for each container ID

  1. Delete all untagged images
@ninrod
ninrod / gist:a29a99a20e695ba1a2ce7e774803a501
Created May 3, 2017 03:45 — forked from nilo/gist:c2a31a0f9f29c88145ca
Using cedilha - ArchLinux Cinnamon
Author: Nilo Dantas - n1lo
Based on: https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/518056 - helio-valente post
How to use Cedilha on US Keyboard on ArchLinux
1) Put: English(US, internacional with dead Keys) on your system keyboard layout.
2) Editing the files:
sudo vim /usr/lib/gtk-3.0/3.0.0/immodules.cache
@ninrod
ninrod / swapesc
Created May 3, 2017 03:21 — forked from berkes/swapesc
#!/bin/bash
current=$(dconf read /org/gnome/desktop/input-sources/xkb-options)
swapped="['caps:swapescape']"
capslock="['caps:capslock']"
echo "Current status: $current"
if [ "$current" == "$swapped" ]
then
echo "Making caps and escape WORK NORMALLY"
@ninrod
ninrod / react_fiber.md
Created February 9, 2017 12:51 — forked from geoffreydhuyvetters/react_fiber.md
What is React Fiber? And how can I try it out today?
@ninrod
ninrod / bash_colours
Created January 20, 2017 14:55 — forked from ian128K/bash_colours
Shell script colours
## Colours and font styles
## Syntax: echo -e "${FOREGROUND_COLOUR}${BACKGROUND_COLOUR}${STYLE}Hello world!${RESET_ALL}"
# Escape sequence and resets
ESC_SEQ="\x1b["
RESET_ALL="${ESC_SEQ}0m"
RESET_BOLD="${ESC_SEQ}21m"
RESET_UL="${ESC_SEQ}24m"
# Foreground colours
@ninrod
ninrod / init.el
Last active January 18, 2017 12:16
boostraping an emacs configuration from inside a corporate proxy through a mirror repo
(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives '(("melpa" . "~/.emacs.d/mirror-elpa/melpa/")
("org" . "~/.emacs.d/mirror-elpa/org/")
("gnu" . "~/.emacs.d/mirror-elpa/gnu/")))
(package-initialize)
;; Bootstrap John Wigley's `use-package'
(unless (package-installed-p 'use-package)
@ninrod
ninrod / actionlist.vim
Created December 2, 2016 19:56 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@ninrod
ninrod / god-state.el
Created November 21, 2016 14:21 — forked from gridaphobe/god-state.el
evil-mode god state
(evil-define-state god
"God state."
:tag " <G> "
:message "-- GOD MODE --"
:entry-hook (evil-god-start-hook)
:exit-hook (evil-god-stop-hook)
:input-method t
:intercept-esc nil)
(defun evil-god-start-hook ()
@ninrod
ninrod / org-mode-reference-in.org
Created October 9, 2016 21:16 — forked from drj42/org-mode-reference-in.org
This is a cheat sheet for Emacs org-mode... in org-mode format!