This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Toggles on and off the screen backlight | |
# | |
# It saves the current brightness value, if there is no previous value, | |
# defaults to 1/10th of max brightness | |
# | |
# More information in https://diego09310.github.io/linux/2020/02/19/turn-off-dell-xps-screen-linux.html | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
import json | |
import datetime | |
INPUT_FILE = "moon_all.json" | |
OUTPUT_FILE = "moon_formatted.json" | |
NEW_MOON = "new_moon" | |
WAX_CRES = "waxing_crescent" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get -y update && sudo apt-get -y upgrade | |
sudo apt-get install -y \ | |
zsh \ | |
git \ | |
neovim \ | |
tmux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# git | |
alias gp='git pull' | |
alias gh='git push' | |
alias ghu='git push -u' | |
alias ghoh='ghu origin HEAD' | |
alias ga='git add' | |
alias gaa='git add -u' | |
alias gaaa='git add .' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<scheme name="Dark Eclipse" version="142" parent_scheme="Darcula"> | |
<metaInfo> | |
<property name="created">2017-09-13T17:42:50</property> | |
<property name="ide">Idea</property> | |
<property name="ideVersion">2017.2.4.0.0</property> | |
<property name="modified">2018-07-18T14:49:20</property> | |
<property name="originalScheme">_@user_Darcula</property> | |
</metaInfo> | |
<colors> | |
<option name="CONSOLE_BACKGROUND_KEY" value="292929" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Shell script to disable (and reenable) the keyboard and the touchpad. | |
# I use it when cats are around and I can work with a wireless keyboard/mouse. | |
# To use it, execute "xinput list" to print the list of input devices and add | |
# the id and the master it belongs (number in parenthesis) to the id and | |
# master arrays. | |
# "./cat_mode.sh [on]" disables the configured devices | |
# "./cat_mode.sh off" (off or anything else) reenables the devices | |
# |