Skip to content

Instantly share code, notes, and snippets.

View Mbosinwa's full-sized avatar
🥶
13:37

Mbosinwa Awunor Mbosinwa

🥶
13:37
View GitHub Profile
@Mbosinwa
Mbosinwa / Activate Office 2019 for macOS VoL.md
Created January 5, 2023 12:40 — 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

@Mbosinwa
Mbosinwa / replace_a_line.php
Created March 18, 2022 04:33 — forked from lyonsun/replace_a_line.php
replace a particular line in a text file using php
<?php
// Credits:
// http://stackoverflow.com/questions/3004041/how-to-replace-a-particular-line-in-a-text-file-using-php
// http://stackoverflow.com/users/91914/gnarf
// One approach that you can use on smaller files that can fit into your memory twice:
$data = file('myfile'); // reads an array of lines
function replace_a_line($data) {
@Mbosinwa
Mbosinwa / index.user.js
Created February 4, 2022 17:10 — forked from m-Phoenix852/index.user.js
Userscript to login to discord accounts with ease, just do SHIFT + T at the login page and enter the token!
// ==UserScript==
// @name Discord Token Login
// @namespace https://gist.github.com/m-Phoenix852/d63d869f16e40dac623c9aa347e8641a/
// @version 1.1
// @description Taking over discord's tokens!
// @author Phoenix852
// @match *://discord.com/login
// @updateURL https://gist.github.com/m-Phoenix852/d63d869f16e40dac623c9aa347e8641a/raw/6d1ee63df17685e4ea06018bd8b47541d4261b82/index.user.js
// @grant none
// @iconURL https://i.imgur.com/rI8GsTz.png
@Mbosinwa
Mbosinwa / block-macro-ms-office.txt
Last active February 19, 2025 11:03 — forked from PSJoshi/block-macro-ms-office.txt
Block macros in Microsoft Office suite using registry
The default registry key for macro security is
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Security]
"VBAWarnings"=dword:00000001
You could set it with a script:
Set wso = CreateObject("WScript.Shell")
wso.RegWrite "HKCU\Software\Microsoft\Office\14.0\Word\Security\VBAWarnings", 1, "REG_DWORD"
and it would enable macros. This only works if Word is either closed when you run the script or restarted afterwards.
@Mbosinwa
Mbosinwa / create_init_sql.sh
Created January 6, 2018 19:25
a script use to recover data from innodb's frm and ibd file.
#!/bin/bash
#
# File: create_init_sql.sh
#
# Author: [email protected]
# blog: www.colorfuldays.org
#
# Purpose: This script is a part of an tool to recover mysql data from .frm and .idb file.
# This script is read the db data dir's file, generate an script to create the tables.
#