Skip to content

Instantly share code, notes, and snippets.

@sshtmc
sshtmc / ubuntu-configure-sendmail-with-gmail
Created Oct 25, 2012
Ubuntu sendmail using smtp.gmail.com
View ubuntu-configure-sendmail-with-gmail
#!/bin/bash
HOST=$(hostname)
function install_postfix() {
echo | sudo debconf-set-selections <<__EOF
postfix postfix/root_address string
postfix postfix/rfc1035_violation boolean false
postfix postfix/mydomain_warning boolean
postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
@sshtmc
sshtmc / simple_c_vector.h
Created Sep 13, 2012 — forked from EmilHernvall/vector.c
Simple vector-implementation in C
View simple_c_vector.h
#ifndef __SIMPLECVECTOR_H__
#define __SIMPLECVECTOR_H__
#include <stdlib.h>
#include <assert.h>
#include <string.h>
typedef struct vector_ {
void** data;
size_t used_entries;
You can’t perform that action at this time.