Skip to content

Instantly share code, notes, and snippets.

View thesabbir's full-sized avatar

Sabbir Ahmed thesabbir

View GitHub Profile
@thesabbir
thesabbir / .vimrc
Last active January 3, 2016 16:49
My Vim Configuration for Javascript Development. Plugins installed via vundle.
syntax enable
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'davidhalter/jedi-vim'
call vundle#end()
filetype plugin indent on
set number
set ts=4
set nocompatible
@thesabbir
thesabbir / .zshrc
Last active January 4, 2016 15:58
My zsh config for OSX
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="mrtazz"
plugins=(git node adb django npm git-extras git-flow osx python brew history-substring-search)
source $ZSH/oh-my-zsh.sh
######################
##### Lot's of ####
##### Aliases ####
@thesabbir
thesabbir / nwbuild.sh
Created January 30, 2014 08:52
Simple Command Line Helper to Package and Run Node Webkit App For OS X
#!/bin/sh
echo 'Packaging...'
cd $1/Contents/Resources/app/
pwd
echo 'Zipping..'
zip -r app *
echo "Done.."
echo "Moving.."
mv app.zip ../app.nw
if [ -z "$2" ]
@thesabbir
thesabbir / wp.conf
Created May 4, 2014 18:21
Nginx 1.6 Config (OS X, Homebrew) For localhost Wordpress Installation.
server {
listen 80;
root /Users/sabbir/FLow/php/wordpress;
index index.php;
server_name wp.dev;
location / {
try_files $uri $uri/ /index.php?$args;
}
@thesabbir
thesabbir / ovpn2nm.js
Last active August 29, 2015 14:03
Openvpn config to network manager config converter. Download and make this script executable and run (you need to have node.js installed).
#!/usr/bin/env node
var args = process.argv.slice(2);
if (args[0] == '-h' || args[0] == undefined) {
console.log('\nUsage : ovpn2nm.js [file]');
console.log('Example : ovpn2nm.js client.ovpn');
console.log('\nVersion 0.0.1');
return 0;
};
@thesabbir
thesabbir / GithubBengaliFontFix.user.js
Last active August 29, 2015 14:04
Tampermonkey userscript for fixing broken bengali font rendering on github sites.
// ==UserScript==
// @name Github Bengali Font Fix
// @namespace thesabbir.github.fontfix
// @version 0.3
// @description Tampermonkey userscript for fixing broken bengali font rendering on github sites.
// @match https://github.com/*
// @match https://*.github.com/*
// @copyright 2014 Sabbir Ahmed
// ==/UserScript==
@thesabbir
thesabbir / .zshrc
Last active August 29, 2015 14:04
ZSH config for linux
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="mrtazz"
plugins=(git git-flow history-substring-search)
source $ZSH/oh-my-zsh.sh
cat ~/local/sign
######################
##### Lot's of ####
##### Aliases ####
@thesabbir
thesabbir / 0_reuse_code.js
Created August 22, 2014 21:51
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
@thesabbir
thesabbir / index.html
Last active August 29, 2015 14:05
Replacing string inside a html element
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-git1.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div class="name">anam vai</div>
/*
Solaimani Tabij Factory
Author : Sabbir
*/
/* The main constructor */
var SolaimainiKoboz = function(karzoKarita, mulloFerot, level) {
this.karzoKarita = karzoKarita;
this.dam = 101 * level;