Skip to content

Instantly share code, notes, and snippets.

View ChandanShakya's full-sized avatar
💤
Sleeping

Chandan Shakya ChandanShakya

💤
Sleeping
View GitHub Profile
@ChandanShakya
ChandanShakya / Dark.user.js
Last active July 11, 2023 18:17
Stripped Dark Reader UserScript (Global Dark Mode)
// ==UserScript==
// @name Dark Reader (Unofficial)
// @icon https://darkreader.org/images/darkreader-icon-256x256.png
// @namespace DarkReader
// @description Inverts the brightness of pages to reduce eye strain
// @version 4.7.15
// @author https://github.com/darkreader/darkreader#contributors
// @homepageURL https://darkreader.org/ | https://github.com/darkreader/darkreader
// @run-at document-end
// @grant none
@ChandanShakya
ChandanShakya / st.py
Created May 24, 2022 04:21
Python script to do speedtest using speedtest-cli
from speedtest import Speedtest
st = Speedtest()
# Download speed in Mbps
download = round(st.download() / 10**6, 2)
# Upload speed in Mbps
upload = round(st.upload() / 10**6, 2)
# Ping in ms
@ChandanShakya
ChandanShakya / windows_activation.md
Created September 12, 2022 12:31
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

@ChandanShakya
ChandanShakya / php.ini
Created August 4, 2023 11:00
Xdebug enabling for php.ini
zend_extension = xdebug
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_port=9003
xdebug.client_host = localhost
Pulseaudio caused no sound chipping and lags, avoided pipewire
@ChandanShakya
ChandanShakya / dns.md
Created October 23, 2023 08:44
DNS cache checking in chromium based browsers

In Chromium based browsers, you can see the status of your DNS cache by going to chrome://net-internals/#dns

@ChandanShakya
ChandanShakya / vmwk17key-5000keys-unchecked.txt
Created December 14, 2023 15:30 — forked from PurpleVibe32/vmwk17key-5000keys-unchecked.txt
5000k+ vmware workstation pro 17 (untested)
4U612-DN31H-MJEJ0-0V0Z4-978HD
5G44H-ACH50-0J4C9-1VC5P-CY0QD
JC000-8G047-MJDF1-0H3E6-8QR5F
JV2NU-0XL5N-0J4Q8-0T0E6-8GH56
JZ6E0-4R1E0-HJ1Q0-1R8NH-3AK28
0Z48K-4X29Q-MJE80-113GK-C7K3A
HF4H0-46K80-MJ8D9-1KAZP-CKK12
NY69H-2N05P-HJ170-1V1ZM-CG222
4C45A-D8J0H-HJ5T0-1T25H-92A76
0Z4H2-0WK9K-4JE10-0T9G6-9C8M4
@ChandanShakya
ChandanShakya / csLan.md
Created March 3, 2024 17:39
CS 1.6 Server On LAN

CS 1.6 LAN Server

  • On Host Computer:
    • Open an offline game
    • Open Developer console using ` key
    • Enable LAN by typing: sv_lan 1
    • Check the status of the server: status
  • On Client Computer:
    • To connect to the server: connect <ip>
    • To connect to the server with password: connect <ip>; password <password>
@ChandanShakya
ChandanShakya / date.blade.php
Created April 5, 2024 07:42
Nepali Date Conversion Bi-directional using leapfrog date converter (laravel/livewire)
<div>
<div class="@error('dateOfBirthBs')border border-danger rounded-3 @enderror input-group">
<input wire:model='nepaliFormattedDateBs'
class="multisteps-form__input form-control dob-picker" type="text"
onfocus="focused(this)" onfocusout="defocused(this)"
data-twofas-input-listener="true" placeholder="११/१/२०२२" id="dateOfBirthBs"
name="dateOfBirthBs">
<span class="input-group-text">BS</span>
</div>
@error('dateOfBirthBs')
@ChandanShakya
ChandanShakya / test.m
Last active May 17, 2024 19:19
power query 6th semester
let
Source = Pdf.Tables(File.Contents("C:\Users\Acer\Downloads\2019-Batch-6th-Semester.pdf"), [Implementation="1.3"]),
Table081 = Source{[Id="Table081"]}[Data],
Table082 = Source{[Id="Table082"]}[Data],
Table083 = Source{[Id="Table083"]}[Data],
#"Changed Type 81" = Table.TransformColumnTypes(Table081,{{"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type text}, {"Column8", type text}, {"Column9", type text}, {"Column10", type text}, {"Column11", type text}, {"Column12", type text}, {"Column13", type text}, {"Column14", type text}, {"Column15", type text}, {"Column16", type text}}),
#"Changed Type 82" = Table.TransformColumnTypes(Table082,{{"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type text}, {"Column5", type text}, {"Column6", type text}, {"Column7", type text}, {"Column8", type number}, {"Column9", type text}, {"Column10", type text}, {"C