Skip to content

Instantly share code, notes, and snippets.

@Geoffrey-T
Geoffrey-T / cleanXcode.sh
Created October 5, 2017 09:20
[XCODE] Clean derived Data script
# Copy this function in your ~/.bashrc file.
# execute `source ~/.bashrc` or open a new terminal
cleanXcode () {
DIR=~/Library/Developer/Xcode/DerivedData/
cd $DIR
ls
rm -r -- "$DIR"*
}
@Geoffrey-T
Geoffrey-T / CreatePrivatePod.md
Last active April 18, 2018 13:01
Create Private Pod snippets

Create Pod

pod lib create YOUR_POD
git remote add origin your_repository_link
@nicolasramy
nicolasramy / deploy.sh
Last active August 29, 2015 14:03
Simple script to deploy static websites + snapshot generation through SSH
#/bin/bash
PROJECT_NAME=my_website
WORKSPACE=/var/www
USERNAME=www-data
PORT=22
DATEMARK=`date +%Y%m%d%H%M%S`
HOSTNAME=www.example.com
@nicolasramy
nicolasramy / momoticon.md
Last active February 10, 2017 12:10
Momoticon, another version of emoticons

Happy

^_^
^.^
@nicolasramy
nicolasramy / .bash_aliases
Last active September 7, 2016 14:21
My personnal dotfiles configuration for Gnu Screen, Vim, Bash for system administration
# Aliases
alias refresh-source='source $HOME/.bashrc'
@kreeger
kreeger / pod-install-post-checkout
Last active November 30, 2021 08:15
A post-checkout hook for running a pod install after a git checkout event.
#!/bin/sh
if [ $1 = 0000000000000000000000000000000000000000 ]; then
old=4b825dc642cb6eb9a060e54bf8d69288fbee4904
else
old=$1
fi
if [ -f Podfile ] && command -v pod install >/dev/null &&
git diff --name-only $old $2 | egrep -q '^Podfile$'
then
(unset GIT_DIR; exec pod install) | grep -v '^Using ' | grep -v ' is complete'