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
I am giving you text, images, or a document. Convert each table into HTML code using <table> elements. If a given table is divided across multiple pages or images, combine it into one HTML table. | |
If the table is for a product, add the following code to the HTML before the table, where "X" is the product name: | |
<b>X Specifications</b><br /> |
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
According to all established principles of aviation, it is logically inconceivable that a bee should possess the ability to fly. Its wingspan is insufficient to propel its corpulent body off the ground. Nevertheless, bees defy these limitations and continue to fly despite human perceptions of impossibility. | |
“Yellow, black. Yellow, black. Yellow, black. Yellow, black. Yellow, black. Black and yellow!” | |
Barry! Breakfast is prepared! | |
I will be there shortly. Please wait. Hello? | |
- Barry? |
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
{ | |
"CapAdd" : null, | |
"CapDrop" : null, | |
"cmd" : "/bin/sh -c 'apk update && apk add iperf3 && iperf3 -s -p 7575'", | |
"cpu_priority" : 50, | |
"enable_publish_all_ports" : false, | |
"enable_restart_policy" : true, | |
"enable_service_portal" : null, | |
"enabled" : true, | |
"env_variables" : [ |
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
# More information: https://blog.corbin.io/post/748500250878263296/figuring-out-podcast-chapter-markers | |
# This requires FFMPEG/FFPROBE and JQ to be installed | |
# On a Mac with Homebrew installed: brew install jq ffmpeg | |
echo "Audio file: " | |
read audio | |
echo "Video file: " | |
read video |
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
[ | |
{ | |
"settings": { | |
"openEditInWindow": false, | |
"openEditInWindow.popup": false, | |
"windowPosition": {}, | |
"show-badge": true, | |
"disableAll": false, | |
"exposeIframes": false, | |
"newStyleAsUsercss": false, |
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
: ' | |
This is a script for easier testing of a WebExtension on Firefox for Android. It is a wrapper around Mozilla web-ext tool, without the need to check the list of ADB devices manually. It also automates using a Firefox-specific manifest, because Firefox for Android requires "browser_specific_settings" to be included in the manifest with the extension ID, but that string sometimes causes issues in Chromium-based browsers. | |
Assumed folder structure: | |
./test-android.sh (this script!) | |
./manifest.json | |
./manifest-firefox.json | |
More info about web-ext: https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/ |
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
// Function to verify Rosetta compatibility layer is enabled on ARM macOS | |
void checkRosetta() async { | |
var cpu = await getCPUArchitecture(); | |
var rosettaInstalled = await io.Directory( | |
'/Library/Apple/System/Library/LaunchDaemons/com.apple.oahd.plist') | |
.exists(); | |
if (io.Platform.isMacOS && (cpu == 'arm64')) { | |
if (rosettaInstalled) { | |
print('[ OK ] Rosetta compatibility layer is already installed.'); | |
} else { |
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 'dart:io' as io; | |
// Function get current CPU architecture | |
Future<String> getCPUArchitecture() async { | |
if (io.Platform.isWindows) { | |
var cpu = envVars['PROCESSOR_ARCHITECTURE']; | |
return cpu; | |
} else { | |
var info = await io.Process.run('uname', ['-m']); | |
var cpu = info.stdout.toString().replaceAll('\n', ''); |
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
# How to use: | |
# ./screenshot-tool.sh [export directory] [seconds between screenshots] | |
# Example: ./screenshot-tool.sh ~/Pictures 5 | |
# Install scrot if it's not already installed | |
if ! [ -x "$(command -v scrot)" ]; then | |
sudo apt install -y scrot | |
fi | |
# Set directory to parameter $1 |
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
# This is designed for KDE Neon | |
# To run this: | |
# bash <(curl -s https://gist.githubusercontent.com/corbindavenport/9e164da69ab9de884dfbb6ef9c29a5aa/raw/setup.sh) | |
# Set device hostname and get sudo | |
sudo echo "Set the name for this device (no spaces!):" | |
read hostname | |
hostnamectl set-hostname $hostname | |
# Update packages |
NewerOlder