Skip to content

Instantly share code, notes, and snippets.

View kholis's full-sized avatar

Nur Kholis M kholis

View GitHub Profile
@kholis
kholis / fair-scheduler-sqoop2
Created November 5, 2014 05:59
sqoop2 fair scheduler config cdh5
{
"defaultMinSharePreemptionTimeout": null,
"defaultQueueSchedulingPolicy": null,
"fairSharePreemptionTimeout": null,
"queueMaxAppsDefault": null,
"queuePlacementRules": [],
"queues": [
{
"aclAdministerApps": "yarn ",
"aclSubmitApps": "apps,storm,sqoop2 ",
@kholis
kholis / snippets.conf
Created December 26, 2013 07:12
Geany snippet for bash script ~/.config/geany/snippets.conf
[Sh]
if=if [ %cursor% ]; then\n\t\nfi
elif=elif [ %cursor% ]; then\n\t
else=else\n\t
for=for %cursor% in %cursor%; do\n\t\ndone
func=function %cursor%() {\n\t\n}
while=while [ %cursor% ]; do\n\t\ndone
until=until [ %cursor% ]; do\n\t\ndone
case=case %cursor% in\n\tval)\n\t\t;;\n\t*)\n\t\t;;\nesac
select=select %cursor% in %cursor%; do\n\t\ndone
@kholis
kholis / .vimrc
Created December 24, 2013 09:47
My vimrc Dec 2013
set nocompatible
set encoding=utf-8
execute pathogen#infect()
call pathogen#incubate()
syntax on
filetype plugin indent on
set number
colorscheme molokai
"set expandtab sw=4 ts=4 sts=4
set sw=4 ts=4 sts=4
@kholis
kholis / oblivion2.conf
Created December 24, 2013 09:46
Geany Oblivion2 themes from https://github.com/codebrainz/geany-themes modified for better visibility. .config/geany/colorschemes/oblivion2.conf
#
# Copyright Bernhard Posselt <bernhard.posselt(at)gmx(dot)at>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@kholis
kholis / colorprompt.sh
Created October 31, 2012 08:48
colorprompt: Make Redhat shell colorize and formatting like ubuntu/debian :)
# Install bash_completion first
# Place this file in /etc/profile.d
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
@kholis
kholis / cursor_animation.py
Created May 5, 2012 15:38
Python Text Cursor Animation
#!/usr/bin/env python
# taken from: http://stackoverflow.com/questions/7039114/waiting-animation-in-command-prompt-python
import threading
import time
class CursorAnimation(threading.Thread):
def __init__(self):
self.flag = True
@kholis
kholis / .fonts.conf
Created January 31, 2012 10:53
My font config on Xubuntu
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
@kholis
kholis / simple-green.xml
Created January 1, 2012 08:21
Simple Green Blogspot theme.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'/>
<b:if cond='data:blog.isMobile'>
<meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/>
<b:else/>
<meta content='width=1100' name='viewport'/>
</b:if>
@kholis
kholis / gtkrc
Created February 1, 2011 13:16
gtkrc on nimbus-compact theme solaris
include "iconrc"
gtk-error-bell=0
gtk-icon-sizes = "panel-menu=16,16:gtk-menu=16,16:gtk-button=16,16:gtk-small-toolbar=16,16:gtk-large-toolbar=16,16:gtk-dialog=32,32:gtk-dnd=32,32"
style "default"
{
bg[NORMAL] = "#e8e9ed"
bg[PRELIGHT] = "#e9ecf2"
@kholis
kholis / .vimrc
Created February 1, 2011 13:14
.vimrc solaris 11 express
" An example for a vimrc file.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2008 Dec 17
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
" for OpenVMS: sys$login:.vimrc