Skip to content

Instantly share code, notes, and snippets.

@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active May 23, 2024 21:03
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ
@bradtraversy
bradtraversy / terminal-commands.md
Last active May 23, 2024 20:58
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@shiftenterdev
shiftenterdev / docker-compose.yml
Created May 5, 2023 17:27
Shopware Dockware Docker Compose
version: '3'
services:
shopware:
container_name: shopware
image: dockware/dev:latest
ports:
- "22:22" # ssh
- "443:443"
- "80:80" # apache2
@ilblog
ilblog / README.md
Last active May 23, 2024 20:55
Create mp4 video from set of images in the browser client side, using ffmpeg.js in worker thread
@ahupowerdns
ahupowerdns / simple-adblock-powerdns.md
Last active May 23, 2024 20:54
How to do really simple adblocking with the PowerDNS Recursor 4.x

First, clone the Mozilla focus project and make it fetch its list:

$ git clone https://github.com/mozilla/focus.git
$ cd focus
$ ./checkout.sh
$ cd Lists

This delivers several JSON formatted files, of which we are going to use disconnect-advertising.json. We'll filter out the good bits using jq, and create a Lua representation:

(
@tykurtz
tykurtz / grokking_to_leetcode.md
Last active May 23, 2024 20:53
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@ststeiger
ststeiger / offline_mdn_docs.md
Last active May 23, 2024 20:53 — forked from zed-dz/offline_mdn_docs.md
Offline MDN Docs
const lat = 36.527061;
const lng = -6.288596;
const url = `https://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lng}&current=temperature_2m,wind_speed_10m&hourly=temperature_2m,relative_humidity_2m,wind_speed_10m`;
function mostrar(tiempo) {
//console.log(tiempo.current.temperature_2m)
//console.log(tiempo.hourly.time[68])
//console.log(tiempo.hourly.temperature_2m[68])
calcularTemperaturaMedia(tiempo, 0);
@chabala
chabala / using-google-takeout.md
Last active May 23, 2024 20:51
Merge and extract tgz files from Google Takeout

Recently found some clowny gist was the top result for 'google takeout multiple tgz', where it was using two bash scripts to extract all the tgz files and then merge them together. Don't do that. Use brace expansion, cat the TGZs, and extract:

$ cat takeout-20201023T123551Z-{001..011}.tgz | tar xzivf -

You don't even need to use brace expansion. Globbing will order the files numerically:

$ cat takeout-20201023T123551Z-*.tgz | tar xzivf -
@piousdeer
piousdeer / example.nix
Last active May 23, 2024 20:49
Create mutable files with home-manager and Nix
{
home.file."test-file" = {
text = "Hello world";
force = true;
mutable = true;
};
}