Skip to content

Instantly share code, notes, and snippets.

@heartnet
heartnet / gist:966455
Created May 11, 2011 13:36
sample1.c
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define SIZE 100
int* cmpl(int *Set);
int main(int argc, char *argv[]) {
int i;
@heartnet
heartnet / gist:921615
Created April 15, 2011 12:33
iptables.sh
#!/bin/bash
# @(#) iptables.sh - Script for configuring firewall with iptables
# Based on: http://centossrv.com/
#
# Configuration part
#
##############################
## Set external interface
#!/bin/bash
# @(#) iptables.sh - Script for configuring firewall with iptables
# Based on: http://centossrv.com/
#
# Configuration part
#
##############################
## External Interface
#!/usr/bin/python
from __future__ import with_statement # for obsolete python
from types import *
import re
import sys
import socket
sys.path.insert(0, "lib")
from check_type import *
# set path