Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
This file contains hidden or 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
| # Install the toolchain | |
| ```bash | |
| brew tap SergioBenitez/osxct | |
| brew install x86_64-unknown-linux-gnu | |
| ``` | |
| # this should get installed in: | |
| # /opt/homebrew/Cellar/x86_64-unknown-linux-gnu/ | |
| # Installing the macOS OpenSSL - if not already installed |
This file contains hidden or 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
| "editor.tokenColorCustomizations": { | |
| "textMateRules": [ | |
| { | |
| "scope": [ | |
| "comment", | |
| "comment.block", | |
| "comment.block.documentation", | |
| "comment.line", | |
| "constant", | |
| "constant.character", |
This file contains hidden or 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
| #!/bin/bash --login | |
| # Installs an application from .dmg from a URL or path | |
| # | |
| # For example, for installing wireshark version 3.0.2 | |
| # $ dmginstall -u https://1.na.dl.wireshark.org/osx/Wireshark%203.0.2%20Intel%2064.dmg | |
| # or for firefox version 68.0 | |
| # $ dmginstall -u https://download-installer.cdn.mozilla.net/pub/firefox/releases/68.0/mac/en-US/Firefox%2068.0.dmg | |
| # for backblaze | |
| # $ dmginstall -u https://secure.backblaze.com/groups/install_backblaze.dmg -s Backblaze\ Installer.app/Contents/MacOS/bzinstall_mate -- -nogui -createaccount_or_signinaccount <email> <groupid> <grouptoken> |
This file contains hidden or 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
| import IOBluetooth | |
| // See https://developer.apple.com/reference/iobluetooth/iobluetoothdevice | |
| // for API details. | |
| class BluetoothDevices { | |
| func pairedDevices() { | |
| print("Bluetooth devices:") | |
| guard let devices = IOBluetoothDevice.pairedDevices() else { | |
| print("No devices") | |
| return |
This file contains hidden or 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
| local random = math.random | |
| local function uuid() | |
| local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' | |
| return string.gsub(template, '[xy]', function (c) | |
| local v = (c == 'x') and random(0, 0xf) or random(8, 0xb) | |
| return string.format('%x', v) | |
| end) | |
| end |