Skip to content

Instantly share code, notes, and snippets.

@mateusmedeiros
mateusmedeiros / doodad.service
Last active August 16, 2017 14:09
Systemd services
[Unit]
Description=App running with puma + improvised rvm gemset support
[Service]
RootDirectory=/srv/http
WorkingDirectory=/www/doodad
User=http
Group=http
EnvironmentFile=/etc/systemd/system/doodad.vars
@maciekish
maciekish / resetXcode.sh
Created August 10, 2016 10:13
Reset Xcode. Clean, clear module cache, Derived Data and Xcode Caches. You can thank me later.
#!/bin/bash
killall Xcode
xcrun -k
xcodebuild -alltargets clean
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/com.apple.dt.Xcode/*
open /Applications/Xcode.app