Skip to content

Instantly share code, notes, and snippets.

View diegotf30's full-sized avatar

Diego Treviño diegotf30

  • Google
  • Mexico
View GitHub Profile
@diegotf30
diegotf30 / .bashrc
Created June 3, 2019 06:28
Fedora Bash Aliases n stuff
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
@diegotf30
diegotf30 / keybindings.json
Last active May 30, 2019 21:56
VSCode Settings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "ctrl+t",
"command": "-workbench.action.showAllSymbols"
},
@diegotf30
diegotf30 / redshift.conf
Created May 21, 2019 17:28
Redshift Configuration
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=4500
temp-night=3500
; Disable the smooth fade between temperatures when Redshift starts and stops.
; 0 will cause an immediate change between screen temperatures.
; 1 will gradually apply the new screen temperature over a couple of seconds.
fade=1
@diegotf30
diegotf30 / text2json.py
Last active August 7, 2018 21:59
Transforms sizes.txt to JSON format, used in Meme-bot repo
import json
def tuple2str(str1, str2) :
return '(' + str1 + ',' + str2 + ')'
jsonData = {}
file = open('sizes.txt')
file.readline() # Ignore header