Skip to content

Instantly share code, notes, and snippets.

@ManasN
ManasN / my Arch Linux cheat-sheet
Created November 6, 2015 04:47 — forked from tungel/my Arch Linux cheat-sheet
I have kind of short term memory so I like to take note of what I've done. This cheat-sheet log some of the things I've done to my Arch Linux machine. Lots of these stuffs are based on my personal preference and may not be applicable to you. Also take note that: I'm not responsible if you break your machine by following any of the steps in this …
Installing Arch:
sudo vim /etc/pacman.conf
Update packages list: sudo pacman -Syy
run sudo pacman -Syu before installing any software (to update the repositories first)
* Timing issue:
- Change hardware clock to use UTC time:
sudo timedatectl set-local-rtc 0
@ManasN
ManasN / long-command-notification.sh
Last active September 1, 2015 13:26 — forked from ashwin/long-command-notification.sh
Show notification in Ubuntu when long duration command finishes execution in fish shell
### Notify on long command completion
# If commands runs >= 10 seconds, notify user on completion
if test $CMD_DURATION
if test $CMD_DURATION -gt (math "1000 * 3")
set secs (math "$CMD_DURATION / 1000")
notify-send "$history[1]" "Returned $status, took $secs seconds"
end
end