Skip to content

Instantly share code, notes, and snippets.

View nulligor's full-sized avatar
⚰️
nulligor.github.io

Igor Soares nulligor

⚰️
nulligor.github.io
  • Brazil
View GitHub Profile
@nulligor
nulligor / .vimrc
Last active July 19, 2021 22:48
vimrc
" ------ Plug bootstrapper ------
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
" nerdtree
#!/bin/bash
f=3
b=4
for i in f b; do
for j in {0..7}; do
printf -v "$i$j" "%b" "\e[${!i}${j}m"
done
done
# Inspired from: https://github.com/nicknisi/dotfiles/tree/master/tmux
# set is an alias for set-option
# setw is an alias for set-window-option
################## COLORS ##################
# Colors: https://i.stack.imgur.com/e63et.png
tm_color_active=colour208
tm_color_inactive=colour241
tm_color_neutral=colour255
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@nulligor
nulligor / .bash_prompt
Created April 5, 2019 19:11
sexy-bash-prompt
#!/usr/bin/env bash
# Sexy bash prompt by twolfson
# https://github.com/twolfson/sexy-bash-prompt
# Forked from gf3, https://gist.github.com/gf3/306785
# If we are on a colored terminal
if tput setaf 1 &> /dev/null; then
# Reset the shell from our `if` check
tput sgr0 &> /dev/null
# Clean everything
docker container stop $(docker container ls -a -q) && docker system prune -a -f --volumes
# Dockerized Mongo
docker run --name mongoinstance -d --rm -p 27017:27017 -v mongodb:/mongo/db mongo:latest
@nulligor
nulligor / update.sh
Created July 21, 2019 16:25
update.sh
#!/bin/bash
TEXT_RESET='\e[0m'
TEXT_YELLOW='\e[0;33m'
TEXT_RED_B='\e[1;31m'
sudo apt-get update -y
echo -e $TEXT_YELLOW
echo 'APT update finished...'
echo -e $TEXT_RESET
@nulligor
nulligor / w2vnotes.txt
Last active August 24, 2019 22:24
PT-BR Word Embedding Visualization Ideas
== Read Comment Section ==
@nulligor
nulligor / gist:7a18330dbce5016d4d9aa8e89d2ec9d6
Created August 2, 2019 22:36 — forked from sweenzor/gist:2933958
Kill all celery tasks (redis)
# nuke the queue
redis-cli FLUSHALL
# nuke anything currently running
pkill -9 celeryd
sudo snap install --classic eclipse