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
#!/usr/bin/env bash | |
# curl -LO https://gist.githubusercontent.com/mannysoft/e4b54662b3aec5c0b1b88be52177ab68/raw/04dba433394c7a03d891f94c75b52975d2e7a621/install.sh | |
# chmod +x install.sh | |
# ./install.sh | |
# ppk to pem: | |
# puttygen key.ppk -O private-openssh -o key.pem | |
echo "--- Welcome User. This is very exciting. ---" | |
echo "--- Updating packages list ---" |
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
#!/usr/bin/env bash | |
# curl -LO https://gist.githubusercontent.com/mannysoft/e4b54662b3aec5c0b1b88be52177ab68/raw/04dba433394c7a03d891f94c75b52975d2e7a621/install.sh | |
# chmod +x install.sh | |
# ./install.sh | |
echo "--- Welcome User. This is very exciting. ---" | |
echo "--- Updating packages list ---" | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update |
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
For mac: | |
Edit | |
`~/.ssh/config` | |
Host hostname | |
IdentityFile /path/to/ghe_private_key | |
User admin | |
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
http://work.stevegrossi.com/2016/07/11/building-a-chat-app-with-elixir-and-phoenix-presence/ | |
$ brew install erlang elixir | |
mix local.hex | |
elixir -v | |
// Intall postgresql - Optional | |
// PostgreSQL is a relational database server. Phoenix configures applications to use it by default, | |
// but we can switch to MySQL by passing the --database mysql flag when creating a new application. |
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
brew install mongo | |
mkdir -p ~/Library/LaunchAgents | |
cp /usr/local/Cellar/mongodb/2.2.0-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
# Mongo might be named differently, try this | |
cp /usr/local/Cellar/mongodb**/**/*plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/*mongo*plist |
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
1. Backup any databases you have using mysqldump | |
2. Stop MySQL using the pref panel | |
3. Open Terminal and type in the following commands | |
4. sudo rm /usr/local/mysql | |
5. sudo rm -rf /usr/local/mysql* | |
6. sudo rm -rf /Library/StartupItems/MySQLCOM | |
7. sudo rm -rf /Library/PreferencePanes/My* | |
8. edit /etc/hostconfig and remove the line MYSQLCOM=-YES- (May not be necessary) | |
9. rm -rf ~/Library/PreferencePanes/My* | |
10. sudo rm -rf /Library/Receipts/mysql* |
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
#!/usr/bin/env bash | |
# wget script from gist | |
# curl -LO https://gist.githubusercontent.com/mannysoft/fc6430c6b886dae149b6/raw/eb079e5cacc459b7a7a98ac073daa6be995c50f6/install-packages.sh | |
# chmod +x install-packages.sh | |
# ./install-packages.sh | |
echo "--- Welcome User. This is very exciting. ---" | |
echo "--- Updating packages list ---" | |
sudo apt-get update | |
sudo apt-get upgrade |
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
#!/usr/bin/env bash | |
# wget script from gist | |
# curl -LO https://gist.githubusercontent.com/mannysoft/fc6430c6b886dae149b6/raw/eb079e5cacc459b7a7a98ac073daa6be995c50f6/install-packages.sh | |
# chmod +x install-packages.sh | |
# ./install-packages.sh | |
echo "--- Welcome User. This is very exciting. ---" | |
echo "--- Updating packages list ---" | |
sudo apt-get update | |
sudo apt-get upgrade |
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
<?php | |
class Test extends Controller | |
{ | |
function test() | |
{ | |
$user = new User(); | |
$user->fill(Input::all()); | |
$user->customRule = 1; | |
$user->save(); |
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
### Install OpenJDK | |
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Download and Install ElasticSearch | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.0.deb | |
sudo dpkg -i elasticsearch-1.4.0.deb |