Skip to content

Instantly share code, notes, and snippets.

@jamesBan
jamesBan / Activate Office 2019 for macOS VoL.md
Created June 18, 2022 02:58 — 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

@jamesBan
jamesBan / mac_ipv6.sh
Created June 24, 2020 11:53
打开或关闭mac 的ipv6功能
关闭系统的 IPV6 功能。
OS X 下关闭方法:
networksetup -setv6off Wi-Fi
networksetup -setv6off Ethernet(如果电脑有以太网接口)
开启方法:
networksetup -setv6automatic Wi-Fi
networksetup -setv6automatic Ethernet(如果电脑有以太网接口)
@jamesBan
jamesBan / parse_xlsx.php
Created May 26, 2016 09:51 — forked from searbe/parse_xlsx.php
Parse simple XLSX in PHP with SimpleXML and ZipArchive
<?php
/**
* I had to parse an XLSX spreadsheet (which should damn well have been a CSV!)
* but the usual tools were hitting the memory limit pretty quick. I found that
* manually parsing the XML worked pretty well. Note that this, most likely,
* won't work if cells contain anything more than text or a number (so formulas,
* graphs, etc ..., I don't know what'd happen).
*/
@jamesBan
jamesBan / dump.php
Last active September 16, 2015 08:09 — forked from eddmann/dump.php
An alternative to 'var_dump'
function dump()
{
$args = func_get_args();
echo "\n<pre style=\"border:1px solid #ccc;padding:10px;margin:10px;font:14px courier;background:whitesmoke;display:block;border-radius:4px;\">\n";
$trace = debug_backtrace(false);
$offset = (@$trace[2]['function'] === 'dump_d') ? 2 : 0;
echo "<span style=\"color:red\">" . @$trace[1+$offset]['class'] . "</span>:" .
<?php
//http://flask.pocoo.org/snippets/71/ that is good idea
include 'predis/predis.phar';
class OnlineUsers {
/* time to consider user online */
private $minutes = 5 ;
function online() {