Skip to content

Instantly share code, notes, and snippets.

View ggsalas's full-sized avatar

Gabriel Salas ggsalas

View GitHub Profile
@ggsalas
ggsalas / Clarin_1000.recipe
Created November 6, 2019 01:20
Recipe for Calibre to get clarin.com
#!/usr/bin/env python2
# -*- mode: python -*-
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
__license__ = 'GPL v3'
__copyright__ = '2008-2016, Darko Miletic <darko.miletic at gmail.com>'
'''
clarin.com
'''
@ggsalas
ggsalas / Diario La Capital de Mar del Plata_1005.recipe
Created November 6, 2019 01:19
Recipe for Calibre to get lacapitalmdp.com
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import AutomaticNewsRecipe
from calibre import strftime
class BasicUserRecipe1572999042(AutomaticNewsRecipe):
title = 'Diario La Capital de Mar del Plata'
oldest_article = 1
max_articles_per_feed = 35
@ggsalas
ggsalas / Diario Perfil_1003.recipe
Last active November 6, 2019 01:19
Recipe for Calibre to get https://www.perfil.com
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
from calibre import strftime
class AdvancedUserRecipe1572824592(BasicNewsRecipe):
title = 'Diario Perfil'
oldest_article = 1
max_articles_per_feed = 35
@ggsalas
ggsalas / alarcitty.yml
Created August 11, 2019 01:55
Alarcitty config
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@ggsalas
ggsalas / .tmux.conf
Created August 11, 2019 01:54
Tmux config
unbind-key C-b
set-option -g prefix C-s
bind-key -r C-s send-prefix
set-environment -g "LC_ALL" "en_US.UTF-8"
set -g default-terminal "screen-256color"
set-option -ga terminal-overrides ",xterm-256color*:Tc:smso"
# Allow us to reload our Tmux configuration while
bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
{
"suggest.echodocSupport": true,
"suggest.maxCompleteItemCount": 20,
"prettier.eslintIntegration": true,
"prettier.tslintIntegration": true,
"coc.preferences.formatOnSaveFiletypes": ["javascript", "typescript", "typescriptreact", "json", "javascriptreact"],
"eslint.filetypes": ["javascript", "typescript", "typescriptreact", "javascriptreact"],
"diagnostic.errorSign": "x",
"diagnostic.warningSign": "i",
"diagnostic.infoSign": "-"
@ggsalas
ggsalas / multipleSelect.js
Created May 28, 2019 13:52
multiple selection array, inspired on selection of gmail list of emails
// Reusable function to select multimple itens
// with start and end element
// array: array of elements to select
// selection: previously selected elements
// start: first element selected
// end: last element selected
function multipleSelect(array, selection, start, end) {
const startIndex = array.findIndex(item => item == start)
const endIndex = array.findIndex(item => item == end)
@ggsalas
ggsalas / .zshrc
Last active August 11, 2019 01:56
My zsh config
source /usr/local/share/antigen/antigen.zsh
export PATH="/usr/local/bin:$PATH"
export EDITOR='nvim'
#################################################################################
# Load plugins
#################################################################################
antigen use oh-my-zsh
antigen bundle git
antigen bundle command-not-found
@ggsalas
ggsalas / kitty.conf
Last active January 10, 2023 18:34
Kitty terminal - one dark theme [~/.config/kitty/kitty.conf]
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
# font_family Monaco
font_family Source Code Pro
@ggsalas
ggsalas / .bashrc
Created June 24, 2018 23:43
All my config on .bashrc and a symbolic link to .bash_profile to get work on Neovim-terminal
# GIT autocompleted
# Download from: https://gist.github.com/carlosvillu/e4ada4f991d495d07604
# then do: $ source ~/.bash_profile
source ~/.git-completion.sh
# prompt
# https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/
# 38: front color, 48: background color
light="\[\033[38;5;8m\]"
normal="\[\033[38;5;7m\]"