Skip to content

Instantly share code, notes, and snippets.

@combatpoodle
combatpoodle / sfdisk.md
Created April 8, 2022 22:31
NVidia Tegra format for more than 32GB on NVME/SATA flash

Overall

Tweak sfdisk with the total number of sectors from gdisk on /dev/nvme...

New sector count: 1953525168 Prev sector count: 61071327 Just offset everything in the last sfdisk (last sfdisk was just from dd if=/dev/mmcblk0 of=/dev/nvme... while booted in runlevel 0)

SD Card

@combatpoodle
combatpoodle / caipi.txt
Created March 17, 2020 09:09
iNav autolaunch Caipiranha 2 suggestions
set nav_fw_launch_velocity = 100
set nav_fw_launch_accel = 1863
set nav_fw_launch_max_angle = 90
set nav_fw_launch_detect_time = 40
set nav_fw_launch_thr = 1700
set nav_fw_launch_idle_thr = 1000
set nav_fw_launch_motor_delay = 100
set nav_fw_launch_spinup_time = 100
set nav_fw_launch_min_time = 0
set nav_fw_launch_timeout = 5000
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDnIw9LNa0dS9NftdWXeg1mqDV0x//Ic0ugqb6/evEyuq4wEYdi9wLxyC3d+wDkzc7gvYU1rXtRWmsshTxgAbrJmACjlywSntQDy3Ob0Uk/zOljLIeh9emS9/fu/p5QQHI74pPYxnch6PNFaRDWnvUlmarwRrP0HDY7fQarVUHJgS6KGjMX2DeDYci9iHHBx2WEFu8Ke/MQ/aDuBHAuFXOdWhMwJecqwrBPo11pk6UQj25feOWBGMWCpy2PuYxeA7yMmEQzQXryVOCGSJmfMqHxGox8+QBSQ7Xohuh/kRHMUV+Zp3Wbs9qwnB17dH0ZEFIgzs4lxDkBmWsUwl87zNS9 [email protected]
@combatpoodle
combatpoodle / copy-and-paste.sh
Created April 23, 2019 09:11
Get all sentry options
cat <<'TEST' > test.sh
# Set up credentials here if needed
set -x
sentry config get -q analytics.backend
sentry config get -q analytics.options
sentry config get -q api.rate-limit.org-create
sentry config get -q auth-google.client-id
-- Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; version 2 of the License.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
@combatpoodle
combatpoodle / gist:0ee90387665debae3fb6d44a3f751801
Created December 4, 2018 07:07
Being safe in the backcountry
What do I need to know to stay safe in the backcountry?
This is a common and extremely important question for newcomers, so I'm going to post this and maybe we can pin it or something of that sort and update it over time with input from those with more knowledge than me.
Initially I'd say to go out with people who do have a current AIARE avy 1 under their belt, will ensure you're properly taught and trained in how to travel with and use your safety and communications gear (being Idaho, cell service is a premium), and who can teach you what to look out for in the snowpack both in the avalanche reports in pre-planning, and point out in the snowpack itself both indications of the accuracy of the reports, or indications that the reports may not be accurate - leading you to either keep your travel plans as set (if the snowpack is better than expected), or scale back travel plans to preplanned B or C goals if the snowpack isn't as expected. You'll also get introduced to various planning tools in this: probably C
{
"G_P": [
2.98,
3,
8
],
"G_I": [
0.035,
0.035,
0.05
@combatpoodle
combatpoodle / php.spec
Created February 16, 2018 21:35
php-5.3.29 centos 7 spec
%global contentdir /var/www
# API/ABI check
%global apiver 20090626
%global zendver 20090626
%global pdover 20080721
# Extension version
%global fileinfover 1.0.5-dev
%global pharver 2.0.1
%global zipver 1.11.0
%global jsonver 1.2.1
@combatpoodle
combatpoodle / devicetree.txt
Created November 18, 2017 20:18
Raspberry PI 3B Device Tree with Navio2 installed
/dts-v1/;
/ {
compatible = "brcm,bcm2837", "brcm,bcm2836";
serial-number = "00000000aa057067";
model = "Raspberry Pi 3 Model B Rev 1.2";
memreserve = <0x37000000 0x8000000>;
interrupt-parent = <0x1>;
#address-cells = <0x1>;
#size-cells = <0x1>;
@combatpoodle
combatpoodle / navio2-atoms.txt
Created November 18, 2017 20:17
Navio2 EEProm Atoms
# Start of atom #0 of type 0x0001 and length 45
# Vendor info
product_uuid 0f8b16e6-51d2-4125-ae44-ae21f0e0c9db
product_id 0x0003
product_ver 0x0001
vendor "Emlid Limited " # length=14
product "Navio 2" # length=7
# End of atom. CRC16=0x4b62