- Remove and backup licenses and credentials
- VMWare Fusion
- Sublime Text 3
- Adobe creative cloud
- Heroku
- AWS-CLI
- AWS-Elastic Beanstalk
- Xcode developer program
This file contains 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 | |
echo Install all AppStore Apps at first! | |
# no solution to automate AppStore installs | |
read -p "Press any key to continue... " -n1 -s | |
echo '\n' | |
echo Install and Set San Francisco as System Font | |
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
echo Install Homebrew, Postgres, wget and cask | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
This file contains 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
def method_missing(symbol, *args, &block) | |
p "Start method_missing from #{self} at #{symbol}" | |
return unless symbol.to_s.start_with?('permit_params_from_') | |
object = symbol.to_s.sub('permit_params_from_', '') | |
context = [] | |
def context.method_missing(symbol, &block_b) | |
p "Start context from #{self} at #{symbol}" | |
second_context = [] | |
def second_context.method_missing(symbol) | |
self << symbol |
As configured in my dotfiles.
start new:
tmux
start new with session name:
This file contains 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
# Diseño de prompt | |
## Requerimientos para prompt | |
* Hora | |
* Usuario solo si es root | |
* Equipo | |
* Git o hg solo si existe | |
* Branch de git o hg si existe | |
* Version de ruby solo si hay una en especifico | |
* Carpeta actual |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
This file contains 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
# Ways to execute a shell script in Ruby | |
# Example Script - Joseph Pecoraro | |
cmd = "echo 'hi'" # Sample string that can be used | |
# 1. Kernel#` - commonly called backticks - `cmd` | |
# This is like many other languages, including bash, PHP, and Perl | |
# Returns the result of the shell command | |
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111 |
NewerOlder