As configured in my dotfiles.
start new:
tmux
start new with session name:
| desc 'List defined routes' | |
| task 'routes' do | |
| App::routes.each_pair do |method, list| | |
| puts ":: #{method} ::" | |
| routes = [] | |
| list.each do |item| | |
| source = item[0].source | |
| item[1].each do |s| | |
| source.sub!(/\(.+?\)/, ':'+s) |
| 1. Close Firefox | |
| 2. Execute this: | |
| find ~/.mozilla/firefox/ -type f -name '*.sqlite' -exec sqlite3 {} 'VACUUM;' \; |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| # UPDATE: The ability to call Proc.new without a block was removed in Ruby 3.0.0 | |
| # See https://bugs.ruby-lang.org/issues/10499 for more information. | |
| # So you might have heard that this is slow: | |
| # | |
| # def some_method(&block) | |
| # block.call | |
| # end | |
| # | |
| # Compared to: |
| git stash # Stash changes if any | |
| git symbolic-ref HEAD refs/heads/${NEW_BRANCH} # Change head to a new, non-existing ref | |
| git rm -rf . # Delete files from version control and working directory | |
| rm -r . # Delete files from file system | |
| git commit --allow-empty -m "Created new branch ${NEW_BRANCH}" # Commit changes in the new branch |