Skip to content

Instantly share code, notes, and snippets.

@StudioEtrange
StudioEtrange / MacOS X El Capitan with Vagrant - MacOS X VM on Windows or Linux.md
Last active March 27, 2026 23:34
MacOS X El Capitan in a VM with Vagrant on Windows/Linux
@StudioEtrange
StudioEtrange / Apple MacOS Finder show Hidden Files switch.md
Last active January 31, 2018 14:40
Apple MacOS -- Finder show Hidden Files switch
#!/bin/bash

val=$(defaults read com.apple.Finder AppleShowAllFiles)

if [ "$val" == "1" ]; then
	defaults write com.apple.Finder AppleShowAllFiles -string 0
	killall Finder
fi
@StudioEtrange
StudioEtrange / getopt.c
Last active August 29, 2015 14:22 — forked from ashelly/getopt.c
/* Getopt for GNU.
NOTE: getopt is now part of the C library, so if you don't know what
"Keep this file name-space clean" means, talk to drepper@gnu.org
before changing it!
Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001
Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public