Skip to content

Instantly share code, notes, and snippets.

View ozel's full-sized avatar
📻
most likely soldering or shifting bits

Oliver Keller ozel

📻
most likely soldering or shifting bits
View GitHub Profile
@ozel
ozel / audio-scope-w-trigger.markdown
Created August 4, 2019 20:11
audio scope w trigger
@ozel
ozel / Fsm.cpp
Created April 13, 2018 22:04
OpenAuto FSM demo code
// This file is part of arduino-fsm.
//
// arduino-fsm is free software: you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License as published by the Free
// Software Foundation, either version 3 of the License, or (at your option)
// any later version.
//
// arduino-fsm is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
# enable IP forwarding and firewall in the kernel
sudo sysctl -w net.inet.ip.forwarding=1
sudo sysctl -w net.inet.ip.fw.enable=1
#flush all FW rules
sudo pfctl -F all # or -F nat, for just the nat rules
cat ./nat-rules
nat on en0 from 192.168.1.0/24 to any -> ozelmacpro #put this line in a text file