Skip to content

Instantly share code, notes, and snippets.

View Santiago-j-s's full-sized avatar

Santiago Santana Santiago-j-s

View GitHub Profile
{
"yii_log" : {
"title" : "Yii Log",
"description" : "Default Yii Logs.",
"url" : "https://www.yiiframework.com/doc/guide/2.0/en/runtime-logging",
"regex" : {
"basic" : {
"pattern" : "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}) \\[(?<ip>\\d{1,4}\\.\\d{1,4}\\.\\d{1,4}\\.\\d{1,4})\\]\\[-?(?<user>\\d*)\\]\\[-\\]\\[(?<level>\\w*)\\]\\[(?<category>.*)\\](?<body>.*$)"
}
},
@Santiago-j-s
Santiago-j-s / .aliases
Last active November 22, 2019 12:18
dotfiles
alias gty='gtypist esp.typ'
alias gst='git status'
alias cat='bat'
alias ls='exa'
alias lc='ls --color="always"'
alias ll='exa --long --header --group'
alias la='exa -a'
alias lg='exa --git --long'
alias l='exa -a --long --header --group'
alias lsnew='exa --sort new -1'
@Santiago-j-s
Santiago-j-s / resultados.py
Last active June 15, 2018 18:29
resultados.py
#!/usr/bin/env python3
import requests
partidos = requests.get('http://worldcup.sfg.io/matches').json()
[
print(
p['home_team']['country'], p['home_team']['goals'],
'x',
p['away_team']['country'], p['away_team']['goals'],
@Santiago-j-s
Santiago-j-s / keybase.md
Created June 19, 2018 10:38
keybase.md

Keybase proof

I hereby claim:

  • I am santiago-j-s on github.
  • I am santiagojs (https://keybase.io/santiagojs) on keybase.
  • I have a public key ASDPJziE-EK3zSEzY7BImBzGuhMYxDtYhKG3OQd9tXT1eQo

To claim this, I am signing this object:

@Santiago-j-s
Santiago-j-s / rate_monotonic.ipynb
Created August 30, 2018 01:10
Tiempo Real - Planificación por Rate Monotonic
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Número Apellido y Nombre Documento Mesa
1 ABADIE, JULIANA 37605327 1
2 ABALLAY, FLORENCIA NATALIA 37149566 1
4 ACOSTA, NOELIA CANDELARIA 37149543 1
5 AGUILA SILVA, MORONI ANTONIO 94590804 1
6 AGUILA, LUCAS NICOLAS 36709053 1
7 AGUILAR CASTRO, CLAUDIA EDITH 37068515 1
8 AGUILAR, BRENDA JANET 37899583 1
9 AGUIRRE, FACUNDO GASTON 37068643 1
10 ALBAR, ADRIANA NORA 37150113 1
@Santiago-j-s
Santiago-j-s / vag.theme
Created October 1, 2018 16:27
Vag Theme
[Scheme]
Name=Vag
ColorCursor=#D9E6F2
ColorForeground=#D9E6F2
ColorBackground=#191F1D
TabActivityColor=#88C0D0
ColorPalette=#303030;#A87139;#39A871;#71A839;#7139A8;#A83971;#3971A8;#8A8A8A;#494949;#B0763B;#3BB076;#76B03B;#763BB0;#B03B76;#3B76B0;#CFCFCF
ColorBold=#D8DEE9
ColorBoldUseDefault=FALSE
@Santiago-j-s
Santiago-j-s / init.vim
Created October 18, 2018 22:18
config de neovim
call plug#begin('~/.vim/plugged')
" git
Plug 'tpope/vim-fugitive'
Plug 'mhinz/vim-signify'
" status line
Plug 'itchyny/lightline.vim'
" start screen
# zsh
set-option -g default-shell /bin/zsh
# color
set -g default-terminal "tmux-256color"
# counting from 1
set -g base-index 1
# remap prefix
# coding: utf-8
import requests
import datetime
API_KEY = '' # Get a free API KEY on https://api.nasa.gov/
URL = 'https://api.nasa.gov/planetary/apod'
START = datetime.date(2019, 1, 1)
END = datetime.date.today()
IMGS_FOLDER = 'imgs'
ERROR_FILE = 'apod_errors.txt'