Toggen Blog
Tech tips
Articles
Latest
How to print a PDF from the command line and scale it on Linux
What I want to do: Print an A6 PDF centred on an A4 page from the command line on Linux What I tried: Tried to use evince and Firefox but they have no command line print options for linux. What worked: Calculate the margins and run lp or lpr by doing the following...
Implement SSCC Label Printing using Apache FOP, Barcode4j and XML
Note: Note to anyone reading this that knows XSLT/XML. How do I get the below XSL to loop twice so it creates two label pages for each node of this for-each loop <xsl:for-each select="DETAIL/SHIPMENT/STORE/TARE"> WITHOUT duplicating the entire tree of XSLT?...
Toggen Web Server Moved from Amazon Sydney to Azure Melbourne
As part of my using the MAPS benefit I have moved my web server to Azure in Melbourne So ping times / request times have reduced for my Melbourne clients As an example of what having to travel ~900kms less does to round trip ping times note the following My house to...
Microsoft Action Pack Subscription
So last year I purchased a MAPS benefit and found that with only 2 users for my small MSP business it was a good deal at $440 per year If you purchase Microsoft 365 Business Standard on a monthly committment you pay $45.32 per month for 2 users but the MAPS benefit...
Half Manual Automated WordPress Site Upgrade Script
This script finds all your wordpress sites under a specific parent directory and then loops through them and prompts you to accept or reject an upgrade for plugins, themes and wordpress core. # find all Wordpress installs WP_SITES=`find /path/to/your/sites/root -regex...
How to Auto-enroll in Intune MDM after Domain Join
I had a number of devices that the user didn't have Intune licensing when the Azure AD Domain join was performed. So the device appears in Azure AD as a device but the MDM column says none: The device enrollment happens if the licensing and configuration are correct...
