Skip to content

Instantly share code, notes, and snippets.

View howiehu's full-sized avatar
🎯
Focusing

Hao Hu howiehu

🎯
Focusing
View GitHub Profile
@howiehu
howiehu / spring-boot-karate.md
Created March 17, 2021 14:02 — forked from roussi/gist:221b3c6f9a22b5ea67a95ecefd8c319d
Enable Karate in spring boot
  • To Integrate Spring boot test context with karate :
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@KarateOptions
public class ExampleControllerTest implements InitializingBean {

    @LocalServerPort
    int port;
@howiehu
howiehu / command
Created August 14, 2016 05:01
ASUS AC66U Hosts
wget https://raw.githubusercontent.com/racaljk/hosts/master/hosts -qO /tmp/hosts && sh -c 'cat /tmp/hosts > /jffs/configs/hosts'
@howiehu
howiehu / .vimrc.before.local
Last active October 28, 2016 00:17
My spf13 custom files.
let g:airline_powerline_fonts=1
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
@howiehu
howiehu / tmux.md
Created February 8, 2014 01:49 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@howiehu
howiehu / .powrc
Created December 19, 2013 03:21
Let pow to use .ruby-version & .ruby-gemset files. Please put this file to rails projects's folder.
if [ -f "$rvm_path/scripts/rvm" ] && [ -f ".ruby-version" ]; then
source "$rvm_path/scripts/rvm"
if [ -f ".ruby-gemset" ]; then
rvm use `cat .ruby-version`@`cat .ruby-gemset`
else
rvm use `cat .ruby-version`
fi
fi
@howiehu
howiehu / Terminal
Created June 5, 2013 04:07
Use HomeBrew + Cask install GrowlNotify.
brew cask install growlnotify
@howiehu
howiehu / Gemfile
Last active December 18, 2015 02:29
Add guard to Gemfile
group :development do
# If you need to use rspec, please replace this by 'guard-rspec'.
gem 'guard'
# Use for notify on Mac OS X, you must install growl and growlnotify before.
gem 'growl'
end