Skip to content

Instantly share code, notes, and snippets.

View jackie-do's full-sized avatar
🎯
Focusing

Huy Do jackie-do

🎯
Focusing
View GitHub Profile

GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA <schema_name> TO <username>;

GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA <schema_name> TO <username>;

@jackie-do
jackie-do / [linux]_create_user_without_home_directory_and_set_up_sftp.md
Last active March 12, 2018 07:58
Create a user without home directory and change it's directory to a new path, configure permission.

sudo adduser --no-create-home <username>

sudo usermod -d /path/to-a-directory <username>

Install

sudo apt-get update

sudo apt-get install mysql-server

Set password of root if missing

sudo service mysql stop

sudo mkdir /var/run/mysqld

@jackie-do
jackie-do / wicked-pdf_on_amazon_linux.md
Last active December 5, 2018 07:01
wicked-pdf on Amazon Linux Image and Japanese
  1. Install gem wicked-pdf
  2. Install gems to allow generate pdf from html (using wkhtmltopdf library)

wkhtmltopdf-binary ~ for general

wkhtmltopdf-binary-edge ~ for MacOS and Ubuntu/CentOS

'wkhtmltopdf-binary-aml', git: 'https://github.com/insphire/wkhtmltopdf-binary-aml' ~ for Amazon Linux (use this one)

  1. Set UTF-8 in HTML