Skip to content

Instantly share code, notes, and snippets.

@daz
daz / generate-silence.sh
Created October 23, 2017 07:25
Generate a silent AAC audio with ffmpeg
ffmpeg -f lavfi -i anullsrc=r=11025:cl=mono -t <number of seconds> -acodec aac out.m4a
@jhrcook
jhrcook / common-github-badges.md
Last active January 13, 2025 11:34
A list of GitHub badges I usually add to me README files.

GitHub Badges

Social

jhc github jhc twitter jhc website

Code

@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 13, 2025 11:33
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@BigWubsy
BigWubsy / FHclock.html
Last active January 13, 2025 11:32 — forked from kirinelf/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<style>
@font-face {
@ritwikraha
ritwikraha / Pretraining-LLM.md
Last active January 13, 2025 11:32
Pretraining of Large Language Models

Pretraining


A Map for Studying Pre-training in LLMs

  • Data Collection
    • General Text Data
    • Specialized Data
  • Data Preprocessing
    • Quality Filtering
  • Deduplication
@sunmeat
sunmeat / DML.txt
Created January 13, 2025 11:27
однотабличні запити DML
1. Порахувати можливий дохід за хліб та молоко (з урахуванням знижок на ці товари)
2. Отримати інформацію про товари, які були доставлені вчора і сьогодні більше 10 одиниць (getdate, dateadd)
3. Показати назви та ціни товарів, доставлених протягом останнього місяця
4. Показати на екран назви та ціни товарів з категорії "Кондитерські вироби", але тільки не торгової марки "Roshen"
5. Показати на екран усі товари, назви яких починаються на букву "К", а категорії містять букву "А"
@Makeshift
Makeshift / tutorial.md
Last active January 13, 2025 11:27
Tutorial for automatically syncing an Obsidian vault with Git on an Android device

How to sync Obsidian with Git on Android

Limitations

  • If Termux is closed in the background by Android, the cron service will stop updating your repository and you must open Termux again. Refer to instructions for your device model to disable the killing of certain background applications.
  • This may negatively affect your devices battery life. I'm not entirely sure yet.

Setup

@sam0737
sam0737 / clock.html
Last active January 13, 2025 11:26
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
You are tasked with analyzing a merged PDF containing multiple documents in German and creating a bash script to split and rename these documents. Follow these instructions carefully:
First, carefully examine the content of the merged PDF.
Now, follow these steps:
1. Analyze the PDF:
- Identify all distinct documents within the merged PDF.
- Ignore any blank pages (pages that contain no letters).
- Determine the page range for each document.
const Stations = [
{
id: "1",
name: "إذاعة صور من حياة الصحابة رضوان الله عليهم",
radio_url: "https://qurango.net/radio/sahabah",
name_en: "Sahaba Stories",
category: "منوعات",
category_en: "Others"
},
{