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 / ks.cfg
Created October 14, 2015 20:45
RHEL7 kickstart
# Base settings install
# Zero everything out...
zerombr
clearpart --all --initlabel
# Generic boot settings...
cdrom
lang en_US.UTF-8
keyboard 'us'
@combatpoodle
combatpoodle / aconnection.py
Last active November 17, 2020 16:36
Boto SES + Python Twisted
# Overrides parts of Boto to provide async call/response. Derived from
# SESConnection and boto/connection.
# Copyright (c) 2010 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2011 Harry Marr http://hmarr.com/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish, dis-
@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 israel@Israels-MacBook-Pro.local
@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 / 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