Skip to content

Instantly share code, notes, and snippets.

@Trexology
Trexology / sierra-init.sh
Last active October 6, 2018 14:06
Mac Sierra
#!/usr/bin/env bash
cd ~
# xcode
xcode-select --install
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install bash-completion
# Install cocoapods
sudo gem install activesupport -v 4.2.6
#!/usr/bin/env bash
sudo yum update -y
sudo yum install httpd
cd
wget https://mirror.webtatic.com/yum/el6/latest.rpm
sudo yum install latest.rpm -y
sudo yum-config-manager --enable webtatic
sudo yum clean all
sudo yum install --enablerepo=webtatic php56w php56w-bcmath php56w-gd php56w-imap php56w-mbstring php56w-mcrypt php56w-mysqlnd php56w-pear php56w-xml php56w-soap php56w-devel -y
sudo yum install php56w-fpm php56w-opcache -y #thread safety
@Trexology
Trexology / raspbian.sh
Last active June 26, 2016 05:38
owncloud raspbian installation script
#!/usr/bin/env bash
# sudo rpi-update #Firmware update
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install apache2 php5 libapache2-mod-php5 openssh-server git-core fail2ban vim zip unzip -y
sudo cp /etc/fstab /etc/fstab.backup
# http://askubuntu.com/questions/2271/how-to-harden-an-ssh-server
sudo apt-get install --no-install-recommends bluetooth
@Trexology
Trexology / centos.repo
Last active June 2, 2016 06:25
CentOS 6 Repo setting for EC2 Linux [ Installation Path: /etc/yum.repos.d/ ] - http://d.hatena.ne.jp/go_nash/20160204
[centos]
name=CentOS-6 - Base
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os
enabled=0
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
@Trexology
Trexology / .bash_profile
Last active November 1, 2017 03:29
Sample bash_profile for OSX - (Laravel,ionic,android SDK,composer)
alias art="php artisan"
alias ion="ionic cordova"
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PATH=/usr/local/sbin:$PATH
@Trexology
Trexology / ec2-LAMP-init.sh
Last active February 14, 2021 16:47
Sample ec2-LAMP installation script
#!/usr/bin/env bash
sudo yum update -y
sudo yum install -y httpd24 git openssl-devel memcache mod24_ssl mysql
sudo yum install -y php56 php56-gd php56-mbstring php56-mcrypt php56-xmlrpc php56-soap php56-intl php56-xml php56-mysqlnd php56-bcmath php-pear php56-devel php56-fpm
#sudo yum install -y wqy-zenhei-fonts-0.9.45-3.2.amzn1 # For Chinese fonts
sudo yum-config-manager --enable epel
sudo pecl install uploadprogress # For drupal
sudo service httpd start
sudo chkconfig httpd on
sudo groupadd www
@Trexology
Trexology / supervisord.sh
Last active July 18, 2016 13:51
Supervisord init.d script for EC2 linux easy_install - http://tech.akat.info/?p=1931
#!/bin/sh
#
# /etc/rc.d/init.d/supervisord
#
# Supervisor is a client/server system that
# allows its users to monitor and control a
# number of processes on UNIX-like operating
# systems.
#
# chkconfig: - 64 36