Skip to content

Instantly share code, notes, and snippets.

@ckandoth
ckandoth / pgscalc_with_wgs_gvcfs.sh
Last active November 27, 2026 13:50
Prototype a bioinformatics pipeline to calculate Polygenic Risk Scores (PRS) using WGS gVCFs
# GOAL: Prototype a bioinformatics pipeline to calculate Polygenic Risk Scores (PRS) using WGS gVCFs.
# Let's use pgscalc (https://github.com/pgscatalog/pgsc_calc) a nextflow pipeline to calculate PRS, given PR weights and
# a multi-sample VCF. Variant allele weights can be specified either as PGS Catalog IDs (--pgs_id) and/or as custom scoring
# files (--scorefile). pgscalc can also perform liftover if scoring files use a different reference genome build than the
# input VCFs (--liftover --target_build).
# Steps below were tested on Ubuntu 24.04. But should work fine with any Linux server using bash.
# ----- #
@xirixiz
xirixiz / Set up GitHub push with SSH keys.md
Last active November 27, 2026 13:45 — forked from developius/README.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "your_email@example.com"
@nabilfreeman
nabilfreeman / minimal-android-emulator-macos.md
Last active November 27, 2026 13:42
Minimal Android Emulator Setup for macOS - No Android Studio Required (Perfect for Expo & React Native)

Minimal Android Emulator Setup for macOS (No Android Studio Required)

The Problem: You Just Want an Emulator

If you're a React Native or Expo developer, you've probably experienced this frustration: you just want to test your app on an Android emulator, but every guide tells you to install the massive Android Studio IDE. Suddenly you're downloading gigabytes of tools you'll never use, your shell is polluted with Java paths and Android environment variables, and your pristine development setup feels bloated.

You don't want to become an Android developer. You just want to see your cross-platform app running on an Android device.

Maybe you're like me:

  • You use Expo with EAS Build for all your native builds
@ttwthomas
ttwthomas / gist:1cc748afffea38dde19c30bd7ed3cd07
Created November 27, 2026 02:13
remote agentic devbox setup cocadmin
# Devbox setup — live Git worktree environments on k3s
Set up a system allowing multiple Git branches of an application to run simultaneously on a developer machine, with isolated environments, live reloading and individual HTTPS URLs.
Work through the following steps in order. Verify the Cloudflare tunnel before enabling Cloudflare Access.
## Assumptions
- Ubuntu (or similar) machine with sudo access.
- Around 8 CPU cores and 32 GB RAM for 2–3 simultaneous environments, depending on the application.
@Klerith
Klerith / testing-configuration.md
Last active November 27, 2026 13:41
Configuración de Vitest + React Testing Library
@dmjkm
dmjkm / sma-tripower-se-shm2-modbus-killswitch.md
Created November 27, 2026 13:37
SMA Sunny Tripower SE & SHM 2.0 Modbus-Sperre umgehen (Home Assistant Hardware-Killswitch by Jan)

SMA Sunny Tripower SE & SHM 2.0: Modbus-Batteriesperre für dynamische Tarife (Tibber / Octopus Go) per 10€-Hardware-Killswitch umgehen

Entdeckt & gelöst von Jan (November 2026) (Wenn dir diese Lösung Zeit, Nerven und Cloud-Ärger erspart hat, lass gerne einen Star / Upvote da – ich freue mich zu sehen, wie vielen SMA-Leidensgenossen der Trick hilft!)

Das Problem

Jeder, der einen SMA Sunny Tripower Smart Energy (SE) zusammen mit einem Sunny Home Manager 2.0 (SHM 2.0) betreibt, kennt den Frust: Sobald der SHM 2.0 im Netzwerk hängt, blockiert der Wechselrichter aus Sicherheitsgründen die lokalen Modbus-Register (40151 / 40149) für externe Energiemanagementsysteme wie Home Assistant (z. B. über die Integration Opti Akku). Wer seinen Speicher nachts bei dynamischen Stromtarifen (Tibber, Octopus Go etc.) gezielt aus dem Netz laden will, wird in das träge, unzuverlässige SMA ennexOS-Portal gezwungen. Alle Software-Workarounds (SEMP-Emulation, Modbus-Proxys, Grid-Guard-Eingriffe) scheitern daran, dass der Tripower

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active November 27, 2026 13:34
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest

COBOL TUTORIAL
INSTALL ON WINDOWS : https://www.it-cooking.com/projects/how-to-install-gnucobol-for-cygwin/
COBOL (Common Business Oriented Language) is the most rigidly structured programming language. It focuses on data oriented business applications. And many people think it is pointless to learn, but those people are not aware that over 80% of all financial transactions in the US and the vast majority of US government systems depend on COBOL.
[SWITCH TO CODE]
COBOL was created to match natural language. The COBOL program is made up of paragraphs, sections, sentences, verbs and other common speaking language terms.
>>SOURCE FORMAT FREE
@emschwartz
emschwartz / README.md
Last active November 27, 2026 13:30
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

@mmozeiko
mmozeiko / _miniperf_readme.md
Last active November 27, 2026 13:25
get PMU counter values with ETW, perf or kperf

MiniPerf

Example of how to capture CPU counters with ETW on Windows, perf on Linux or kperf on Apple.

Using ETW needs somewhat recently updated Windows 10 or 11. Not sure about exact version.

Currently tested on:

  • etw on Qualcomm Snapdragon X Elite, Windows 11, arm64
  • etw on AMD Zen 3, Windows 11 (with virtualization enabled in BIOS)