Skip to content

Instantly share code, notes, and snippets.

View febrianrendak's full-sized avatar

Febrian Rendak febrianrendak

View GitHub Profile
git remote add origin git://origin.repo.git
git remote set-url --add --push origin git://another/repo.git
git remote set-url --add --push origin git://one_more/repo.git
" URL: http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good choice.
" If you're a more advanced user, building your own .vimrc based
" on this file is still a good idea.
"------------------------------------------------------------
" Features {{{1
"
SELECT tab_id, (SELECT ns_nama FROM z_nasabah WHERE ns_id=t.`ns_id`) AS ns_nama,
tab_saldo, tab_tgl_pembuatan, tab_cara_bayar FROM z_tabungan t WHERE tabj_id='TB005'
AND (SELECT uk_id FROM z_nasabah WHERE ns_id=t.ns_id)='UK011' AND tab_cara_bayar='potong_gaji' ORDER BY tab_id;
(function() {
$(document).ready(function() {
//var vimeo = $('.vimeo');
//var youtube = $('.youtube')
$.ajax({
url: 'https://api.vimeo.com/',
type: 'GET',
contentType: 'application/json',
dataType: 'json',
(function worker() {
$.ajax({
url: 'ajax/test.html',
success: function(data) {
$('.result').html(data);
},
complete: function() {
// Schedule the next request when the current one's complete
setTimeout(worker, 5000);
}
@febrianrendak
febrianrendak / tmux-webdev.sh
Created March 21, 2017 04:21
tmux script to create new session from current directory
#!/bin/bash
function tmux_web {
SESSION_NAME=$1
#echo "Create.."
tmux -L $SESSION_NAME new -s $SESSION_NAME -n editor -d
#echo "Creat first pane (editor).."
tmux -L $SESSION_NAME send-keys -t $SESSION_NAME 'vim' C-m
#echo "Run vim in first pane.."
tmux -L $SESSION_NAME new-window -n console -t $SESSION_NAME
# Our .tmux.conf file
# Setting the prefix from C-b to C-a
# START:prefix
set -g prefix C-q
# END:prefix
# Free the original Ctrl-b prefix keybinding
# START:unbind
unbind C-b

Twitter API Keys

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA