Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Nizamuddin Sulieman kuntau

💭
I may be slow to respond.
View GitHub Profile
@kuntau
kuntau / _vimrc
Last active Dec 14, 2015
my _vimrc. updated 24 April 2013
View _vimrc
set encoding=utf-8
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
Bundle 'gmarik/vundle'
View .vimrc
set encoding=utf-8
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
Bundle 'gmarik/vundle'
@kuntau
kuntau / sublime_shortcut.textile
Last active Dec 15, 2015
a collections of sublime text shortcuts
View sublime_shortcut.textile

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+ insert line after
@kuntau
kuntau / node.coffee
Last active Dec 15, 2015 — forked from shripadk/gist:652819
nodejs express couchdb redis
View node.coffee
###
Module dependencies
###
require.paths.unshift "#{__dirname}/lib/support/express-csrf/"
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/"
express = require 'express'
app = module.exports = express.createServer()
RedisStore = require 'connect-redis'
@kuntau
kuntau / Preference.sublime-settings
Last active Dec 20, 2015
My sublime text 3 setting
View Preference.sublime-settings
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true,
"bold_folder_labels": true,
"caret_style": "phase",
"close_windows_when_empty": true,
"color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme",
"create_window_at_startup": false,
"detect_indentation": true,
@kuntau
kuntau / Default (Linux).sublime-keymap
Created Aug 11, 2013
My sublime text 3 keybinding
View Default (Linux).sublime-keymap
[
{
"keys": ["j", "j"], "command": "set_action",
"args": {"action": "vi_esc"},
"context":
[
{"key": "vi_mode_insert"},
{"key": "vi_is_buffer"}
]
},
View angular.coffee
app = angular.module("MyApp")
app.controller 'TodoCtrl', ($scope) ->
$scope.todos = [{text: 'learn angular', done: true},
{text: 'learn coffeescript', done: false}]
$scope.addTodo = ->
View top3stories.js
// Scraping Made Easy with jQuery and SelectorGadget
// (http://blog.dtrejo.com/scraping-made-easy-with-jquery-and-selectorga)
// by David Trejo
//
// Install node.js and npm:
// http://joyeur.com/2010/12/10/installing-node-and-npm/
// Then run
// npm install jsdom jquery http-agent
// node numresults.js
//
@kuntau
kuntau / 0_reuse_code.js
Created Oct 12, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@kuntau
kuntau / set_permission.sh
Created Oct 14, 2013
How to set chmod for a folder and all of its subfolders and files in Linux Ubuntu Terminal?
View set_permission.sh
# The other answers are correct, in that chmod -R 755 will set this as permissions to all files and folders in the tree. But why on earth would you want to? It might make sense for the directories, but why set the execute bit on all the files?
# I suspect what you really want to do is set the directories to 755 and either leave the files alone or set them to 644. For this, you can use the find command. For example:
# To change all the directories to 755 (-rwxr-xr-x):
find /opt/lampp/htdocs -type d -exec chmod 755 {} \;
# To change all the files to 644 (-rw-r--r--):