Skip to content

Instantly share code, notes, and snippets.

View tucq88's full-sized avatar
🎯
Fake it till you make it. Confidence is more important than knowledge.

Tu Chu tucq88

🎯
Fake it till you make it. Confidence is more important than knowledge.
View GitHub Profile
@tucq88
tucq88 / IDpeo.markdown
Created May 18, 2014 06:03
A Pen by Tu Chu Quang.
@tucq88
tucq88 / ST3 - Preferences
Last active August 29, 2015 14:01
Sublime Text 3 - My Preferences
{
"bold_folder_labels": true,
"theme": "Spacegray Eighties.sublime-theme",
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme",
"font_face": "Source Code Pro",
"font_size": 10,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
@tucq88
tucq88 / Sublime Text 3 | Eclipse - Shortcuts
Last active August 28, 2024 02:16
Eclipse shortcuts key bindings for Sublime Text 3 (OS X)
[
{ "keys": ["super+shift+w"], "command": "close_all" },
{ "keys": ["super+shift+s"], "command": "save_all" },
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["super+alt+j"], "command": "join_lines" },
{ "keys": ["super+alt+down"], "command": "duplicate_line" },
{ "keys": ["shift+super+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
@tucq88
tucq88 / SVN - Userful CMD
Last active August 29, 2015 14:03
Useful SVN command
Show list modifed file only
===========================
svn status | grep ^M
@tucq88
tucq88 / Workflow - List web
Created July 29, 2014 02:17
List Restricted Websites
facebook.com
twitter.com
tumblr.com
pinterest.com
dantri.com.vn
vnexpress.net
kenh14.vn
genk.vn
afamily.vn
vozforums.com
@tucq88
tucq88 / .bashrc-for-ssh-agent
Created August 27, 2014 15:45
SSH-Agent config on BashRC
SSH_ENV=$HOME/.ssh/environment
# start the ssh-agent
function start_agent {
echo "Initializing new SSH agent..."
# spawn ssh-agent
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
@tucq88
tucq88 / .gitconfig
Created September 23, 2014 03:12
Workflow - GitConfig (Windows)
[user]
email = tucq88@gmail.com
name = Tucq
[color]
ui = auto
diff = true
status = true
branch = true
interactive = true
[merge]
@tucq88
tucq88 / snippet-php
Last active August 29, 2015 14:10
Snippet - PHP
function debug($var) {
echo '<pre style="text-align: left;font-size: 14px;">';
$trace = debug_backtrace();
echo 'Line: ' . $trace[0]['line'] . '<br>';
print_r($var);
echo '</pre>';
}
function debug_plus()
{
@tucq88
tucq88 / tricks-wordpress
Created December 1, 2014 04:36
Tricks - Wordpress
//Change owner to web user
$ sudo chown -R :_www installed-wordpress-dir
$ sudo chmod -R g+w installed-wordpress-dir
//Add this to installed-wordpress-dir/wp-config.php
//Ignore FTP login to install plugins or stuff
define('FS_METHOD', 'direct');
@tucq88
tucq88 / Gruntfile.js
Last active August 29, 2015 14:12 — forked from anonymous/Gruntfile.js
module.exports = function(grunt) {
// All configuration goes here
grunt.initConfig({
jekyll: {
build : {
dest: '_site'
}
},