Skip to content

Instantly share code, notes, and snippets.

View titopandub's full-sized avatar

Tito Pandu Brahmanto titopandub

View GitHub Profile
@titopandub
titopandub / .bash_prompt.sh
Created December 7, 2018 04:20 — forked from miki725/.bash_prompt.sh
Custom bash prompt which displays: (virtualenv) user:/path (git-branch)
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch of the current git/mercurial repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@titopandub
titopandub / BF888S_default.txt
Created May 10, 2017 11:18 — forked from NaphatrB/BF888S_default.txt
Baofeng BF888S default frequencies
CH1 462.125 CTCSS 69.3
CH2 462.225
CH3 462.325
CH4 462.425 CTCSS 103.5
CH5 462.525 CTCSS 114.8
CH6 462.625 CTCSS 127.3
CH7 462.725 CTCSS 136.5
CH8 462.825 CTCSS 162.2
CH9 462.925 DCS 025
CH10 463.025 DCS 032
@titopandub
titopandub / git-pre-push-hook-install.sh
Last active May 12, 2016 16:41 — forked from ssaunier/git-pre-push-hook-install.sh
Hook to rub rspec before each `git push`. Can be bypassed with `git push --no-verify`
cd /path/to/your/repo
curl https://gist.githubusercontent.com/titopandub/c59732cce0e14bad113ed9d5a8242089/raw/pre-push.sh > .git/hooks/pre-push
chmod u+x .git/hooks/pre-push
Removing write permissions of /usr/local/bin and /usr/local directories resolved this issue.
chmod go-w /usr/local/bin
sudo chmod go-w /usr/local
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
id:
devise:
confirmations:
confirmed: 'Akun anda telah berhasil dikonfirmasi. Anda telah login.'
send_instructions: 'Anda akan menerima e-mail berisi instruksi untuk melakukan konfirmasi akun dalam beberapa menit lagi.'
send_paranoid_instructions: "Jika email anda benar-benar terdaftar, anda akan menerima email untuk mengkonfirmasi akun anda dalam beberapa menit lagi."
failure:
already_authenticated: "Anda telah login."
@titopandub
titopandub / view.js
Created June 21, 2014 07:23
Make any element can be click to go to another page using jQuery and data attribute (using data-link in this case)
$(".slideshow img").each(function () {
if ('' !== $(this).data('link')) {
$(this).click(function (e) {
window.location.href = $(this).data('link');
});
$(this).css('cursor', 'pointer');
}
});