svn-repo=url/path/to/svn/repo
dest-repo-name=my-repo
svn checkout ${svn-repo} working-folder
cd working-folder
#!/bin/sh | |
set -eo pipefail | |
IFS=$'\n\t' | |
# Constants | |
NOW=$(date +%s) | |
BUILD_FILE_NAME="MyApp-${NOW}" | |
SCHEME="MyApp" | |
WORKSPACE="MyApp" | |
PROJECT="MyApp" |
#!/bin/sh | |
# | |
# File: macos-installer-to-iso.sh | |
# | |
# Create a bootable ISO image from a macOS installer to install VMware ESXi guests. | |
# | |
# https://gist.github.com/Kutkovsky/613e29f35d3ef420b23b59ecdf7a28e0 | |
# Debug on: set -x | |
set -eux |
#!/bin/bash | |
# | |
# | |
# Create bootable USB installer for vSphere ESXi on macOS | |
# 1) Boot using the resulting installer | |
# 2) Install ESXi to a second high-speed USB 3.0 device | |
# 3) Make a copy of the installed USB ESXi for emergencies | |
# | |
# https://github.com/cbednarski/vmware-usb-osx | |
# |
# Qt qmake project file | |
# Need c++11 to use nullptr ( GCC 4.7 added C++11 ) | |
CONFIG += c++11 | |
# Use the compiler - Turn on *everything* you can | |
# Always use -Werror else warnings mean nothing after awhile | |
QMAKE_CXXFLAGS += -Wall | |
QMAKE_CXXFLAGS += -Werror |
arrayList.sort((a, b) => { | |
const textA = a.name.toUpperCase(); | |
const textB = b.name.toUpperCase(); | |
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; | |
}); |
#!/bin/sh | |
############################################ | |
# File: adb-cap.sh | |
# ----------------------- | |
# Script to capture screenshot to file from adb connected Android device and save to ~/Desktop. | |
# | |
# Free for any use. | |
# Tested on macOS | |
# Debug on: set -x |
#!/usr/bin/env python | |
# Convert output from Google's cpplint.py to the cppcheck XML format for | |
# consumption by the Jenkins cppcheck plugin. | |
# Reads from stdin and writes to stderr (to mimic cppcheck) | |
# https://stackoverflow.com/questions/14172232/how-to-make-cpplint-work-with-jenkins-warnings-plugin | |
import sys |
Installing a working copy of Qt for MCUs (commercial license) on Windows 10 with Visual 2019 is very complex. I have yet to succeed. VS 2019, CMake, and indvidual components dependencies for Qt for MCU are a mess.
I have used Qt for desktop development Linux, Windows, and macOS for over 10 years. I have never had a more difficult time.
Is there an easier way?
/// Debug dump bytes in hexadecimal format 16-bytes per row | |
/// | |
/// \param source | |
/// \param length | |
/// | |
/// Example Output: | |
/// \code | |
/// 0000 bd 7a 32 13 08 1c 1e d9 - c9 48 48 0b 5f 23 1a f5 | |
/// 0010 72 3d 8f 7a e6 2c 07 e4 - 6e 45 79 0f cb 18 13 6f | |
/// \endcode |