Skip to content

Instantly share code, notes, and snippets.

View prokyon's full-sized avatar
💭
Glow In your own orbit.

Andreas Eckersperger prokyon

💭
Glow In your own orbit.
  • Munich, Germany
View GitHub Profile
#!/bin/zsh
if [[ $# -gt 1 ]]; then
echo "USAGE: paste [File]"
return 1
fi
file=$1
if [[ -z $file ]]; then
file=$(find $PWD -type f | fzf)
@prokyon
prokyon / setup.md
Created December 19, 2019 13:26 — forked from novemberborn/setup.md
OS X Redirect ports 80 and 443 to 8080 and 8443 respectively

Changes with .dev domains in mind.

Create /etc/pf.anchors/dev, containing:

rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443

@prokyon
prokyon / portforwarding.md
Created December 12, 2019 08:12 — forked from kujohn/portforwarding.md
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:

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

- Error while resolving doc type "*/": Unknown type name "*/" at position 0.
- Error while resolving doc type "*/": Unknown type name "*/" at position 0.
- Error while resolving doc type "[type]": Unknown type name "[" at position 0.
- Error while resolving doc type "[type]": Unknown type name "[" at position 0.
- Error while resolving doc type "[type]": Unknown type name "[" at position 0.
- Error while resolving doc type "[type]": Unknown type name "[" at position 0.
[ErrorException]
Warning: json_encode(): Invalid UTF-8 sequence in argument in /home/scrutinizer-worker/app/releases/20140205164645/vendor/jms/serializer/src/JMS/Serializer/JsonSerializationVisitor.php line 29