Skip to content

Instantly share code, notes, and snippets.

@willurd
willurd / web-servers.md
Last active May 28, 2024 06:57
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@asmaloney
asmaloney / Packaging_Example.sh
Last active September 14, 2023 14:45
This is an example of script to package up and create a DMG for a Mac OS X app. Details may be found here: http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/
#!/bin/bash
# by Andy Maloney
# http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/
# make sure we are in the correct dir when we double-click a .command file
dir=${0%/*}
if [ -d "$dir" ]; then
cd "$dir"
fi
@amirrajan
amirrajan / auto-build.rb
Created April 8, 2018 23:06
RubyMotion auto-build 2.0
# gem install rerun
# Change line 11 and run this in your root RubyMotion app directory.
require 'readline'
require 'pty'
require 'open3'
require 'find'
require 'FileUtils'
first_time = true
#
# A controller for all Paddle related stuff
#
# For use of .env file see Gist by dblandin
# https://gist.github.com/dblandin/8509457
#
class PaddleController
def initialize
add_license if should_add_license?

Use match.

Create private git repo to synchronize certs and profiles

Add gem 'fastlane' to the Gemfile in your RubyMotion project directory

Run bundle exec fastlane match init in your RubyMotion project directory

be fastlane match init