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 / generate_splashes.sh
Created April 21, 2025 19:30
SVG to App Icons & Splash Screens Generator (Inkscape + ImageMagick)
#!/bin/bash
INPUT="app-icon.svg"
OUTPUT_DIR="./images/icons"
TEMP_ICON="icon.png"
TEMP_ICON_SIZE=1024
mkdir -p "$OUTPUT_DIR"
declare -A icon_sizes=(
@ChandanShakya
ChandanShakya / Microsoft.PowerShell_profile.ps1
Created September 14, 2024 12:46
Powershell alias for conversion using ffmpeg
function ConvertVideoWithCV {
param (
[string]$inputFile,
[string]$outputFile
)
if ([string]::IsNullOrEmpty($inputFile) -or [string]::IsNullOrEmpty($outputFile)) {
Write-Host "Invalid input. Please provide both input and output file paths."
return
}
@ChandanShakya
ChandanShakya / practicalSheet.py
Created September 14, 2024 12:44
Python script to create a excel sheet for practical of Data Analysis and Visualization
import pandas as pd
from openpyxl import Workbook
from openpyxl.styles import Alignment
# Create a workbook and get the active worksheet
wb = Workbook()
ws = wb.active
# Define the data for each practical
practicals = {
@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
@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 / 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 / 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 / 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

Pulseaudio caused no sound chipping and lags, avoided pipewire
@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