I hereby claim:
- I am hoangtranwork on github.
- I am hoangtg (https://keybase.io/hoangtg) on keybase.
- I have a public key whose fingerprint is CEAB C10C 74B5 3D67 7F73 11F3 ECC1 3C2D D43B 9EA3
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
package kotlintest.playground | |
import io.kotlintest.KTestJUnitRunner | |
import io.kotlintest.specs.StringSpec | |
import org.junit.runner.RunWith | |
/** | |
* Created by hoang on 7/13/16. | |
*/ | |
@RunWith(KTestJUnitRunner::class) |
import com.j256.ormlite.db.MysqlDatabaseType; | |
/** | |
* Created by Hoang on 2016-05-21. | |
*/ | |
class MySql6DbType extends MysqlDatabaseType { | |
@Override | |
protected String getDriverClassName() { | |
return "com.mysql.cj.jdbc.Driver"; | |
} |
/** | |
* The data source instance that need to be public so we can close it in on-app-exit hook | |
*/ | |
private DataSource initDataSource(HikariConfig config) { | |
return new HikariDataSource(config); | |
} | |
private ConnectionSource initConnectionSource(DataSource ds) throws SQLException { | |
return new DataSourceConnectionSource(ds, new MySql6DbType()); | |
} |
if has("gui_running") | |
au ColorScheme * hi EndOfBuffer guifg=#002b36 | |
else | |
au ColorScheme * hi EndOfBuffer ctermfg=bg | |
endif |
Steps:
/etc/hostname
: only 1 line with the new-hostname
new-hostname
/etc/hosts
: 2 lines127.0.0.1 localhost new-hostname
127.0.1.1 new-hostname
# Copy and self modified from ys.zsh-theme, the one of default themes in master repository | |
# Clean, simple, compatible and meaningful. | |
# Tested on Linux, Unix and Windows under ANSI colors. | |
# It is recommended to use with a dark background and the font Inconsolata. | |
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
# http://xiaofan.at | |
# 2 Jul 2015 - Xiaofan | |
# Machine name. | |
function box_name { |