Skip to content

Instantly share code, notes, and snippets.

View dominicfallows's full-sized avatar

Dominic Fallows dominicfallows

View GitHub Profile
@dominicfallows
dominicfallows / Flash NVIDIA Jetson TX2 NX module card via USB-OTG
Last active February 16, 2024 17:17
Flash NVIDIA Jetson TX2 NX module card via USB-OTG
# As of 2024-02-16 the highest version supported by the NVIDIA Jetson TX2 NX module was R32.7.4
# Download 'Driver Package (BSP)' and 'Sample Root Filesystem' from https://developer.nvidia.com/embedded/linux-tegra-r3274
# or
wget https://developer.nvidia.com/downloads/embedded/l4t/r32_release_v7.4/t186/jetson_linux_r32.7.4_aarch64.tbz2
wget https://developer.nvidia.com/downloads/embedded/l4t/r32_release_v7.4/t186/tegra_linux_sample-root-filesystem_r32.7.4_aarch64.tbz2
export L4T_RELEASE_PACKAGE='jetson_linux_r32.7.4_aarch64.tbz2'
export SAMPLE_FS_PACKAGE='tegra_linux_sample-root-filesystem_r32.7.4_aarch64.tbz2'
@dominicfallows
dominicfallows / mamp-db-backup.sh
Last active March 28, 2022 00:56
Bash shell script to backup MAMP databases to individual files (for MAMP with MySQL 5.6+)
#!/bin/bash
#
# Description: Shell script to backup all MAMP MySQL databases into compressed files
# Script: mamp-db-backup.sh
# Version: 1.0.1
# Script Website: https://gist.github.com/dominicfallows/c1f7bd150f946b7d1dfd1a720a13f8fc
# Author: Dominic Fallows
# Author Website: https://gist.github.com/dominicfallows
#
# Requirements:
### Keybase proof
I hereby claim:
* I am dominicfallows on github.
* I am dominicfallows (https://keybase.io/dominicfallows) on keybase.
* I have a public key ASDzgyflTrkMOw23fKPM28waVy1Oh-O-XFtgM8CdblQPVwo
To claim this, I am signing this object:
@dominicfallows
dominicfallows / get_image_url.php
Last active May 7, 2017 09:53
Function to fix a problem with Photon (Jetpack module from WordPress/Automattic) ignoring image crops that are made through the CMS (with plugins like https://wordpress.org/plugins/manual-image-crop/).
/**
* Get URL of an Editor cropped (manual or automatic) version of an image (and get Photon URL if wanted)
* https://gist.github.com/dominicfallows/457334ef84e3a805f7201fd8762ce569
*
* @param integer $imgID The attachment media ID
* @param string $size (optional) The registered image size you want. Default 'full'
* @param bool $photon_if_available (optional) If Photon is available, return the Photon-ized URL Default true
* @return string
*/
@dominicfallows
dominicfallows / Digital Project - Development Contract - Agency (or Company) to Freelancer.md
Last active October 9, 2023 18:47 — forked from malarkey/Contract Killer 3.md
Example contract for use by Creative, Digital and Marketing Agencies (or any company for that matter) to use when contracting a Freelance Web Developer on digital projects.