Skip to content

Instantly share code, notes, and snippets.

View khlj's full-sized avatar

Frank Shin khlj

  • Washington D.C.
  • 17:38 (UTC -04:00)
View GitHub Profile
@khlj
khlj / motley-fool
Last active October 11, 2019 03:58
// Oops.. I submitted the application before working on it... but here it goes with what I can remember..
public class User {
private String username;
private String password;
public User(String username, String password) {
this.username = username;
this.password = password;
}
@khlj
khlj / cmd.sh
Created September 28, 2019 22:06
Gnome 3 Custom config
# add extra short cut keys for workspace navigation
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-5 "['<Alt>5']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-6 "['<Alt>6']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-7 "['<Alt>7']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-8 "['<Alt>8']"
dconf write /org/gnome/desktop/wm/keybindings/switch-to-workspace-9 "['<Alt>9']"
# shortcut for moving windows to designated workspace
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-5 "['<Shift><Alt>5']"
dconf write /org/gnome/desktop/wm/keybindings/move-to-workspace-6 "['<Shift><Alt>6']"
@khlj
khlj / myweechat.md
Created July 7, 2017 20:01 — forked from pascalpoitras/1.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

Enable mouse support

/mouse enable

Encrypted password in sec.conf

#!/bin/bash
# edit line 7 - Main to corresponding class name
# edit line 11 - incorrect to corresponding fail message. The printing of incorrect should be implemented from java source
COUNTER=0
while [ $COUNTER -lt 1000 ]; do
java Main >> output.txt
let COUNTER=COUNTER+1
done
@khlj
khlj / i3_lemonbar.sh
Created August 29, 2016 02:45
lemonbar gotham
#! /bin/bash
#
# I3 bar with https://github.com/LemonBoy/bar
. $(dirname $0)/i3_lemonbar_config
if [ $(pgrep -cx $(basename $0)) -gt 1 ] ; then
printf "%s\n" "The status bar is already running." >&2
exit 1
fi
@khlj
khlj / i3config
Created August 4, 2016 02:02
dotfiles
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@khlj
khlj / Dotfiles
Last active May 12, 2016 07:02
Dotfiles
dependencies:
-> font-awesome
-> rxvt-unicode
-> compton
firefox theme: arc theme (dark)
wallpaper @ http://i.imgur.com/5aZL4uu.jpg
credit to: lovelybacon.deviantart.com