Skip to content

Instantly share code, notes, and snippets.

View jasoet's full-sized avatar
🎯
Focusing

Deny Prasetyo jasoet

🎯
Focusing
View GitHub Profile
package slicks.docs.dao
import scala.slick.driver.PostgresDriver.simple._
import scala.slick.driver._
trait Profile {
val profile: JdbcProfile
}
@jasoet
jasoet / zsh.md
Last active August 29, 2015 14:11 — forked from tsabat/zsh.md
# Aliases for git shorty
alias gco="git checkout"
alias gaa="git add -A ."
alias gcm="git commit -m"
alias gst="git status"
alias glo="git log --graph"
alias gpl="git pull"
alias gps="git push"
alias gbr="git branch"
alias gft="git fetch"
@jasoet
jasoet / gist:8294733
Created January 7, 2014 04:44
Fork Rules

FORKIN' A RAP OH!

FORK A REPO

Go to bitbucket (or github) press fork button, yeah!

e.g. https://bitbucket.org/rockybars/delicious

CLONE MY REPO (FORK)

Clone my own fork of an upstream repo

@jasoet
jasoet / Hacking Rules
Created January 7, 2014 04:43
Hacking Rules
= General rules =
* Always ask if you have any questions or doubts on anything
* Try to consult first when you need to make big changes
* Always document your changes in the code
* Always provide a unit test when you make changes covering: good cases, error cases, cases with bad inputs
= Repositories =
Rules:
@jasoet
jasoet / JAVA_HOME on MAC
Created November 30, 2013 04:42
Set JAVA_HOME on MAC
$ vim .bash_profile
export JAVA_HOME=$(/usr/libexec/java_home)
$ source .bash_profile
$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
@jasoet
jasoet / gist:7693148
Created November 28, 2013 14:54
Add Color Terminal on MacOSX
$touch ~/.bash_profile
$ echo "export CLICOLOR=1" >> ~/.bash_profile
$ echo "export LSCOLORS=GxFxCxDxBxegedabagaced" >> ~/.bash_profile
$ cat ~/.bash_profile
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
@jasoet
jasoet / ApplicationContextProvider
Created November 22, 2013 17:10
ApplicationContext Singleton Provider
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Created with IntelliJ IDEA.
* User: Deny Prasetyo
* Date: 4/2/13
* Time: 11:00 PM
* To change this template use File | Settings | File Templates.
*/
@jasoet
jasoet / ZIP and Rename
Last active December 22, 2015 14:18
Zip and Rename
#!/bin/bash
IFS=$'\n'
for f in $(find $1 -type d ); do
echo $f
zip -r $f $f
#mv -f $f `echo $f | sed s/zip/cbz/`
done

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname