Skip to content

Instantly share code, notes, and snippets.

@thinhhung
thinhhung / getAdobeCC2018.sh
Created March 23, 2019 14:15 — forked from fuyuanli/getAdobeCC2018.sh
透過 Aria2 下載 Adobe CC 2018 試用板
aria2c -x16 http://prdl-download.adobe.com/Photoshop/66A1D1E00DE44601B041A631261EC584/1507846032938/AdobePhotoshop19-mul_x64.zip
aria2c -x16 http://prdl-download.adobe.com/LightroomCC/B739B5BBE924450E85E3CCA3F4E58DF2/1507817913973/LRCC_1.0_20170919-1412-ccb76bd_win64_Release_ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Lightroom/C92BB55D87554077A61FB4B39229DF85/1509474343363/LR_7.0.1_1142117_win64_Release_ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Illustrator/C1208DBFE1D04A81A21C62CDF6A96AC6/1509968804429/AdobeIllustrator22_HD_win64.zip
aria2c -x16 http://prdl-download.adobe.com/InDesign/0AE9CC3E24054F7CAAEF89371F6B8E8E/1507852089154/InDesign_13_LS20_Win64.zip
aria2c -x16 http://prdl-download.adobe.com/Acrobat%20Professional/7D1CAD83986848F092F39734E60DCFEA/1508138997522/Acrobat_DC_Web_WWMUI.exe
aria2c -x16 http://prdl-download.adobe.com/Dimension/BA884A82C5AB47569685C2BD7D1289AD/1508226581127/Dimension_1.0-20170927.r.672-f179c9c-ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Bridge/FA969603
#!/usr/bin/env bash
# http://prdl-download.adobe.com/Photoshop/66A1D1E00DE44601B041A631261EC584/1507851230691/AdobePhotoshop19-mul.dmg
# http://prdl-download.adobe.com/LightroomCC/B739B5BBE924450E85E3CCA3F4E58DF2/1507820815391/LRCC_1.0_osx10-64_Release_ESD.dmg
# http://prdl-download.adobe.com/Bridge/FA96960347614BFC971E28B536D3387F/1507867282191/Bridge.8.0.HDInstaller.dmg
# http://prdl-download.adobe.com/Lightroom/C92BB55D87554077A61FB4B39229DF85/1509475151710/LR_7.0.1_1142117_osx10-64_Release_ESD.dmg
# http://prdl-download.adobe.com/Illustrator/C1208DBFE1D04A81A21C62CDF6A96AC6/1509969961594/AdobeIllustrator22_HD.dmg
# http://prdl-download.adobe.com/Dreamweaver/0D145873957D4FEF849999B43723DA1E/1509110688886/Dreamweaver%20CC%202018%20Set-up.dmg
# http://prdl-download.adobe.com/InDesign/0AE9CC3E24054F7CAAEF89371F6B8E8E/1507853111317/InDesign_13_LS20.dmg
# http://prdl-download.adobe.com/Acrobat%20Professional/7D1CAD83986848F092F39734E60DCFEA/1508139532629/Acrobat_DC_Web_WWMUI.dmg”>Mac OS (64 bit)
@thinhhung
thinhhung / encode.sh
Created February 6, 2019 14:29 — forked from mikoim/README.md
YouTube recommended encoding settings on ffmpeg (+ libx264)
#/bin/sh
ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output
// transform cropper dataURI output to a Blob which Dropzone accepts
function dataURItoBlob(dataURI) {
var byteString = atob(dataURI.split(',')[1]);
var ab = new ArrayBuffer(byteString.length);
var ia = new Uint8Array(ab);
for (var i = 0; i < byteString.length; i++) {
ia[i] = byteString.charCodeAt(i);
}
return new Blob([ab], { type: 'image/jpeg' });
}
@thinhhung
thinhhung / React-Directory-Layout.md
Created August 9, 2018 06:16 — forked from koistya/React-Directory-Layout.md
File and folder naming convention for React.js components

File and folder naming convention for React.js components

Directory Layout #1

/actions/...
/components/common/Link.js
/components/common/...
/components/forms/TextBox.js
/components/forms/TextBox.res/style.css
@thinhhung
thinhhung / .eslintrc
Created June 19, 2018 03:12 — forked from radiovisual/.eslintrc
React Native AirBnB ESLint Config
{
"parser": "babel-eslint",
"plugins": [
"react",
"react-native"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
@thinhhung
thinhhung / multiple_ssh_setting.md
Created April 4, 2018 06:58 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna!
([一-龯])
Regex for matching Hirgana or Katakana
([ぁ-んァ-ン])
Regex for matching Non-Hirgana or Non-Katakana
([^ぁ-んァ-ン])
Regex for matching Hirgana or Katakana or basic punctuation (、。’)
@thinhhung
thinhhung / gist:157a305c956f9d640ed721a1c452193a
Created March 22, 2018 01:28 — forked from jrmadsen67/gist:bd0f9ad0ef1ed6bb594e
Laravel Quick Tip: Handling CsrfToken Expiration gracefully
Quick tip for handling CSRF Token Expiration - common issue is when you use csrf protection is that if
a form sits there for a while (like a login form, but any the same) the csrf token in the form will
expire & throw a strange error.
Handling it is simple, and is a good lesson for dealing with other types of errors in a custom manner.
In Middleware you will see a file VerifyCsrfToken.php and be tempted to handle things there. DON'T!
Instead, look at your app/Exceptions/Handler.php, at the render($request, Exception $e) function.
All of your exceptions go through here, unless you have excluded them in the $dontReport array at the
@thinhhung
thinhhung / gist:356dbbfd7852c479fd22cf05f6c76184
Created March 22, 2018 01:28 — forked from jrmadsen67/gist:bd0f9ad0ef1ed6bb594e
Laravel Quick Tip: Handling CsrfToken Expiration gracefully
Quick tip for handling CSRF Token Expiration - common issue is when you use csrf protection is that if
a form sits there for a while (like a login form, but any the same) the csrf token in the form will
expire & throw a strange error.
Handling it is simple, and is a good lesson for dealing with other types of errors in a custom manner.
In Middleware you will see a file VerifyCsrfToken.php and be tempted to handle things there. DON'T!
Instead, look at your app/Exceptions/Handler.php, at the render($request, Exception $e) function.
All of your exceptions go through here, unless you have excluded them in the $dontReport array at the