Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Create a RAM disk with same perms as mountpoint
# Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions
# Usage: sudo ./xcode_ramdisk.sh start
USERNAME=$(logname)
TMP_DIR="/private/tmp"
RUN_DIR="/var/run"
SYS_CACHES_DIR="/Library/Caches"
@whitegfx
whitegfx / commands.sh
Last active February 24, 2018 16:34 — forked from raultm/commands.sh
Commands to convert Mavericks installer in Mavericks ISOSource : http://thezinx.com/2013/10/29/create-bootable-dmg-iso-mavericks-app.html
# Source : http://thezinx.com/2013/10/29/create-bootable-dmg-iso-mavericks-app.html
# org dmg file is downloaded and mounted
DMGPATH=/Volumes/OS\ X\ Mavericks\ 10.9.5\ \(13F32\)/Install\ OS\ X\ Mavericks.app
# Mount the installer image
hdiutil attach "$DMGPATH/Contents/SharedSupport/InstallESD.dmg" -noverify -nobrowse -mountpoint /Volumes/install_app
# Convert the boot image to a sparse bundle
hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Mavericks
# bash <(curl -s https://gist.githubusercontent.com/whitegfx/18997ea4114854f2fd34755312154726/raw/810d02408c6f1bf4b51239e103d016f5b14d404e/enable_dnsmasq_on_osx.sh)
# ----------------------
# installing dnsmasq and enable daemon
# ----------------------
brew install dnsmasq
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
# ----------------------
# adding resolver for vbox domain
# ----------------------
@whitegfx
whitegfx / EVE Humor.txt
Created April 2, 2019 13:03 — forked from mysteriouspants/EVE Humor.txt
EVE Online Humor
________ ________ ____ _ _
| ____\ \ / / ____| / __ \ | (_)
| |__ \ \ / /| |__ ______| | | |_ __ | |_ _ __ ___
| __| \ \/ / | __|______| | | | '_ \| | | '_ \ / _ \
| |____ \ / | |____ | |__| | | | | | | | | | __/
|______| \/ |______| \____/|_| |_|_|_|_| |_|\___|
_ _
| | | |
@whitegfx
whitegfx / Atom_export_settings.md
Created August 8, 2019 19:26 — forked from michalczukm/Atom_export_settings.md
Atom: Backup all settings

Export:

  1. Copy from ${user}/.atom:
  • config.cson
  • keymap.cson
  • snippets.cson
  • styles.less
  1. Save installed packages list apm list --installed --bare > packages.list