Skip to content

Instantly share code, notes, and snippets.

View futur's full-sized avatar
🏠
Working from home

Futur futur

🏠
Working from home
View GitHub Profile
@futur
futur / node-and-npm-in-30-seconds.sh
Created April 5, 2016 17:02 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@futur
futur / build-ios.sh
Created June 20, 2016 12:46 — forked from pbakondy/build-ios.sh
build and sign ionic app iOS
# Test Build (armv7 only)
#
ionic platform remove ios
gulp useref
ionic platform add ios
cp assets/build/ios/build.xcconfig platforms/ios/cordova/build.xcconfig
ionic build ios --device
xcrun -sdk iphoneos PackageApplication -v platforms/ios/build/device/appname.app -o deployments/appname-test.ipa
/usr/bin/codesign --display platforms/ios/build/device/appname.app
/usr/bin/codesign --verify platforms/ios/build/device/appname.app
@futur
futur / gist:92818bfe40bc22015697e2845196aa60
Created June 20, 2016 15:27 — forked from jaredsinclair/set-build-number.sh
Simple, Git-friendly run script for automated build numbering in Xcode
#
# Set the build number to the current git commit count.
# If we're using the Dev scheme, then we'll suffix the build
# number with the current branch name, to make collisions
# far less likely across feature branches.
# Based on: http://w3facility.info/question/how-do-i-force-xcode-to-rebuild-the-info-plist-file-in-my-project-every-time-i-build-the-project/
#
# Updated with dSYM handling from http://yellowfeather.co.uk/blog/auto-incrementing-build-number-in-xcode-revisited/
#
@futur
futur / simple_http_server.sh
Created June 21, 2016 02:10 — forked from tdpreece/simple_http_server.sh
Running a Python SimpleHTTPServer in the background and killing it when doneSimpleHTTPServer
#!/usr/bin/env bash
# Create a page in the current dir
echo "My Test Page" > test.html
# Start server
python -m SimpleHTTPServer 8000 &> /dev/null &
pid=$!
# Give server time to start up