Skip to content

Instantly share code, notes, and snippets.

@fbion
fbion / sublime-text-3-build-3065-license.md
Created December 22, 2015 08:06
Sublime Text 3 (build 3065+) - VALID License

SublimeText3 Valid License without cracking! Just download/install then use this license.

Notice that it may not work on dev builds, but still works on 3083 build!

----- BEGIN LICENSE -----

Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
@fbion
fbion / curl.md
Created December 5, 2018 07:19 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@fbion
fbion / transproxy-helper.py
Created February 26, 2020 09:25 — forked from informationsea/transproxy-helper.py
use go-transproxy with FreeBSD, macOS
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import ipaddress
import itertools
import subprocess
import tempfile
import os
import signal
@fbion
fbion / gist:4b0de7fb2b8a494190a468648f2879d3
Created February 26, 2020 09:31 — forked from marvin/gist:7214039
pf outbound load balancing
lan_net = "192.168.0.0/24"
int_if = "dc0"
ext_if1 = "fxp0"
ext_if2 = "fxp1"
ext_gw1 = "68.146.224.1"
ext_gw2 = "142.59.76.1"
# nat outgoing connections on each internet interface
match out on $ext_if1 from $lan_net nat-to ($ext_if1)
match out on $ext_if2 from $lan_net nat-to ($ext_if2)
table <exclude_subnets> {200.152.40.0/24,127.0.0.0/8,10.0.0.0/8}
table <allowed_subnets> {!200.152.40.0/24,!127.0.0.0/8,!10.0.0.0/8}
table <include_subnets> { 0.0.0.0/0}
rdr pass on lo0 proto tcp to <include_subnets> -> 127.0.0.1 port 12300
pass out route-to lo0 inet proto tcp to <include_subnets> keep state
pass out route-to lo0 inet proto tcp to <exclude_subnets> keep state
@fbion
fbion / ulimit_mac.sh
Created March 5, 2020 10:16 — forked from wsky/ulimit_mac.sh
mac settings
sysctl kern.maxfiles
#kern.maxfiles: 12288
sysctl kern.maxfilesperproc
#kern.maxfilesperproc: 10240
sudo sysctl -w kern.maxfiles=1048600
#kern.maxfiles: 12288 -> 1048600
sudo sysctl -w kern.maxfilesperproc=1048576
#kern.maxfilesperproc: 10240 -> 1048576
sudo sysctl -w net.inet.tcp.rfc1323=1
@fbion
fbion / gist:e4b9514072d387a46402810338b30c7d
Created March 5, 2020 11:05 — forked from jordanwesthoff/gist:010a4562ba10a0de0178
Network Stack Settings for UltraGrid on OSX
# Extending network buffers for UltraGrid on OSX
# Edit: /etc/sysctl.conf
# Extended network buffers for UltraGrid
kern.ipc.maxsockbuf=33554432
net.inet.udp.recvspace=5944320
sudo nvram boot-args="ncl=131072" # for OS X 10.6
@fbion
fbion / OS X network optimize.txt
Created March 5, 2020 11:05 — forked from snoby/OS X network optimize.txt
OSX Sierra Network Performance Tweaks
#
# Reboot into recovery mode (cmd +r ) and in the terminal
#
nvram boot-args="serverperfmode=1 ncl=262144"
#reboot
#
# In regular mode
@fbion
fbion / OS X network optimize.sh
Created March 5, 2020 11:05 — forked from Airr/OS X network optimize.sh
OSX Sierra Network Performance Tweaks #macOS
#
# Reboot into recovery mode (cmd +r ) and in the terminal
#
nvram boot-args="serverperfmode=1 ncl=262144"
#reboot
#
# In regular mode
@fbion
fbion / OS X network optimize.txt
Created March 5, 2020 11:06 — forked from hendra/OS X network optimize.txt
OSX Sierra Network & System Performance Tweaks
#
# Reboot into recovery mode (cmd +r ) and in the terminal
#
nvram boot-args="serverperfmode=1 ncl=262144"
#reboot
#
# In regular mode