Skip to content

Instantly share code, notes, and snippets.

View Phillipus's full-sized avatar

Phil Beauvoir Phillipus

View GitHub Profile
@Phillipus
Phillipus / Activate Office 2019 for macOS VoL.md
Created April 15, 2020 18:35 — 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

@Phillipus
Phillipus / DeleteUnusedElements.ajs
Created August 30, 2018 10:59
#jArchi function to delete ArchiMate elements that are not references in any View in a model.
function deleteUnusedElements() {
$("element").each(function(element) {
if($(element).objectRefs().isEmpty()) {
element.delete();
}
});
}
@Phillipus
Phillipus / exchange2.xsl
Created August 4, 2018 14:35
Example 2 XSL Exchange Format
<h2>Relationships in the model</h2>
<table class="border">
<tr style="text-align:left;">
<th>Id</th>
<th>Name</th>
<th>Source Element</th>
<th>Target Element</th>
<th>Type</th>
</tr>
@Phillipus
Phillipus / exchange.xsl
Last active August 4, 2018 14:29
Exchange Format XLST example
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:arc="http://www.opengroup.org/xsd/archimate"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:template match="/">
<html>
<style>
@Phillipus
Phillipus / exchange.xml
Created August 4, 2018 14:10
Example of ArchiMate Exchange Format
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="elements.xsl"?>
<model xmlns="http://www.opengroup.org/xsd/archimate" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengroup.org/xsd/archimate http://www.opengroup.org/xsd/archimate/archimate_v2p1.xsd http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2008/02/11/dc.xsd" identifier="id-11f5304f">
<metadata>
<schema>Dublin Core</schema>
<schemaversion>1.1</schemaversion>
<dc:title>Archisurance</dc:title>
</metadata>
<name xml:lang="en">Archisurance</name>
<documentation xml:lang="en">An example of a fictional Insurance company.</documentation>
@Phillipus
Phillipus / BlockMacros.h
Last active August 13, 2016 17:08
Macros for blocking on asynchronous methods in iOS Unit Tests. See http://dadabeatnik.wordpress.com/2013/09/12/xcode-and-asynchronous-unit-testing/
// Macro - Set the flag for block completion
#define StartBlock() __block BOOL waitingForBlock = YES
// Macro - Set the flag to stop the loop
#define EndBlock() waitingForBlock = NO
// Macro - Wait and loop until flag is set
#define WaitUntilBlockCompletes() WaitWhile(waitingForBlock)
// Macro - Wait for condition to be NO/false in blocks and asynchronous calls
@interface MyView : UIView
- (void)kissMyAss;
@end
@interface _MyViewIOS6 : MyView
@end
@interface _MyViewIOS7 : MyView
@end