Skip to content

Instantly share code, notes, and snippets.

View mannysoft's full-sized avatar
🏠
Working from home

Manny Isles mannysoft

🏠
Working from home
View GitHub Profile
#!/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 ---"
@mannysoft
mannysoft / install.sh
Last active May 18, 2018 09:42
Install LEMP stack
#!/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
@mannysoft
mannysoft / For Laravel envoy
Last active February 22, 2018 03:19
For Laravel envoy
For mac:
Edit
`~/.ssh/config`
Host hostname
IdentityFile /path/to/ghe_private_key
User admin
@mannysoft
mannysoft / Elixir-Chat.txt
Last active November 24, 2017 11:43
Elixir Chat
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.
@mannysoft
mannysoft / MongoDB Install and AutoStart
Created November 21, 2017 03:20 — forked from henryalee/MongoDB Install and AutoStart
Install mongodb with homebrew and set it to autostart
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
@mannysoft
mannysoft / mysql_uninstall.txt
Created July 11, 2016 08:16 — forked from ismaild/mysql_uninstall.txt
uninstall mysql, Mac OSX
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*
#!/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
#!/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
<?php
class Test extends Controller
{
function test()
{
$user = new User();
$user->fill(Input::all());
$user->customRule = 1;
$user->save();
### 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