Skip to content

Instantly share code, notes, and snippets.

View anhphamt's full-sized avatar

Phamazing anhphamt

View GitHub Profile
@anhphamt
anhphamt / bbb.md
Last active June 25, 2018 16:13
BigBlueButton useful commands
# the instructions from here: https://stackoverflow.com/questions/3704919/installing-rmagick-on-ubuntu/31089915#31089915
# worked, but only after I added in line 8
sudo apt-get purge graphicsmagick graphicsmagick-dbg imagemagick-common imagemagick imagemagick-6.q16 libmagickcore-6-headers libmagickwand-dev graphicsmagick-libmagick-dev-compat
sudo apt-get autoremove
sudo apt-get install imagemagick libmagickwand-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/Magick-config /usr/bin/Magick-config
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
gem install rmagick
@anhphamt
anhphamt / common-commands.md
Last active October 30, 2023 08:42
Some useful commands

Readd keys for remote deploying

ssh-add
ssh-add ~/.ssh/deployer
ssh-add ~/.ssh/clhq_tuananh_rsa

Check subfolders disk size

~/Library/Developer/Xcode
@anhphamt
anhphamt / successful-rails-nginx-production-deployment.txt
Created January 30, 2018 04:49 — forked from dhirajbajaj/successful-rails-nginx-production-deployment.txt
Ruby on Rails / Postgres / Nginx / Passenger / Capistrano / Ubuntu 14.04 / AWS
#####################################
# 0. SET UP AWS (ASSUMING YOU HAVE ALREADY SET UP AN ACCOUNT)
# CREATE SECURITY GROUP
• In the EC2 Dashboard, click Security Groups, then Create Security Group.
• Enter Name
• Enter Description
• Rules to add:
- HTTP
- SSH
@anhphamt
anhphamt / set-up-deployment-castrapino.md
Last active October 30, 2021 06:25
Setup Caspitrano deployment Ubuntu
@anhphamt
anhphamt / routes.rb
Created September 19, 2017 08:44 — forked from tejo/routes.rb
Examples of advanced Rails Routes
Rails.application.routes.draw do
get '/(:locale)/products/(:category)/(page/:page).:extension',
:to => 'products#index',
:as => :products,
:constraints => {
:locale => /[a-z]{2}/,
:category => /.+?/,
:page => /\d+/
},
@anhphamt
anhphamt / import-shp-mongodb.md
Last active September 6, 2017 13:12
Import SHP to MongoDB on MAC

Try this link

http://isticktoit.net/?p=1444

Install GDAL and ogr2ogr tool

brew install gdal

After installing the tool, convert the SHP file to geojson first by this command

@anhphamt
anhphamt / RAILS_CHEATSHEET.md
Created August 20, 2017 03:20 — forked from mdang/RAILS_CHEATSHEET.md
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before

@anhphamt
anhphamt / guide.md
Created August 8, 2017 09:09
Integrate S3 with CI

This is the guide

  • Install AWS SDK PHP *
@anhphamt
anhphamt / RoR-getting-started.md
Last active August 24, 2017 02:22
Ruby on Rails installation