Skip to content

Instantly share code, notes, and snippets.

View dral3x's full-sized avatar

Alessandro Calzavara dral3x

View GitHub Profile
@dral3x
dral3x / dev-scripts.sh
Last active August 28, 2018 07:55 — forked from shaps80/dev-scripts.sh
Open workspace or project from current directory with Xcode, AppCode or Android Studio app. Script will looks for workspaces first, than fallback to project files (when appropriate). Subdirectories are ignored.
#!/usr/bin/env bash
# Published on https://gist.github.com/dral3x/1bbcedaa871fcd04f303
## Common
function __openFileWithApp()
{
if [[ -z "$1" || "$#" -ne 2 ]]; then
echo -e "Nothing found\n"
@dral3x
dral3x / xcode_ramdisk.sh
Last active August 29, 2015 14:18 — forked from skeeet/xcode_ramdisk.sh
Move some Xcode default folder to RAM in order to improve building performances. BE AWARE: moving temp dir to ramdisk could cose issues with other applications/scripts.
#!/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"