Skip to content

Instantly share code, notes, and snippets.

@vikassaini01
vikassaini01 / convert-retail-to-volume-2019.cmd
Created March 14, 2024 03:51 — forked from mokocup/convert-retail-to-volume-2019.cmd
Convert Office 2019 Retail To Volume
REM Change 192.168.1.7 to KMS Server IP or Host
REM Change ProgramFiles to ProgramFiles(x86) If install x86 version . Default are x64
@echo off
Title Converter Office 2019 Retail to Volume And Active Through Server
set LICPATH=%ProgramFiles%\Microsoft Office\root\Licenses16
set LICPATH1=%ProgramFiles%\Microsoft Office\Office16
cscript slmgr.vbs /ilc "%LICPATH%\ProPlusVL_KMS_Client-ppd.xrm-ms"
cscript slmgr.vbs /ilc "%LICPATH%\ProPlusVL_KMS_Client-ul.xrm-ms"
@vikassaini01
vikassaini01 / whmcs-show-credit-balance.php
Last active February 16, 2024 22:52 — forked from the-sufi/whmcs-show-credit-balance.php
WHMCS Show Credit Balance on side panel/sidebar
<?php
/**
* code goes inside "includes/hooks" directory
*/
//for customizing nav menu items
use WHMCS\View\Menu\Item as MenuItem;
//for interacting with DB
use Illuminate\Database\Capsule\Manager as Capsule;
@vikassaini01
vikassaini01 / style.css
Created September 10, 2023 09:32 — forked from malja/style.css
PHP class for creating pretty HTML table from PHP array
/************************************************************************\
|
| CSS Theme
| =========
|
| This is a default CSS theme for tabletizer class.
|
\************************************************************************/
table.tabletizer {
@vikassaini01
vikassaini01 / Activate Office 2019 for macOS VoL.md
Created October 20, 2022 13:49 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@vikassaini01
vikassaini01 / CIDR.php
Created November 18, 2021 09:41 — forked from jonavon/CIDR.php
CIDR class for IPv4
<?php
/**
* CIDR.php
*
* Utility Functions for IPv4 ip addresses.
* Supports PHP 5.3+ (32 & 64 bit)
* @author Jonavon Wilcox <jowilcox@vt.edu>
* @revision Carlos Guimarães <cvsguimaraes@gmail.com>
* @version Wed Mar 12 13:00:00 EDT 2014
*/
@vikassaini01
vikassaini01 / 4xHDD_LVM_Combined.seed
Last active May 14, 2021 05:22
4x HDD LV Combined Ubuntu preseed
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
# partitioning
d-i partman-auto/expert_recipe string \
boot-root :: \
1 1 1 free \
@vikassaini01
vikassaini01 / preseed-fragment.seed
Created May 7, 2021 16:59 — forked from lorin/preseed-fragment.seed
Automated partitioning with Ubuntu preseed
# Use LVM for partitioning
d-i partman-auto/method string lvm
# If one of the disks that are going to be automatically partitioned
# contains an old LVM configuration, the user will normally receive a
# warning. Preseed this away
d-i partman-lvm/device_remove_lvm boolean true
# And the same goes for the confirmation to write the lvm partitions.
d-i partman-lvm/confirm boolean true
d-i partman-auto/method string raid
d-i partman-auto/disk string /dev/sdy /dev/sdac
d-i partman-md/device_remove_md boolean true
d-i partman-md/confirm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-auto-lvm/new_vg_name string vg0
d-i partman-auto-raid/recipe string \
@vikassaini01
vikassaini01 / gist:76b1d31f052ad1b95cb71988db9b3ffb
Created March 29, 2020 05:10 — forked from xboston/gist:6130534
php torrent seed+leeches http udp
<?php
class Torrent
{
public function scrape(array $announce = [ ] , $hash_info = null)
{
$r = [
'seeders' => 0 ,
'leechers' => 0
@echo off
Title Converter Office 2016 Retail to Volume
echo Press Enter to start VL-Conversion...
echo.
pause
echo.
for /f "tokens=6 delims=[]. " %%G in ('ver') do set win=%%G