Skip to content

Instantly share code, notes, and snippets.

@blockfeed
blockfeed / gist:2e2f64be8836b03890c736f52a0ab5f4
Last active October 19, 2025 09:14
Macbook Pro 14,3 arch configuration
Install macOS via Internet Recovery
Once in macOS, use Disk Utility to shrink the primary partition to 50GB, and create a second dummy partition.
Boot the Arch install ISO. Use fdisk to wipe the dummy partition. Create two partitions:
- 1GB (for /boot)
- The remainder for your root partition
Partition type should be Linux data. No need to format them yet.
@blockfeed
blockfeed / gist:3d25d6fa165d16a99f32da94418a6207
Created May 29, 2024 20:51
Codependence, for programmers
// Codependence Program
// Define the Codependence object
let Codependence = {
selfEsteem: 0.5, // Initial self-esteem level
partner: null, // Reference to the codependent partner
patterns: [], // Store patterns of codependent behavior
// Function to establish a codependent relationship
establishRelationship: function(partner) {
@blockfeed
blockfeed / gist:d5c6744ba8d2857ae535fd71f8905dde
Created May 29, 2024 20:48
How CBT works, for programmers
// Cognitive Behavioral Therapy (CBT) Program
// Define the CBT object
let CBT = {
thoughts: [], // Store thoughts and beliefs
emotions: [], // Store associated emotions
behaviors: [], // Store behaviors and actions
patterns: [], // Store patterns of thought-behavior-emotion interactions
// Function to identify and record thoughts
@blockfeed
blockfeed / gist:2b4998fe373446717e9d8ed5ee7e203a
Created May 29, 2024 20:36
How mindfulness meditation works, for programmers
// Mindfulness Meditation Program
// Define the MindfulnessMeditation object
let MindfulnessMeditation = {
thoughts: [], // Store thoughts during meditation
focus: null, // Current point of focus during meditation
timer: null, // Timer to track meditation duration
isMeditating: false, // Flag to indicate if meditation is in progress
// Function to start meditation
@blockfeed
blockfeed / gist:cae913483aa34764e416c13fc21a2f04
Created May 29, 2024 20:31
How PTSD works, for programmers
// PTSD Program
// Define the PTSD object
let PTSD = {
triggers: [], // List of triggers that activate the PTSD response
memory: [], // Store traumatic memories
symptoms: [], // List of symptoms experienced during a PTSD episode
isActivated: false, // Flag to indicate if PTSD is currently activated
threshold: 0.7, // Threshold level for activation
currentTrigger: null, // The trigger currently activating the PTSD response
@blockfeed
blockfeed / ROMA F5 DJI 6S 1700KV(F405US4.1.3).txt
Created April 8, 2021 03:50
ROMA F5 DJI 6S 1700KV(F405US4.1.3) Factory Settings (from Diatone support)
board_name MAMBAF405US
# name: DIATONE ROMA
# feature
feature -AIRMODE
feature GPS
# beacon
beacon RX_LOST
@blockfeed
blockfeed / gist:3c86e0f93da81bb303f9b3962a074551
Last active May 28, 2018 04:33
Switch LEDE to client mode
/etc/init.d/dnsmasq stop
/etc/init.d/firewall stop
/etc/init.d/sysntpd stop
/etc/init.d/dnsmasq disable
/etc/init.d/firewall disable
/etc/init.d/sysntpd disable
/etc/init.d/dropbear enable
cat > /etc/config/network <<\EOF
config interface 'loopback'