Skip to content

Instantly share code, notes, and snippets.

View gist:9002864
if [ `env | grep SSH_TTY | wc -l` -gt 0 ] || [ `env | grep cons25 | wc -l` -gt 0 ]; then
View gist:9076408
sysctl kern.geom.debugflags=16
boot0cfg -v -s 1 ad0
fdisk -a /dev/ad0
sysctl kern.geom.debugflags=0
View gist:9760728
$config['system']['enableserial'] = true;
write_config("Enable Serial Port");
jim-p / gist:10140152
Last active Aug 29, 2015
graphics/dri build error
View gist:10140152
Solution: You have conflicting LLVM includes.
rm -rf /usr/local/include/llvm/ /usr/local/include/llvm-c/
Then rebuild graphics/dri
Build Log:
# env MAKE_JOBS_UNSAFE=yes portupgrade --batch -f dri-9.1.7_3,2
[Reading data from pkg(8) ... - 1427 packages found - done]
---> Reinstalling 'dri-9.1.7_3,2' (graphics/dri)
---> Building '/usr/ports/graphics/dri'
===> Cleaning for dri-9.1.7_3,2
View gist:b3f11ff99ceebff35b5b
net.inet.ip.pfil.inbound: pf
net.inet.ip.pfil.outbound: pf 0 0 1 0
net.inet6.ip6.pfil.inbound: pf
net.inet6.ip6.pfil.outbound: pf

Keybase proof

I hereby claim:

  • I am jim-p on github.
  • I am jimp ( on keybase.
  • I have a public key whose fingerprint is 7653 2AC1 2E9F 551D BE84 0B06 574A 9C0D 74CC 1661

To claim this, I am signing this object:

echo "Testing Exploit 1 (CVE-2014-6271)"
CVE6271="$(env x='() { :;}; echo -n V' bash -c : 2>/dev/null)"
[ "${CVE7187}" == "V" ] && echo "VULNERABLE" || echo "NOT VULNERABLE"
echo "Testing Exploit 2 (CVE-2014-7169)"
CVE7169="$(env X='() { (>\' bash -c "echo date" 2>/dev/null; cat echo 2>/dev/null; rm -f echo)"
[ ! "${CVE7169}" == "date" ] && echo "VULNERABLE" || echo "NOT VULNERABLE"
echo "Testing Exploit 3 (CVE-2014-6277)"
CVE6277="$(env -i X=' () { }; echo -n V' bash -c :)"
View kayako_in_wine.txt
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7 winetricks
env WINEARCH=win32 WINEPREFIX=~/.wine-kayako winecfg
env WINEARCH=win32 WINEPREFIX=~/.wine-kayako winetricks ie8
env WINEARCH=win32 WINEPREFIX=~/.wine-kayako winetricks gdiplus
env WINEARCH=win32 WINEPREFIX=~/.wine-kayako winetricks vcrun2008
[Copy all of the DLLs from vcrun2012 to ~/.wine-kayako/drive_c/windows/system32/
mfc110.dll mfc110cht.dll mfc110enu.dll mfc110fra.dll mfc110jpn.dll mfc110rus.dll mfcm110.dll
View gist:de856d43cf5f5418b57e
# $FreeBSD: stable/10/etc/etc.amd64/ttys 267236 2014-06-08 17:50:07Z nwhitehorn $
# @(#)ttys 5.1 (Berkeley) 4/17/89
# This file specifies various information about terminals on the system.
# It is used by several different programs. Common entries for the
# various columns include:
# name The name of the terminal device.
View gist:89c0efc98bb60a26f34e
Site A (hub)
Tunnel to B
Tunnel to C
Tunnel to D
You can’t perform that action at this time.