Skip to content

Instantly share code, notes, and snippets.

@zenuo
zenuo / convert-visio-drawings-to-pdf.ps1
Last active November 2, 2021 03:32 — forked from mjul/convert-visio-drawings-to-pdf.ps1
Convert the Visio drawings in the current directory to PDF
# Convert Visio (2013) documents to PDF
# Before use, Run PowerShell as Administrator, execute 'Set-ExecutionPolicy RemoteSigned'
$drawings = Get-ChildItem -Filter "*.vsdx"
Write-Host "Converting Visio documents to PDF..." -ForegroundColor Cyan
try
{
$visio = New-Object -ComObject Visio.Application
$visio.Visible = $true
@zenuo
zenuo / codesign_gdb.md
Created November 17, 2019 13:11 — forked from hlissner/codesign_gdb.md
Codesign gdb on OSX

Note: these instructions are for pre-Sierra MacOS. Sierra and newer users see https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d by @gravitylow.

If you are getting this in gdb on OSX while trying to run a program:

Unable to find Mach task port for process-id 57573: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))
@zenuo
zenuo / PrintThreadIds.java
Created September 19, 2019 07:08 — forked from rednaxelafx/PrintThreadIds.java
find out the correspondence between the tid/nid of Java threads as shown from jstack/JMX, on HotSpot/Linux
package fx.jvm.hotspot.tools;
import java.util.List;
import sun.jvm.hotspot.tools.Tool;
public class PrintThreadIds extends Tool {
public static void main(String[] args) {
PrintThreadIds tool = new PrintThreadIds();
tool.start(args);
@zenuo
zenuo / Activate Office 2019 for macOS VoL.md
Created July 2, 2019 03:21 — 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