Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

licheng mlicheng

🎯
Focusing
View GitHub Profile
@mlicheng
mlicheng / int2ip.js
Created Apr 20, 2021 — forked from jppommet/int2ip.js
javascript conversion from ip address to long integer and vice versa
View int2ip.js
function int2ip (ipInt) {
return ( (ipInt>>>24) +'.' + (ipInt>>16 & 255) +'.' + (ipInt>>8 & 255) +'.' + (ipInt & 255) );
}
@mlicheng
mlicheng / Activate Office 2019 for macOS VoL.md
Created Mar 31, 2021 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file
View Activate Office 2019 for macOS VoL.md

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

View gist:a5b0d532ffc334633b2239680e45be13
function drips(){
docker ps -q | xargs -n 1 docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' | sed 's/ \// /'
}
@mlicheng
mlicheng / examples.md
Created Aug 15, 2020 — forked from ErisDS/examples.md
Ghost Filter Query examples
View examples.md

Filter Queries - Example Use Cases

Here are a few example use cases, these use cases combine filter with other parameters to make useful API queries. The syntax for any of this may change between now, implementation, and release - they're meant as illustrative examples :)

Fetch 3 posts with tags which match 'photo' or 'video' and aren't the post with id 5.

api.posts.browse({filter: "tags:[photo, video] + id:-5", limit="3"});

GET /api/posts?filter=tags%3A%5Bphoto%2Cvideo%5D%2Bid%3A-5&limit=3