Skip to content

Instantly share code, notes, and snippets.

View ipatch's full-sized avatar
:octocat:
🦾

Chris ipatch

:octocat:
🦾
View GitHub Profile
@ipatch
ipatch / flashrom.log
Created December 5, 2018 17:43
atmel AT45DB021D
╰─λ flashrom -p buspirate_spi:dev=/dev/tty.usbserial-A700dzDq re-2 | 1 < 11:41:56
flashrom v1.0 on Darwin 17.7.0 (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Atmel flash chip "unknown Atmel SPI chip" (0 kB, SPI) on buspirate_spi.
===
This flash part has status NOT WORKING for operations: PROBE READ ERASE WRITE
The test status of this chip may have been updated in the latest development
version of flashrom. If you are running the latest development version,
@ipatch
ipatch / 01-output.txt
Last active January 14, 2019 15:57
working with qemu-img command and vbox image / disk files
╭─capin at rogue in /Users/capin/virtual-machines
╰─λ ls --size win10.qcow vming-5 | 0 < 09:56:07
9362368 win10.qcow
╭─capin at rogue in /Users/capin/virtual-machines
╰─λ qemu-img info win10.qcow vming-5 | 0 < 09:56:18
image: win10.qcow
file format: qcow
virtual size: 50G (53687091200 bytes)
disk size: 8.9G
cluster_size: 4096
@ipatch
ipatch / rpi-backup-sd-to-img.txt
Last active May 8, 2022 00:59
Clone Raspberry Pi SD card to image file
####
# OBJECTIVE > A GitHub gist attempting to describe how one could backup the
# ...entirity of a Raspbian OS install to a sparse image file.
##
#
####
# REQUIREMENTS
# 1) raspberry pi
# 2) SD card
# 3) A seperate computer or SD card to mount the original Raspbian OS
@ipatch
ipatch / # inkscape - 2019-02-01_17-00-13.txt
Created February 2, 2019 01:06
inkscape (inkscape) on macOS 10.13.6 - Homebrew build logs
Homebrew build logs for inkscape on macOS 10.13.6
Build date: 2019-02-01 17:00:13
@ipatch
ipatch / 001-Building-Inkscape-macOS-bundle-troubleshooting.md
Last active October 19, 2023 09:47
How to create an app bundle for macOS using CMake

Hello, I'm working on getting CMake setup to build a macOS bundle on macOS. I've been running into some roadblocks, ie. getting the bundle built, ie. Inkscape.app, however I've been running into issues with the assembling the bundle using the make install command. Inkscape builds and configures fine no issuses or errors present using CMake, I'm running into issues with constructing a Inkscape.app bundle.

Objective

To successfully generate a Inkscape.app bundle for macOS that can run Inkscape on macOS from launching Inkscape.app

Issue

The make install process does not create a runable / usable Inkscape.app bundle for macOS.

@ipatch
ipatch / 001-make-install-output.txt
Last active February 13, 2019 02:19
CMake Building App Bundle
-- 81/144: fixing up '/opt/beta/inkscape/macos-bundle/Inkscape.app/Contents/Frameworks/libcairo.2.dylib'
-- 82/144: fixing up '/opt/beta/inkscape/macos-bundle/Inkscape.app/Contents/Frameworks/libglib-2.0.0.dylib'
-- 83/144: fixing up '/opt/beta/inkscape/macos-bundle/Inkscape.app/Contents/Frameworks/libgmodule-2.0.0.dylib'
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open input file: /opt/beta/inkscape/macos-bundle/Inkscape.app/Contents/Frameworks/libgmodule-2.0.0.dylib for writing (Permission denied)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't lseek to offset: 0 in file: /opt/beta/inkscape/macos-bundle/Inkscape.app/Contents/Frameworks/libgmodule-2.0.0.dylib for writing (Bad file descriptor)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't write new headers in file: /opt/beta/inkscape/macos-bund
mpv --vid=no http://kera-ice.streamguys.us:80/kxtlive128 --volume=34
@ipatch
ipatch / index.js
Created March 19, 2019 15:11
add svg to DOM using Javascript
// I'm using Webpack to build a bundle of a simple index.js
// ...and I'm trying to add a SVG element to the DOM using Webpack, which I believe is working,
// ...however Webpack is unable to locate the path to the SVG or Webpack is not properly handling the SVG
// setup namespace for SVG
var svgns = 'http://www.w3.org/2000/svg';
var svg = document.createElementNS(svgns, 'svg');
document.body.appendChild(svg);
svg.setAttribute('version', '1.1');
svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
@ipatch
ipatch / cmake-configure.md
Last active May 31, 2019 17:00
inkscape build failure may 31 commit 90a3972bce
cmake -DCMAKE_PREFIX_PATH="$LIBPREFIX" -DCMAKE_INSTALL_PREFIX="$PREFIX" -DWITH_OPENMP=OFF -G Ninja ../..

Output

-- Looking for include file ieeefp.h
-- Looking for include file ieeefp.h - not found
-- Looking for mallinfo
Send: M122
Recv: X Y Z E
Recv: Enabled false false false false
Recv: Set current 1000 1000 726 1000
Recv: RMS current 994 994 703 994
Recv: MAX current 1402 1402 991 1402
Recv: Run current 17/31 17/31 22/31 17/31
Recv: Hold current 8/31 8/31 11/31 8/31
Recv: CS actual 8/31 8/31 11/31 8/31
Recv: PWM scale 10 10 13 10