Skip to content

Instantly share code, notes, and snippets.

View injune1123's full-sized avatar
🎁
Embracing whatever gift life sends me

Jun Yin injune1123

🎁
Embracing whatever gift life sends me
View GitHub Profile
@injune1123
injune1123 / keybase.md
Created October 2, 2018 23:15
link Github with Keybase

Keybase proof

I hereby claim:

  • I am injune1123 on github.
  • I am injune1123 (https://keybase.io/injune1123) on keybase.
  • I have a public key ASDTnw94BeOrfECmNpM7dSdWhJnx78S7pT5fJfmeb_I5GAo

To claim this, I am signing this object:

@injune1123
injune1123 / Java Cheat Sheet
Last active January 15, 2019 16:00
Frequently Used Commands
//check the version of JAVA
java -version
// Switch to JAVA 8 on macOS High Sierra and Mojave
$export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/
@injune1123
injune1123 / Git Command Cheat Sheet
Last active April 3, 2019 15:50
My Frequently used GitHub commands
Learning resources:
https://learngitbranching.js.org/
I stashed twice, what shall I do????!!!!
https://www.atlassian.com/git/tutorials/saving-changes/git-stash
$git stash list
$git stash apply stash@{n}
Switching remote URLs
@injune1123
injune1123 / Postgresql Cheat Sheet
Last active June 10, 2019 14:49
Frequently used Postgresql commands
sudo su - postgres
create database #{DATABASE_NAME};
psql -U postgres
//list all dbs
postgres-# \l
@injune1123
injune1123 / NPM Cheat Sheet
Last active November 27, 2018 16:07
my npm cheatsheet
//fix ${NPM_TOKEN} error
get a new token from npm.org
add `export NPM_TOKEN="{token}` to `~/.bash_profile`
//test a single file using Jest and npm?
npm test -- SomeTestFileToRun
@injune1123
injune1123 / My mysql Cheat Sheet
Last active December 12, 2018 19:30
Mysql Cheatsheet
mysql -u root
show databases;
// the default databases
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
@injune1123
injune1123 / Apache Cheat Sheet
Created November 27, 2018 16:09
My apache Cheat Sheet
//
@injune1123
injune1123 / Rails Cheatsheet
Last active May 20, 2019 21:22
Rails Cheatsheet
rvm use
bundle install
bundle exec rake db:migrate
bundle exec rake jobs:work
? after a funcion mean it returns a boolean
@injune1123
injune1123 / My shortcut Cheatsheet
Created December 17, 2018 20:29
My shortcut Cheatsheet
use Ctl+Alt+Up (sublime vertical select )
@injune1123
injune1123 / My terminal tricks
Created January 4, 2019 19:29
iterm, bash, etc.
//============
//iterm
//============
download iterm
cmd+D splits the window horizontally
cmd+shift+D splits the window vertically
//Open Toolbelt
Profiles, Command History, Notes