Skip to content

Instantly share code, notes, and snippets.

View normcyr's full-sized avatar

Normand Cyr normcyr

View GitHub Profile
@normcyr
normcyr / .bashrc
Created January 25, 2016 18:28 — forked from marioBonales/.bashrc
Default .bashrc for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@normcyr
normcyr / reddit-rss-feeder.sh
Last active August 1, 2017 15:11 — forked from Ironjanowar/reddit-popular.sh
Bash script to return the last 8 posts from a subreddit
#!/bin/sh
#
# usage: ./reddit-rss-feeder.sh subreddit-name hot/new/rising/controversial/top/gilded
# default subreddit-name = popular
# default tab = hot
# e.g.: ./reddit-rss-feeder.sh bikewrench new
#
# This script uses rsstail to retrieve latests entries from Reddit Bikecommuting rss feed
# and process them through awk. Each update shows a timestamp separator.
#
@normcyr
normcyr / ubuntu_unattended_upgrades_gmail.markdown
Created January 12, 2018 15:48 — forked from roydq/ubuntu_unattended_upgrades_gmail.markdown
Unattended upgrades on Ubuntu 14.04 with email notifications

Getting Started

Do yourself a favor and login as root to save yourself some time and headaches:

$ sudo su -

Install unattended-upgrades: