Skip to content

Instantly share code, notes, and snippets.

View lsbbd's full-sized avatar
๐Ÿ‹
๐Ÿ‹๐Ÿ‹๐Ÿ‹๐Ÿ‹๐Ÿ‹๐Ÿ‹้…ธ~~

lsbbd lsbbd

๐Ÿ‹
๐Ÿ‹๐Ÿ‹๐Ÿ‹๐Ÿ‹๐Ÿ‹๐Ÿ‹้…ธ~~
View GitHub Profile
@lsbbd
lsbbd / modify-the-default-user-when-wsl-starts.md
Last active April 8, 2021 11:22
modify the default user when wsl starts

From: microsoft/WSL#4276 (comment)

  1. Find your UID for your username in your Linux distro typing in the command id -u <yourUserName>. Remember this value.
  2. Open registry edit and navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss\{MY-UUID}.
  3. Replace the DefaultUid value with the UID value of the user in your distro.
@lsbbd
lsbbd / KMS_office.cmd
Created February 23, 2020 11:59 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
@echo off
title Microsoft Office 2019 versions are supported!&cls&echo
============================================================================&echo
#Project: Activating Microsoft software products for FREE without software&echo
============================================================================&echo.&echo
#Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist
"%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist
"%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo
set -g mode-keys vi
set -g mouse on
# styles
set -g status-left-length 900
set -g status-style "bg=colour235, fg=#ffffd7"
set -g default-terminal xterm-256color
# ไฟๆŒๅฝ“ๅ‰่ทฏๅพ„
bind c new-window -c "#{pane_current_path}"
@lsbbd
lsbbd / isSameDay.js
Last active January 17, 2018 12:02
ๅˆคๆ–ญไธคไธชๆ—ฅๆœŸๆ˜ฏๅฆๆ˜ฏไธบๅŒไธ€ๅคฉ
export const isSameDay = (dateA, dateB) =>
['getFullYear', 'getMonth', 'getDate']
.map(fun => dayA[fun]() === dayB[fun]())
.reduce((a, b) => a && b)
@lsbbd
lsbbd / first_gist.txt
Created February 15, 2017 15:53
first gist
this is my first gist