Skip to content

Instantly share code, notes, and snippets.

View Mutale85's full-sized avatar

Mutale Mulenga Mutale85

View GitHub Profile
@Mutale85
Mutale85 / Activate Office 2019 for macOS VoL.md
Created September 1, 2022 18:10 — 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

The commands which will be outlined below are there to help you set up HTTPS on your website hosted on an ubuntu server 20.04, you can also try on other versions, they may work, but I can't guarantee it as on the version 20.04
I must mention, that you should have have had already done the Ubuntu set up on your VPS server.
The following are the steps
1. sudo apt install certbot python3-certbot-apache
2. sudo nano /etc/apache2/sites-available/your_domain.conf
3. sudo apache2ctl configtest
4. sudo systemctl reload apache2
5. sudo ufw status
6. sudo ufw allow 'Apache Full'
7. sudo ufw delete allow 'Apache'
@Mutale85
Mutale85 / gist:79a058f695f5dd3b6f5478f85f08b4e9
Created January 13, 2021 23:59 — forked from HQJaTu/gist:cd66cf659b8ee633685b43c5e7e92f05
Parse and dump a sitemap (using Python)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Inspired by Craig Addyman (http://www.craigaddyman.com/parse-an-xml-sitemap-with-python/)
Enhanced by Viktor Petersson (http://viktorpetersson.com) / @vpetersson
Enhanced by Jari Turkia (https://blog.hqcodeshop.fi/) / @HQJaTu
"""
from bs4 import BeautifulSoup
@Mutale85
Mutale85 / quick-check.py
Created November 24, 2020 14:19 — forked from ameesters/quick-check.py
A python script that checks multiple websites status.
#!/usr/bin/env python
import os, time, httplib
from termcolor import colored
SITES = [
"www.meesters-id.nl",
"www.carolsingers.nl",
]
while 1:
@Mutale85
Mutale85 / Ajax and JSONP
Created August 21, 2020 08:23
Having issues with CORS?
This is how i manage to solve my CORS
$.ajax({
type: 'GET',
url: 'https://example.com/filename.php',
data:{postname:postname, postname2:postname2},
dataType: 'jsonp',
crossDomain: true,
success:function(data){
// console.log(data);