Skip to content

Instantly share code, notes, and snippets.

View janniklorenz's full-sized avatar

Jannik Lorenz janniklorenz

View GitHub Profile

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser

@janniklorenz
janniklorenz / multiPull.sh
Last active August 29, 2015 14:22
Git pull in all subdirectories of the current directories.
for path in $(find . -maxdepth 1 -mindepth 1 -type d); do
git -C $path pull
done
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- array of downloads. -->
<key>items</key>
<array>
<dict>
<!-- an array of assets to download -->
@janniklorenz
janniklorenz / gist:c887efe77231f5edfc00
Created November 11, 2014 12:49
Xcode RunScript for Build Number (Commits-Increment)
#!/bin/bash
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
IFS="-" read name value <<< "$buildNumber"
b=$(($value + 1))
buildNumber="$(git rev-list HEAD --count)-$b"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: