Skip to content

Instantly share code, notes, and snippets.

View ferologics's full-sized avatar
🔥
cracking the code

Fero ferologics

🔥
cracking the code
View GitHub Profile
@ferologics
ferologics / privacy-policy.md
Created October 25, 2026 15:23
Privacy Policy: ferologics tools (personal YouTube API client)

Privacy Policy: ferologics tools

Last updated: October 25, 2026

"ferologics tools" is a personal OAuth client. Its only user is its owner (GitHub: @ferologics), who runs it from command-line scripts to manage their own YouTube channel: uploading videos, thumbnails and captions, editing video details, and managing playlists.

What data it accesses

  • Through the YouTube Data API, it accesses only the YouTube channel of the person who signs in, and only to carry out the actions that person runs.
  • It does not collect, store or process data about anyone else.
@ferologics
ferologics / doing-and-feeling-long-version-companion.md
Last active October 25, 2026 14:52
Doing and Feeling: Intelligence and Consciousness in Depth — Companion (sources and further reading for the 14-episode podcast)

Doing and Feeling: Intelligence and Consciousness in Depth — Companion

October 25, 2026

How to use this companion

This companion gives the sources behind each of the 14 episodes and where to read further. Links were checked in October 2026.

  • Per episode: the one argument the episode makes, its key sources, and further reading.
  • Source labels: links go to the paper or the author's own page where possible. (secondary) marks a news report or summary, used when the original was paywalled or unreachable.
@ferologics
ferologics / gist:925792cb2130f00c8034a5a117f13997
Last active October 26, 2026 17:34
AGENT-BEHAVIOR-TEMPLATE.md
# Agent Behavior Template (Verbatim from AGENTS.md)
This file keeps the same section boundaries and copies bullets word-for-word from `AGENTS.md`.
## Git Workflow
- For trivial/small low-risk changes, auto-commit is okay after checks pass
- For medium/large changes (multi-file behavior changes, refactors, architecture work, risky edits), ask before committing
- If the user explicitly asks not to commit, do not commit
- If the user asks to commit, run project checks first when available (`just check`, `just test`, etc.)
@ferologics
ferologics / UserFromForegroundKillApp.swift
Created April 5, 2024 08:06
Detect user killing the app from foreground
//
// UserFromForegroundKillApp.swift
// UserFromForegroundKill
//
// Created by f h on 12/03/2024.
//
import SwiftUI
@main
@ferologics
ferologics / apiTypes.ts
Last active September 28, 2023 12:57
Orders App API types
/**
* ISO 8601 timestamp
* */
export type Timestamp = string;
export enum RouteStatus {
assigned = 'assigned',
completed = 'completed',
planned = 'planned',
tracking = 'tracking',

[fit] Algebra to

[fit] (Co)monads


$$Cᴮᴬ = (Cᴮ)ᴬ$$


$$Cᴮᴬ = (Cᴮ)ᴬ$$

$$Pair<A,B> → C ≅ A → B → C$$

@ferologics
ferologics / DynamicFontLineHeight.swift
Created December 23, 2021 12:02
this example uses Dynamic Font with respect to line height line height
// MARK: - Helper
struct Layout { // this uses Dynamic Font and calculates spacing for correct line height
static let weight = SwiftUI.Font.Weight.semibold
static let size = UIFontMetrics.default.scaledValue(for: 17)
static let lineHeight = UIFontMetrics.default.scaledValue(for: 22)
static let uiFont = UIFont.systemFont(ofSize: size, weight: weight.toUIKit())
static let spacing = max(0, lineHeight - uiFont.lineHeight)
}
require 'optimist'
require 'plist'
# Setups of source path mapping for the framework at framework_path,
# which has a dsym at dsym_path. It maps the source paths to the
# source_path root. Implementation borrowed from https://medium.com/@maxraskin/background-1b4b6a9c65be
def setup_dsym_source_mapping(framework_path, dsym_path, source_path)
binary_uuids = get_uuids_of_dwarf(framework_path)
dsym_uuids = get_uuids_of_dwarf(dsym_path)
verify_uuids(binary_uuids, dsym_uuids)
@ferologics
ferologics / tmux.conf
Created October 14, 2020 21:21 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@ferologics
ferologics / tmux-cheatsheet.markdown
Created October 14, 2020 21:17 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname