This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # ~/bin/update | |
| sudo apt-get -y update | |
| sudo apt-get -y upgrade | |
| sudo apt-get -y install -f | |
| sudo apt-get -y dist-upgrade | |
| sudo apt-get -y autoclean | |
| sudo apt-get -y autoremove | |
| sudo do-release-upgrade -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Example: CloudFlare::connect { |connection| puts connection } | |
| module CloudFlare | |
| API_KEY = ENV['CLOUDFLARE_API_KEY'] | |
| EMAIL = ENV['CLOUDFLARE_EMAIL'] | |
| def self.connect | |
| yield Connection.new(API_KEY, EMAIL) if block_given? | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| project_name=$1 | |
| if [ -z project_name ]; then | |
| echo | |
| echo "projects need names too, I'm sure you can think of a neat one!" | |
| echo " ex: rails_composer neat_name" | |
| echo | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias rails_s="gnome-terminal -e 'bash -c \"rails s; bash\"'" |
NewerOlder