Skip to content

Instantly share code, notes, and snippets.

@haijunsu
haijunsu / gistTips.md
Last active June 20, 2017 00:03
Vim Gist Tips
  • Create a public gist. (Only relevant if you've set gists to be private by default.
  :Gist -P
  • Create a private gist.
  :Gist -p
@haijunsu
haijunsu / Volvo S80.txt
Last active May 29, 2017 20:03
Volvo S80
换点火线圈:volvo s80 spark plugs
Volvo Spark Plug Set (Set of 6) - Genuine Volvo 8642661
https://www.eeuroparts.com/Parts/31154/Spark-Plug-Set-Set-of-6-8642661/?gclid=CJbdrKrd8tMCFRtYDQodpUoBAA
video:
https://www.youtube.com/watch?v=t50If0gibu0
https://www.youtube.com/watch?v=cXH_1Im_zeo
https://www.youtube.com/watch?v=biKXUi9ZWPE
2004 Volvo S80 - Timing Belt - Water Pump
@haijunsu
haijunsu / MySQLTips.md
Last active January 6, 2020 15:19
MySQL tips

Changing password

Method #1: Use mysqladmin command to change root password

  $ mysqladmin -u root -p'oldpassword' password newpass

Method #2: Changing MySQL root user password using the mysql command

  $ mysql -u root -p
  mysql> use mysql;
 mysql> update user set password=PASSWORD("NEWPASSWORD") where User='nixcraft';
@haijunsu
haijunsu / vim.md
Last active May 16, 2017 20:36
VIM Tips
Ctrl-D  move half-page down
Ctrl-U  move half-page up
Ctrl-B  page up
Ctrl-F  page down
Ctrl-O  jump to last (older) cursor position
Ctrl-I  jump to next cursor position (after Ctrl-O)
Ctrl-Y  move view pane up
Ctrl-E  move view pane down