Skip to content

Instantly share code, notes, and snippets.

View julianobarbosa's full-sized avatar
💭
I may be slow to respond.

Juliano Barbosa julianobarbosa

💭
I may be slow to respond.
View GitHub Profile
@julianobarbosa
julianobarbosa / opkg-upgrade-all
Created December 15, 2016 16:37 — forked from WebReflection/opkg-upgrade-all
A simple way to upgrade all packages in an Open WRT distribution
#!/usr/bin/env sh
for p in $(opkg list-upgradable); do
if [ "$p" != "-" ]; then
if [ "$(echo ${p:0:1} | sed -e 's/[0-9]//')" != "" ]; then
echo "upgrading $p"
opkg upgrade $p
fi
fi
done
@julianobarbosa
julianobarbosa / zabbix-alert-smtp.sh
Created November 20, 2016 18:20 — forked from superdaigo/zabbix-alert-smtp.sh
Zabbix SMTP Alert script for gmail
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Zabbix SMTP Alert script for gmail.
"""
import sys
import smtplib
from email.MIMEText import MIMEText
from email.Header import Header
@julianobarbosa
julianobarbosa / ubuntu_agnoster_install.md
Created September 22, 2016 02:58 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 14.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH