Skip to content

Instantly share code, notes, and snippets.

@id774
id774 / python-pep8.el
Last active December 26, 2016 00:15 — forked from ieure/python-pep8.el
;;; python-pep8.el --- minor mode for running `pep8'
;; Copyright (c) 2009, 2010 Ian Eure <ian.eure@gmail.com>
;; Author: Ian Eure <ian.eure@gmail.com>
;; Keywords: languages python
;; Last edit: 2010-02-12
;; Version: 1.01
@id774
id774 / gist:8679357
Last active January 4, 2016 21:09
iptables example
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
:LOG_PINGDEATH - [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -f -j LOG --log-prefix "[IPTABLES FRAGMENT] : "
-A INPUT -f -j DROP
-A INPUT -p icmp -m icmp --icmp-type 8 -j LOG_PINGDEATH
-A INPUT -d 255.255.255.255 -j DROP
@id774
id774 / excel.rb
Created December 28, 2010 08:02 — forked from todesking/excel.rb
require 'win32ole'
require 'kconv'
module Excel
class Application
def initialize
@obj=WIN32OLE.new('Excel.Application')
ObjectSpace.define_finalizer(self,Application.finalizer_callback(self))
end