Skip to content

Instantly share code, notes, and snippets.

View hcz's full-sized avatar
🔥

Serge Osipov hcz

🔥
View GitHub Profile
@alexbaumgertner
alexbaumgertner / js-dev.xml
Last active March 17, 2024 23:26
js-dev.opml
<opml version="1.0">
<head>
<title>
Feeds of Alexander Baumgertner tagged as dev from Inoreader [https://www.inoreader.com]
</title>
</head>
<body>
<outline text="dev" title="dev">
<outline text="Blog – Snyk" title="Blog – Snyk" type="rss" xmlUrl="https://snyk.io/blog/feed/" htmlUrl="https://snyk.io/"/>
<outline text="2pegramming" title="2pegramming" type="rss" xmlUrl="https://t.me/pepegramming" htmlUrl="https://t.me/pepegramming"/>
@cristaloleg
cristaloleg / full-github-org-clone.sh
Last active March 28, 2023 09:06
Full Github organization clone
#!/bin/bash
# Usage: ./script NAME MAX-PAGE-NUMBER REGEX-PATTERN
#
# Also curl, jq and git are required.
#
# Author: https://gist.github.com/cristaloleg
#
# Based on https://gist.github.com/erdincay/4f1d2e092c50e78ae1ffa39d13fa404e
@tigt
tigt / git-branch-to-favicon.js
Created March 18, 2020 21:10
Creates an SVG string that can be used as a favicon across different Git branches. Actually getting this into the browser is sadly project-specific.
const { execSync } = require('child_process')
const { createHash } = require('crypto')
const invertColor = require('invert-color')
const branchName = execSync('git rev-parse --abbrev-ref HEAD')
const hash = createHash('sha256')
hash.update(branchName)
const color = '#' + hash.digest().toString('hex').substring(0, 6)
const invertedColor = invertColor(color, true)
@IanColdwater
IanColdwater / twittermute.txt
Last active June 19, 2026 17:31
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@zerobias
zerobias / h.ts
Last active April 18, 2022 08:23
Declarative stack-based DOM api
import {
createStore,
createEvent,
is,
clearNode,
forward,
sample,
Store,
Event,
launch
@noamtamim
noamtamim / README.md
Last active June 2, 2026 15:19
Markdown with PlantUML

How to use PlantUML with Markdown

PlantUML is a really awesome way to create diagrams by writing code instead of drawing and dragging visual elements. Markdown is a really nice documentation tool.

Here's how I combine the two, to create docs with embedded diagrams.

Step 0: Setup

Get the command-line PlantUML from the download page or your relevant package manager.

@andy-thomason
andy-thomason / Genomics_A_Programmers_Guide.md
Created May 14, 2019 13:32
Genomics a programmers introduction

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

https://www.genomicsplc.com

@mwakaba2
mwakaba2 / system_design_numbers_cheat_sheet.md
Last active May 2, 2026 14:23
Updated easy to remember system design numbers for back-of-the-envelope calculations

Updated, easy to remember numbers for back-of-the-envelope calculations in system design interviews

Powers of two table

Power    Approx Value (Bytes)       Bytes
-----------------------------------------
10                 1 thousand        1 KB
16                65 thousand       64 KB
20                  1 million        1 MB
30 1 billion 1 GB
tap "ethereum/ethereum"
tap "heroku/brew"
tap "homebrew/boneyard"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "paritytech/paritytech"
cask "java"
brew "ansible"