Skip to content

Instantly share code, notes, and snippets.

View nttan's full-sized avatar

Nguyen Tan nttan

View GitHub Profile
@nttan
nttan / gist:da57dd75c9d25052b9bd
Created April 26, 2015 09:30
GIT: Save user and Password when use git
git config --global credential.helper store
@nttan
nttan / install mysql on fedora
Last active August 29, 2015 14:17
install mysql on fedora #fedora
link
https://developer.jboss.org/wiki/InstallMySQLonFedora?_sscc=t
http://www.linuxers.org/howto/how-install-mysql-server-fedora
@nttan
nttan / gist:c7c8a6e0e644ab8420ec
Last active August 29, 2015 14:15
cài macos song song window
https://www.youtube.com/watch?v=duVRKVJCmSo
https://www.youtube.com/watch?v=NaMQZK41_Zw&index=6&list=TL6QV_CkXCFtg
@nttan
nttan / gist:4a94d2af6aa46372f09b
Created February 12, 2015 02:02
Doctrine 2 document
https://github.com/TomasVotruba/awesome-doctrine
@nttan
nttan / SiteConfig.php
Last active August 29, 2015 14:15
add button on Backend Silverstripe CMS
$importLetMCbutton = FormAction::create('manualimport_LetMC', 'Start Import with LetMC')
->addExtraClass('ss-ui-action-constructive ss-ui-button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary')
->setAttribute('data-icon', 'accept')
->setButtonContent('<span class="ui-button-icon-primary ui-icon btn-icon-accept"></span><span class="ui-button-text">Start Import with LetMC</span>')
->setUseButtonTag(true);
@nttan
nttan / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console