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 / .ideavimrc
Created October 30, 2019 23:32
.ideavimrc
let mapleader = ' '
set number
set incsearch hlsearch
set ignorecase smartcase
set clipboard=unnamed
set scrolloff=5
set showmode
set surround
set commentary
@nulligor
nulligor / settings.xml
Created September 16, 2019 16:58
settings.xml default
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
sudo snap install --classic eclipse
@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
@nulligor
nulligor / w2vnotes.txt
Last active August 24, 2019 22:24
PT-BR Word Embedding Visualization Ideas
== Read Comment Section ==
@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
# 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 / .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
;; -*- 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
# 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