Skip to content

Instantly share code, notes, and snippets.

View shuLhan's full-sized avatar

Shulhan shuLhan

View GitHub Profile
abi.vsyscall32 = 1
debug.exception-trace = 1
debug.kprobes-optimization = 1
dev.hpet.max-user-freq = 64
dev.i915.oa_max_sample_rate = 100000
dev.i915.perf_stream_paranoid = 1
dev.mac_hid.mouse_button2_keycode = 97
dev.mac_hid.mouse_button3_keycode = 100
dev.mac_hid.mouse_button_emulation = 0
dev.scsi.logging_level = 0

Keybase proof

I hereby claim:

  • I am shulhan on github.
  • I am shulhan (https://keybase.io/shulhan) on keybase.
  • I have a public key ASAL1iV7yVa9XFWB8juB67AbBPprAuOAhKN0ZtYeyWqeRAo

To claim this, I am signing this object:

from __future__ import absolute_import
from __future__ import print_function
from buildbot.www.hooks.base import BaseHookHandler
import logging
class MattermostHandler(BaseHookHandler):
def __init__(self, master, options):
if options is None:
@shuLhan
shuLhan / playbook.py
Created October 2, 2016 07:48
Sphinx directive to parse and include Ansible playbook
##
## Directive for Ansible playbook.
##
## This directive will parse all the top comment on playbook and use it as
## content in documentation, and display the rest of it as a script.
##
## Installation,
## - copy the script to your sphinx `doc` directory
## - enable local extension in `conf.py`
##
package test
import (
"testing"
)
var sum int
func sumByIndex(n int) (sum int) {
sliceint := make([]int, n)
package main
import (
"github.com/pkg/profile"
)
var n = 100000
func SumByElm(n int) (sum int) {
sliceint := make([]int, n)
package main
import (
"github.com/pkg/profile"
)
var n = 100000
func SumByIndex(n int) (sum int) {
sliceint := make([]int, n)
@shuLhan
shuLhan / pentaho-platform-assembly ant resolve error
Created October 16, 2014 12:30
pentaho-platform-assembly ant resolve error.
Buildfile: /home/ms/git/pentaho.com/pentaho-platform/assembly/assembly.xml
clean-tests:
cobertura.clean-instrumented-classes:
cobertura.clean-coverage-reports:
clean-cobertura:
clean-sonar:
clean-javadoc:
clean-dist:
clean:
[delete] Deleting directory /home/ms/git/pentaho.com/pentaho-platform/assembly/bin
@shuLhan
shuLhan / PKGBUILD
Created June 25, 2013 01:27
PKGBUILD for youtube-dl-git without haskell-pandoc. If you don't mind missing manual page and README.txt you can use this PKGBUILD to install youtube-dl without haskell-pandoc dependency.
_pkgname=youtube-dl
pkgname=${_pkgname}-git
pkgver=1653
pkgrel=1
pkgdesc='Small command-line program to download videos from YouTube.com and other video sites'
arch=('i686' 'x86_64')
url="http://rg3.github.com/${_pkgname}"
license=('custom')
depends=('python2')
#makedepends=('git' 'zip' 'sed' 'haskell-pandoc')
@shuLhan
shuLhan / Ext.ux.panel.UploadPanel
Created May 29, 2012 11:01
Ext.ux.panel.UploadPanel for ExtJs 4 + plupload
// Ext.ux.panel.UploadPanel for ExtJs 4 + plupload
// Source: http://www.thomatechnik.de/webmaster-tools/extjs-plupload/
// Based on: http://www.sencha.com/forum/showthread.php?98033-Ext.ux.Plupload-Panel-Button-%28file-uploader%29
// Please link to this page if you find this extension usefull
// Version 0.2
// @authors:
// - mhd sulhan (ms@kilabit.org)
Ext.define ('Ext.ux.panel.UploadPanel',
{