Skip to content

Instantly share code, notes, and snippets.

View nerdCopter's full-sized avatar

nerdCopter nerdCopter

View GitHub Profile
@nerdCopter
nerdCopter / add_remove_MSP_variables
Last active April 8, 2020 13:50
new and removed features/variables for Emu MSP
#replaces spa(mixed)
done: spa_roll_p
done: spa_roll_i
done: spa_roll_d
done: spa_pitch_p
done: spa_pitch_i
done: spa_pitch_d
#already there
@nerdCopter
nerdCopter / git_notes.txt
Last active December 8, 2023 15:12
git usage notes
git_notes.txt -- assumes CLI in Linux/OSX or Cygwin or WSL (Windows SubSystem for Linux).
https://git-scm.com/docs/
https://www.atlassian.com/git/tutorials/
---
##################################################
### Recommended Windows vs Linux Compatibility ###
##################################################
# recommended git global environment configs:
# windows:
@nerdCopter
nerdCopter / build.yml
Last active June 23, 2020 20:29
jfrog-cli for uploading via github actions
[...]
# Upload to Bintray
- name: Upload to Bintray
if: startsWith(github.ref, 'refs/tags/')
run: |
curl -fL https://getcli.jfrog.io | sh
export JFROG_CLI_OFFER_CONFIG=false
export CI=true
export JFROG_CLI_LOG_LEVEL=DEBUG
@nerdCopter
nerdCopter / nerdCopter_HELIOSPRING_EmuFlight_StartingPoint_CLI_Tune_Preset.txt
Last active January 2, 2021 21:55
starting point for tuning a generic HelioRC Spring 5"
# nerdCopter's unprofessional biased starting point
# for tuning a generic Helio 5", maybe 6".
# Recommend BBL analysis for LPF modifications.
# Recommend raise P's as needed and balance D's afterward.
# Raise I's as needed.
#
# This is not exactly a diff, but definitely not a dump.
# It's closer to a "preset"
# Start with your settings, then add these configs.
#
# nerdCopter NBDHMBF4PRO (1S) based from PJClarke and 3dracingman and personal EmuFlight experience.
# Not a diff per say, more a "preset", subject to change at any time.
# Nov 18 2020
#
# 3dracingman 65mm:
# P 90 D 85
# Q 6000/6000/4000 for non-Bosch
# sharpness 500
# gyro lpf 160
# dterm lpf 200
@nerdCopter
nerdCopter / gist:ca1c3d7ed5dae67029afbc4c80dc0cd0
Created March 10, 2021 13:57
Enhancer for Youtube (EfYT) custom script
// plugin (addon) for web browser youtube controls
// https://www.mrfdev.com/enhancer-for-youtube
function sleep(ms) {
console.log('Taking a break...');
var date = new Date();
var curDate = null;
do { curDate = new Date(); }
while(curDate-date < ms);
console.log(ms+'ms later');
@nerdCopter
nerdCopter / 0_ApexF7Stack.md
Last active April 14, 2023 13:28
ApexFPV Stack resources

Apex F7 Flight Controller:

  • Built-In Blue-Tooth module for easy configuration from your mobile
  • USB Type-C connector
  • DJI Compatible connector
  • Optional secondary MPU connection
  • Barometer
  • Main MPU-6000
  • 5 UARTS
  • Betaflight Target APEXF7
@nerdCopter
nerdCopter / Apex6Clone_presets.txt
Last active January 13, 2022 14:54
Apex Clone EmuFlight 0.4.0 "presets/tunes" - choose profile 0(static) or 1(dynamic), not both
### FROM DEFAULTS, then add
# version
# EmuFlight / APEXF7 (APF7) 0.4.0 Sep 12 2021 / 09:41:15 (8e3969050) MSP API: 1.51
# name
name nerdAPEX6
# mixer
mixer CUSTOM
@nerdCopter
nerdCopter / purging-old-artifacts-with-github-api.md
Created March 7, 2022 20:23 — forked from lelegard/purging-old-artifacts-with-github-api.md
Purging old artifacts with GitHub Actions API

With GitHub Actions, a workflow can publish artifacts, typically logs or binaries. As of early 2020, the life time of an artifact is hard-coded to 90 days (this may change in the future). After 90 days, an artifact is automatically deleted. But, in the meantime, artifacts for a repository may accumulate and generate mega-bytes or even giga-bytes of data files.

It is unclear if there is a size limit for the total accumulated size of artifacts for a public repository. But GitHub cannot reasonably let multi-giga-bytes of artifacts data accumulate without doing anything. So, if your workflows regularly produce large artifacts (such as "nightly build" procedures for instance), it is wise to cleanup and delete older artifacts without waiting for the 90 days limit.

Using the Web page for the "Actions" of a repository, it is possible to browse old workflow runs and manually delete artifacts. But the procedure is slow and tedious. It is fine to delete one selected artifact. It is not for a regular cleanup. We need