Skip to content

Instantly share code, notes, and snippets.

@brunomiguel
brunomiguel / dark-aur.css
Last active September 30, 2021 17:41
AUR Dark Theme, to be used with the browser addon Stylus. This is an alpha version
* {
font-family: sans-serif !important;
}
body {
background: #222 !important;
color: #eee;
}
a:visited {
#! /usr/bin/env bash
UPTIME_DAYS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 / 86400)
UPTIME_HOURS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 / 3600)
UPTIME_MINUTES=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 % 3600 / 60)
# Basic info
HOSTNAME=`uname -n`
ROOT=`df -Ph | grep -w nbd0p1 | awk '{print $4}' | tr -d '\n'`
@brunomiguel
brunomiguel / .bashrc
Last active September 19, 2018 06:46
Simple bash PS1 prompt
if [ "$color_prompt" = yes ]; then
PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\]:\w\[\033[00m\]\n\\$: \[$(tput sgr0)\]"
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt