Skip to content

Instantly share code, notes, and snippets.

View dlanileonardo's full-sized avatar
🏠
Working from home

Dlani dlanileonardo

🏠
Working from home
View GitHub Profile
@dlanileonardo
dlanileonardo / Activate Office 2019 for macOS VoL.md
Created May 4, 2023 09:50 — 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

@dlanileonardo
dlanileonardo / letsencrypt.md
Last active December 22, 2016 06:08 — forked from xrstf/letsencrypt.md
Let's Encrypt on Ubuntu 14.04, nginx with webroot auth

Let's Go

This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt.

As it is not possible to change the ports used for the standalone authenticator and I already have a nginx running on port 80/443, I opted to use the webroot method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com and example.com).

Configuration

For this, I placed config files into etc/letsencrypt/configs, named after <domain>.conf. The files are simple:

@dlanileonardo
dlanileonardo / setup-msmtp-for-gmail.sh
Last active August 15, 2016 00:08 — forked from JosefJezek/setup-msmtp-for-gmail.sh
Sending emails using Gmail and msmtp in Ubuntu/Debian.
#!/bin/sh
# Sending emails using Gmail and msmtp
# Author: [Josef Jezek](http://about.me/josefjezek)
# Donate: [Gittip](https://www.gittip.com/josefjezek)
# Link: [Gist](https://gist.github.com/6194563)
# Usage: setup-msmtp-for-gmail.sh
sudo apt-get update -q
sudo apt-get install msmtp-mta ca-certificates heirloom-mailx -yq
@dlanileonardo
dlanileonardo / tmux-cheatsheet.markdown
Last active September 3, 2015 23:16 — forked from MohamedAlaa/tmux-cheatsheet.markdown
Tmux Shortcuts & CheatSheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@dlanileonardo
dlanileonardo / perfectelementary.bash
Created August 2, 2014 23:58
Elementary Luna Essentials commands.
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@dlanileonardo
dlanileonardo / open_subl
Last active August 29, 2015 14:01 — forked from asux/open_subl
Open txtmt and subl on SublimeText in Linux.
#!/usr/bin/env ruby
# /usr/local/bin/open_subl
require 'cgi'
require 'uri'
begin
query = CGI.parse(URI.parse(ARGV.first).query)
url = query['url'].first
file = URI.parse(url).path
line = query['line'].first
column = query['column'].first