Skip to content

Instantly share code, notes, and snippets.

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

Gustavo Walbon walbon

💭
I may be slow to respond.
View GitHub Profile
@walbon
walbon / sendingmessage.py
Created July 20, 2012 20:13
Script to send messages by sendmail and smtplib, using python.
#!/usr/bin/python
#
# Author: Gustavo Walbon ( [email protected] )
#
# Import smtplib for the actual sending function
import smtplib
import sys
@walbon
walbon / printf.c
Created June 13, 2012 14:25 — forked from nicholasjconn/printf.c
A printf() function for the MSP430
/******************************************************************************
* Reusable MSP430 printf()
*
* Description: This printf function was written by oPossum and originally
* posted on the 43oh.com forums. For more information on this
* code, please see the link below.
*
* http://www.43oh.com/forum/viewtopic.php?f=10&t=1732
*
* A big thanks to oPossum for sharing such great code!
@walbon
walbon / main.c
Created April 5, 2012 13:14
Simple body for C programming.
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]){
printf("Running...\n");
return 0;
}
@walbon
walbon / googleDNS.sh
Last active September 25, 2015 19:08
Mudar o serviço de DNS do computador para o Google DNS.
#!/bin/bash
sudo chown $USER:$USER /etc/resolv.conf
/bin/echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" > /etc/resolv.conf
sudo chown root:root /etc/resolv.conf
@walbon
walbon / fotoArrumacao.sh
Created November 6, 2010 16:51
Organizador de fotos por data, separando-as por ano, mes e dia, e depois por md5sum o novo nome do arquivo.
#!/bin/bash
#
# Para arrumar suas fotos em um local seguro, faça um find da seguinte maneira
# ex: find fotos/ -type f -exec fotoArrumacao.sh {} pastaDestino/ \;
#
destino=$2
imagem=$1