Skip to content

Instantly share code, notes, and snippets.

Avatar

Radosław Piątek nekath

View GitHub Profile
@nekath
nekath / pull_request.sh
Created May 9, 2016 — forked from devongovett/pull_request.sh
Bash script to make a pull request from the current git repository. Tries the upstream remote if possible, otherwise uses origin.
View pull_request.sh
# put this in your .bash_profile
pull_request() {
to_branch=$1
if [ -z $to_branch ]; then
to_branch="master"
fi
# try the upstream branch if possible, otherwise origin will do
upstream=$(git config --get remote.upstream.url)
origin=$(git config --get remote.origin.url)
@nekath
nekath / assets.rake
Created Sep 14, 2015
Rake task for rails and webpack assets
View assets.rake
# The webpack must compile assets before assets:environment task.
# Otherwise Sprockets sees no changes and don't precompile assets.
Rake::Task['assets:precompile']
.clear_prerequisites
.enhance(['assets:compile_environment'])
Rake::Task['assets:clobber'].enhance do
Rake::Task['assets:clobber_webpack'].invoke
end
@nekath
nekath / es6.diff
Last active Aug 29, 2015
ES6 with browserify-rails and rails
View es6.diff
diff --git a/.gitignore b/.gitignore
index 050c9d9..3292569 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,6 @@
/log/*
!/log/.keep
/tmp
+
+# Ignore node modules