Codesanook

codesanook.com "โค้ดสนุก" สังคมแห่งการเรียนรู้ และแบ่งปันความรู้ด้าน programming/coding สังคมที่ต้องการสร้างแนวคิดที่ว่า "programming/coding ไม่ใช่เรื่องยาก แต่เป็นเรื่องที่สนุก" เช่นเดียวกับคำว่า "codesanook สนุกไปกับการเขียนโค้ด"

  • Kill process with MS PowerShell

    Tags: powershell
    I sometime need to kill multiples processes manually e.g., to kill all Chrome drivers in my computer. I think the following PowerShell script is pretty handy and maybe useful for other people as well. … Read more...
  • Vim surround

    Tags: vim
    Vim surround with If you have Vim surround with plugin installed, you can use a powerful command of surround with to add or remove character around a word. Add surround character ys<motion><character> … Read more...
  • Jump to a bookmark with Vim

    Tags: vim
    In Vim, you can make a bookmark and assign a character to reference the bookmark. Then you can jump to that bookmark. You can use '{character} and `{character} The difference between '{character} and … Read more...
  • Vim Windows xp command to swap a character

    Tags: vim
    I sometimes have wrong typing my friend's name. His name is Phuong but I typed as Phoung. However, Vim has a useful command to help this. With xp the combination of x cut and p = paste. When we use … Read more...
  • Move forward and backward in Vim change list

    Tags: vim
    When you make some changes, Vim records your changes as a change list To see your change list use  :changes You can go backward in a change list by using the command g; For go forward use the … Read more...
  • Move forward and backward in Vim jumps list

    Tags: vim
    Vim record your as jump list To see your jump list use :jumps You can go backward in jump list by using command ctl+0 For go forward you this command ctrl+i You can repeat it to continue go … Read more...
  • Use PowerShell profile to set something for you when launching a new PowerShell session

    In PowerShell, you can crate a profile to set something (e.g. setting, variable) for you when launching a new PowerShell session Get started Launch PowerShell with Adminitrator permission Enter the … Read more...
  • สร้าง SQL Server database ด้วย PowerShell script

    Tags: sql
    ในบความนี้ เรามาสร้าง PowerShell script เพื่อสร้าง database ใหม่บนเครื่อง SQL server กันนะครับ เริ่มจากเตรียมเครื่องมือให้เรียบร้อย เครื่อง computer ที่ใช้อยู่เป็น Windows OS ติดตั้ง SQL Server ไว้แ … Read more...
  • Go back to last insert mode stopped and switch to insert mode

    Tags: vim
    This tip is very helpful when you change something and want to add something after the last change you've just made. Vim has gi which can help you go back to the last insert mode stopped or last … Read more...
  • Jump to the last change with Vim

    Tags: vim
    Vim has automatic mark the last change for us. Therefore we can jump quickly with this. In this article I will show the two commands. There are pretty similar but if you careful notice you will find … Read more...

Recent Blog Posts