Skip to content

Instantly share code, notes, and snippets.

View anhphamt's full-sized avatar

Phamazing anhphamt

View GitHub Profile
@anhphamt
anhphamt / guide.txt
Last active June 5, 2017 09:39
OpenStack Authen V3 pkgCloud
https://developer.ibm.com/recipes/tutorials/use-pkgcloud-to-access-ibm-object-storage-for-bluemix-with-node-js/
var pkgcloud = require('pkgcloud');
var config = {
provider: 'openstack',
useServiceCatalog: true,
useInternal: false,
keystoneAuthVersion: 'v3',
authUrl: 'https://identity.open.softlayer.com',
@anhphamt
anhphamt / README.md
Created April 20, 2017 02:18 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@anhphamt
anhphamt / latest-ffmpeg-centos6.sh
Created December 23, 2016 09:46 — forked from mustafaturan/latest-ffmpeg-centos6.sh
Installs latest ffmpeg on Centos 6
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
@anhphamt
anhphamt / imagemagick_osx.md
Last active December 14, 2016 16:19
Installing Imagemagick anf Imagick extension OSX and CENTOS

Using MAC PORT to install Imagemagick

sudo port install ImageMagick

Install imagick php extension

sudo port install php70-imagick
@anhphamt
anhphamt / a.md
Created December 10, 2016 09:08 — forked from danharper/a.md
Laravel Queue Supervisor

Install Supervisor with sudo apt-get install supervisor. Ensure it's started with sudo service supervisor restart.

In /etc/supervisord/conf.d/ create a .conf file. In this example, laravel_queue.conf (contents below). Give it execute permissions: chmod +x laravel_queue.conf.

This file points at /usr/local/bin/run_queue.sh, so create that file there. Give this execute permissions, too: chmod +x run_queue.sh.

Now update Supervisor with: sudo supervisorctl reread. And start using those changes with: sudo supervisorctl update.

@anhphamt
anhphamt / install_supervisord_centos.md
Last active February 22, 2022 04:00 — forked from fadhlirahim/installing_supervisor_macosx.md
Setting up supervisord in Mac OSX or CENTOS
ffmpeg -r 25 -qscale 1 -i %05d.morph.jpg output.mp4
http://www.itforeveryone.co.uk/image-to-video.html
http://superuser.com/questions/624567/ffmpeg-create-a-video-from-images
@anhphamt
anhphamt / install_ffmpeg.md
Last active December 5, 2016 03:49
Install ffmpeg, ImageMagick on OSX

Install ffmpeg

http://www.renevolution.com/ffmpeg/2013/03/16/how-to-install-ffmpeg-on-mac-os-x.html

sh brew install ffmpeg --with-fdk-aac --with-sdl2 --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools

Make sure your XCODE, homebrew is latest version.

``

@anhphamt
anhphamt / guide.md
Last active April 6, 2018 03:45
Install FTP on Ubuntu

#install config pure-db sudo apt-get install pure-ftpd

sudo groupadd ftpgroup

``

@anhphamt
anhphamt / guide.md
Last active November 18, 2016 16:06
Design email template with Foundation

First you can download base email templates here

http://foundation.zurb.com/emails.html

After done with your changes, convert it to real HTML email template. Now you can use it to send.

http://foundation.zurb.com/emails/inliner-v2.html