Follow the steps below to setup a local development environment:
Recommended to download latest XQuartz
# https://medium.com/@frontman/how-to-parse-yaml-string-via-command-line-374567512303 | |
alias yaml2json="python3 -c 'import sys,json,yaml;f=open(sys.argv[1]);d=yaml.safe_load(f);f.close();print(json.dumps(d))'" | |
# yaml2json ./vars.yml | jq ... |
# https://github.com/octokit/octokit.rb | |
require 'octokit' | |
Octokit.configure do |c| | |
c.login = ENV['GH_UID'] | |
c.password = ENV['GH_PWD'] | |
end | |
begin; Octokit.starred.each {|r| puts Octokit.client.unstar r.full_name}; end while Octokit.starred.size > 0; |
Follow the steps below to setup a local development environment:
Recommended to download latest XQuartz
# sudo rm -rf /Library/Frameworks/Python.framework
sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
sudo rm -rf "/Applications/Python 2.7"
cd /usr/local/bin && \
sudo ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | xargs rm
If you run into terminal error too many open files
Below are the steps to increase the limit environment setting for maxflies
Show current config:
launchctl limit
maxfiles 256 unlimited
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6 | |
# rpm | |
wget --no-cookies \ | |
--no-check-certificate \ | |
--header "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \ | |
-O jdk-7-linux-x64.rpm | |
# ubuntu |
param ( | |
[string]$Deploy, | |
[switch]$SkipBackup, | |
[string]$Settings = "settings.xml" | |
) | |
$success = $false | |
function writeError($message) { | |
Write-Host $message -Foreground Red | |
break; |
# rbenv & brew git/bash completion terminal setup | |
# for dev desktop only on osx | |
# Run the following commands in order to use this script: | |
################################################################ | |
# !! => Update/Install xcode Command Line Tools <= !! | |
# In your shell/terminal: | |
# Homebrew perms needed: | |
# sudo chown -R root:admin /usr/local | |
# sudo chown -R root:admin /Library/Caches/Homebrew | |
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
Say you ssh into a server as the user deployer
and have a folder on the server ~/dump
:
# on the server you are logged into
# backup the database
mysqldump -uroot -pstrongPassword railsapp_staging > ~/dump/YYYYMMDD_railsapp_staging.sql
# next logout/exit your ssh session to the server above
exit