This file contains hidden or 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 | |
# Script to set/increase/decrease brightness in Ubuntu | |
MAX_BRIGHTNESS=$(cat /sys/class/backlight/intel_backlight/max_brightness); | |
BRIGHTNESS=$(cat /sys/class/backlight/intel_backlight/actual_brightness); | |
PCT=$(echo $BRIGHTNESS $MAX_BRIGHTNESS | awk '{printf "%4.0f\n",($1/$2)*100}') | |
if [ "$(whoami)" != "root" ] ; then | |
printf "Script must be run as root.\n" && exit; |
This file contains hidden or 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 | |
# Install Fira: | |
cd ~/ | |
git clone https://github.com/mozilla/Fira | |
mkdir -p ~/.local/share/fonts/Fira | |
mv Fira/ttf/* ~/.local/share/fonts/Fira | |
rm -rf Fira | |
fc-cache -fv |
This file contains hidden or 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
% Copyright 2016 by Christoph Walsh | |
% | |
% This file may be distributed and/or modified | |
% | |
% 1. under the LaTeX Project Public License and/or | |
% 2. under the GNU Public License. | |
% Used material from: | |
% https://github.com/edasubert/beamerMaterialDesign and | |
% http://ctan.mackichan.com/macros/latex/contrib/beamer/base/themes/outer/beamerouterthememiniframes.sty |
This file contains hidden or 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 | |
R_VERSION="3.2.5" | |
wget https://cran.r-project.org/src/base/R-3/R-$R_VERSION.tar.gz | |
tar -xvf R-$R_VERSION.tar.gz | |
rm R-$R_VERSION.tar.gz | |
cd R-$R_VERSION | |
# If ~/.local/bin doesn't exist, create it: |