A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| brew install python@3.11 | |
| python3.11 -m pip install cmdstanpy | |
| python3.11 -m pip install prophet # this should work ? if it dont, good luck lmao | |
| # at this point, you might get an error | |
| # RuntimeError: Error during optimization! Command '/opt/homebrew/lib/python3.11/site-packages/prophet/stan_model/prophet_model.bin | |
| # dyld[71677]: Library not loaded: '@rpath/libtbb.dylib' | |
| cd /opt/homebrew/lib/python3.11/site-packages/prophet/stan_model | |
| install_name_tool -add_rpath @executable_path/cmdstan-2.26.1/stan/lib/stan_math/lib/tbb prophet_model.bin | |
| # 'Prophet.fit' should no longer throw a fit haha |
| sudo rm -rf /Applications/Tuxera\ Disk\ Manager.app | |
| sudo rm -rf /Library/Application\ Support/Tuxera\ NTFS | |
| sudo rm -rf /Library/Filesystems/fusefs_txantfs.fs |
| #!/bin/bash | |
| apt-get update | |
| apt-get install -y apt-transport-https ca-certificates | |
| apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| echo 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' > /etc/apt/sources.list.d/docker.list | |
| apt-get update |
| # lib/tasks/db.rake | |
| namespace :db do | |
| desc "Dumps the database to db/APP_NAME.dump" | |
| task :dump => :environment do | |
| cmd = nil | |
| with_config do |app, host, db, user| | |
| cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
| end | |
| puts cmd |
| (source "melpa" "http://melpa.milkbox.net/packages/") | |
| (source "gnu" "http://elpa.gnu.org/packages/") | |
| (source "marmalade" "http://marmalade-repo.org/packages/") | |
| (depends-on "ac-js2") | |
| (depends-on "adaptive-wrap") | |
| (depends-on "ag") | |
| (depends-on "auto-complete") | |
| (depends-on "calfw") | |
| (depends-on "cask") |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
| ############################################################## | |
| # Upstream must have unique name and unique socket. # | |
| # The socket must match what is in the app's unicorn.rb file # | |
| ############################################################## | |
| upstream railsapp1_server { | |
| server unix:/tmp/railsapp1.sock fail_timeout=0; | |
| } | |
| ############################## | |
| # Rewrite www to non-www # |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |