Skip to content

Instantly share code, notes, and snippets.

View dotku's full-sized avatar
🧐
I'm busy... I may be slow to respond.

Weijing Jay Lin dotku

🧐
I'm busy... I may be slow to respond.
  • Meta
  • San Francisco, CA, USA
  • 01:52 (UTC -07:00)
View GitHub Profile
@dotku
dotku / pub
Created June 14, 2017 02:49
My Public Keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDf4aTZ1/uODMONyvtaynf00R9Ocv40NpLwTLVbP9yVO2jDMfRP91SKBGqHt8V3tUNO/NkDFlthyuJGIGuvLaAcgFdjk9fQF9yeW2dMWw4bsAVW8ZPMlLOMxH24TE5mCElqc0vKumkk0tndfqw5whsRwnJLoeF/pApbWxQ7Ijc/c/mU0ASf9uBXItMLJzQqhrv/IgKqPHM2IfZ78wnu8P8Ug4zagHsWrEFow4zdmaJc8oq9ziSw0xz4SGyr3Q6KzNJyFNA+JLpZjLwMAfLtXsdries+aO+2Pwt+51sfkhVkjT5e55kBo7W8YY4n+sewpSBAAbQnKQ6nSTobJUY2GnMb wlin@wlin-mbp

README

  1. Please click all "tab to view price" button
  2. Run the script below
  3. Paste the result to Excel/Google Sheet and Sort
$(".sku-title").each(function(i, o){console.log($(o).text().split('-')[1].split('Cu')[0].replace( /^\D+/g, '') /  $(o).closest('.row').find('.pb-purchase-price').eq(0).text().replace(/^\D+/g, ''), $(o).text(), $(o).next('.sku-model').text(), $(o).closest('.row').find('.pb-purchase-price').eq(0).text().replace(/^\D+/g, ''))})
@dotku
dotku / git-readme.md
Last active March 9, 2017 08:35
common command for git
  1. update remote git

    git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
    
  2. specified a git file

> Host gitolite-as-alice

  1. 更新图片
Update tp_goods Set original_img = concat('/Public/upload/goods/2016/', goods_sn, '/main/1.jpg');
  1. 更新商品编号
Update tp_goods Set goods_sn = 28	where goods_name like "%Aptamil 英国爱他美 婴儿奶粉 1段 900克 0-6个月适用%"
  1. rand generate mac address for MacOS
sudo openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' | xargs sudo ifconfig en0 ether
  1. Check MAC Address
ifconfig en1 ether
@dotku
dotku / Sublime SFTP README.md
Created December 10, 2016 06:49
README file from Sublime SFTP

Package Control Messages

SFTP

Thanks for installing Sublime SFTP! Below are some quick notes to get you started with the plugin. Please see https://wbond.net/sublime_packages/sftp for the full documentation.

svn info, check current svn information, such as user name svn://xxx path
svn move, rename svn path
svn switch, change the current svn work
svn ci -m "your comment here", checkin the code
svn update, sync the code with remote svn server (upload and download the code)
svn status, compare with local code modification