- Cleanup Apache default
macOS comes with Apache. We want to disable the system default webserver and install from Homebrew
#stop the apache service $ sudo apachectl stop #prevent apache from starting on boot $ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
- Add Homebrew repositories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Usage: | |
# s3-get.sh <bucket> <region> <source-file> <dest-path> | |
# | |
# Description: | |
# Retrieve a secured file from S3 using AWS signature 4. | |
# To run, this shell script depends on command-line curl and openssl | |
# | |
# References: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.DESCRIPTION | |
Create x number of printers based off drivers | |
available to the system. | |
#> | |
function AddPrinters($PrinterCount) { | |
function GetRandomDriver() { | |
$PrintDrivers = Get-PrinterDriver | |
return $PrintDrivers.Name | Get-Random | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
<title>QZ Tray Sample Page</title> | |
</head> | |
<!-- Required scripts --> | |
<script type="text/javascript" src="js/dependencies/rsvp-3.1.0.min.js"></script> | |
<script type="text/javascript" src="js/dependencies/sha-256.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
<title>QZ Tray Sample Page</title> | |
</head> | |
<body onload="calibrate()"> | |
Check the console. | |
</body> |
- Download and extract test.zip
- Navigate to
\test\EdgeLabelPrinter_1.0.6.15_AnyCPU_Debug_Test
- Right click,
Add-AppDevPackage.ps1
run with powershell - Press Enter to continue when prompted
- UAC will appear to ask for administrator privileges, select yes
- Windows Settings will open in Explorer, change radio button to "Developer mode"
- Return to (second) PowerShell prompt
- You can now run (double click)
EdgeLabelPrinter_1.0.6.15_AnyCPU_Debug.appx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>HTML Table</title> | |
</head> | |
<body> | |
<table border="1" style="width:100%"> | |
<tr> | |
<th>Header 1</th> | |
<th>Header 2</th> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function promiseLoop() { | |
var printData = [ | |
{ "type": "pdf", "data": "assets/1.pdf" }, | |
{ "type": "pdf", "data": "assets/2.pdf" }, | |
{ "type": "pdf", "data": "assets/3.pdf" }, | |
{ "type": "pdf", "data": "assets/4.pdf" }, | |
{ "type": "pdf", "data": "assets/5.pdf" } | |
]; | |
var printers = [ | |
{ "printer": "PDFCreator" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function promiseLoop() { | |
var printData = [ | |
{ "type": "pdf", "data": "assets/1.pdf" }, | |
{ "type": "pdf", "data": "assets/2.pdf" }, | |
{ "type": "pdf", "data": "assets/3.pdf" }, | |
{ "type": "pdf", "data": "assets/4.pdf" }, | |
{ "type": "pdf", "data": "assets/5.pdf" }, | |
]; | |
var printers = [ | |
{ "printer": "PDFCreator" }, |
The steps below document how to easily get the OpenSSL command line utility running in a Windows environment.
- Download OpenSSL from Shining Light Productions. The Windows 32-bit lightweight installer works well, however it only includes the most commonly used functions
- Run the
.exe
- Open up
cmd
prompt and change directory toOpenSSL-Win32\bin
cd C:\OpenSSL-Win32\bin
NewerOlder