Skip to content

Instantly share code, notes, and snippets.

@nerdalert
nerdalert / Netfilter-IPTables-Diagrams.md
Last active April 9, 2024 09:18
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.

#!/usr/bin/perl
#
# PackageApplication
#
# Copyright (c) 2009-2010 Apple Inc. All rights reserved.
#
# Package an iPhone Application into an .ipa wrapper
#
use Pod::Usage;
@0xc010d
0xc010d / ReCodeSign
Created November 14, 2011 22:38
Codesign an iOS app, with a different distribution certificate and mobileprovisioning file.
- Copy the delivered ipa into a directory to work in.
- export PlistBuddy="/usr/libexec/PlistBuddy" to get the PlistBuddy tool to your shell. If it is not added, all references to PlistBuddy
will need to be written as the full path.
- Take the delivered App.ipa and unzip it using the unzip command. This should produce a Payload directory containing the app and its
resources.
- Enter the command "codesign -d --entitlements :enterprise.plist Payload/PathToApp.app/" This pulls the entitlements out of the app, and
prints them to a plist, without a leading "blob" of data. Pay particular attention to the colon before the enterprise.plist file name.
@highorderbit
highorderbit / john.idekeybindings
Created March 16, 2011 04:03
Example of an Xcode 4 binding that combines multiple keystrokes and multiple commands
<key>^x</key>
<dict>
<key>^i</key>
<array>
<string>selectWord:</string>
<string>enterSelection:</string>
<string>findNext:</string>
</array>
</dict>
@meonkeys
meonkeys / Makefile
Created December 12, 2010 04:22
Tests for stackoverflow question #4138285
test:
@bash $@
.PHONY: test
anonymous
anonymous / gist:269762
Created January 5, 2010 21:43
GCC_VERSION = com.apple.compilers.llvm.clang.1_0
RUN_CLANG_STATIC_ANALYZER = YES
CC = /Volumes/Space/Users/bungi/Source/LLVM/llvm/Release/bin/clang