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 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 |
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
#!/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 |
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
arrayList.sort((a, b) => { | |
const textA = a.name.toUpperCase(); | |
const textB = b.name.toUpperCase(); | |
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; | |
}); |
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
# 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 |
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
#!/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 | |
# |
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
#!/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 |
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
#!/bin/sh | |
set -eo pipefail | |
IFS=$'\n\t' | |
# Constants | |
NOW=$(date +%s) | |
BUILD_FILE_NAME="MyApp-${NOW}" | |
SCHEME="MyApp" | |
WORKSPACE="MyApp" | |
PROJECT="MyApp" |
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
#!/bin/bash | |
# | |
# This script backups an OS X system to an external volume, effectively | |
# cloning it. It is based on [0], [1] and [2] for OS X and [3] and [4] for | |
# Linux. One could also use commercial tools like SuperDuper! or Carbon Copy | |
# Cloner. The latter website has an interesting list[5] on what files to | |
# exclude when cloning. | |
# | |
# Exclusions (from CCC[5]), see rsync_excludes_osx.txt | |
# |
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
#!/bin/sh | |
############################################ | |
# File: adb-cap.sh | |
# ----------------------- | |
# Script to capture screenshot to file from adb connected Android device and saves to ~/Desktop. | |
# | |
# If no file name arg is found, a unique file name is created from current date. | |
# | |
# Ed Sutton | |
# Free for any use. |
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
// debugDumpHexBytes.h | |
#ifndef DebugHelper_h | |
#define DebugHelper_h | |
#import <Foundation/Foundation.h> | |
#ifdef NDEBUG | |
// do nothing | |
#define DbgLog(...) |