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.
$ python -m SimpleHTTPServer 8000Each 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.
$ python -m SimpleHTTPServer 8000All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
| # Usage | |
| # order = create(:order) | |
| # | |
| # expect { | |
| # order.pay! | |
| # }.to deliver_email(OrderMailer, :paid, order.id) | |
| # | |
| # | |
| # Put this in your ~/.gitconfig or ~/.config/git/config | |
| # Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName> | |
| [user] | |
| name = Your Full Name | |
| email = your@email.tld | |
| [color] | |
| # Enable colors in color-supporting terminals | |
| ui = auto | |
| [alias] | |
| # List available aliases |
| package com.example.bank.impl; | |
| import akka.Done; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.concurrent.CompletableFuture; | |
| import java.util.concurrent.CompletionStage; | |
| import java.util.function.Consumer; | |
| import java.util.function.Function; | |
| import org.slf4j.Logger; |
| # Sublime Text 3 languages list: | |
| ls -1 /Applications/Sublime\ Text.app/Contents/MacOS/Packages/ | |
| # Remove all default Sublime Text 3 snippets for Python language | |
| export ST3_LANG="Python" | |
| mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/$ST3_LANG/ | |
| unzip -l /Applications/Sublime\ Text.app/Contents/MacOS/Packages/$ST3_LANG.sublime-package | grep '.sublime-snippet' | awk '{print $4}' | while read f; do touch ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/$ST3_LANG/$f; done | |
| unset ST3_LANG |
| # Running this file will clean up all of the temp files in your rails projects | |
| # Instructions: | |
| # 1. Save the file wherever you want | |
| # 2. Replace the RAILS_PATH with the path to your rails projects | |
| # 3. Run `ruby this_file_name.rb` | |
| # | |
| RAILS_PATH = '/replace/with/your/path/to/rails/projects' | |
| require 'rake' |
$ git checkout web-123-my-branch # make sure you're on the right branch
$ git fetch # update remote refs
$ git rebase origin/master # perform the rebase onto the current state of master
# for each conflict, edit file, resolve conflicts, git add -u <file>, git rebase --continue
$ git push -f origin web-123-my-branch # overwrite remote branch with newly rebase branch
| source 'https://rubygems.org' | |
| gem 'nokogiri' |