Skip to content

Instantly share code, notes, and snippets.

View d42ohpaz's full-sized avatar
🏠
Working from home

K.S. d42ohpaz

🏠
Working from home
View GitHub Profile
@kujohn
kujohn / portforwarding.md
Last active April 27, 2024 20:16
Port forwarding in Mavericks

Port Forwarding in Mavericks


Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.

####1. anchor file Create an anchor file under /etc/pf.anchors/<anchor file> with your redirection rule like:

@d42ohpaz
d42ohpaz / Fullscreen.java
Created December 4, 2012 05:24
Mac OS X Java Toggle Fullscreen Programmatically
import java.awt.Window;
import java.lang.reflect.Method;
import javax.swing.JFrame;
@SuppressWarnings("serial")
class Fullscreen extends JFrame {
public Fullscreen() {
enableOSXFullscreen(this);
setVisible(true);