Skip to content

Instantly share code, notes, and snippets.

@azimut
azimut / DGG Movie List - Ordered by Date.csv
Created November 24, 2023 17:48
dgg movies by decade
DO NOT ADD MOVIES HERE THIS IS JUST A RE-SORTED VERSION OF THE ALPHABETICAL TAB
Movie Name - Current EDT time: 2023-11-23 23:04:36 IMDB/URL Played (ISO/24h/EDT) 2023-11-23 23:04:36 Conductor DGG Subtitle / Comments
Your Mom https://www.imdb.com/title/tt1730704/ WooYeah
American Pie 2 (2001) https://www.imdb.com/title/tt0252866/ 2023-11-06 23:20:00 ivx
American Pie (1999) https://www.imdb.com/title/tt0163651/ 2023-11-06 21:00:00 ivx
Popstar: Never Stop Never Stopping (2016) https://www.imdb.com/title/tt3960412/ 2023-11-06 19:20:00 RiN_LuX
Pass Thru (2016) https://www.imdb.com/title/tt5445074/ 2023-11-06 17:31:00 RiN_LuX
Arcane (2021) S01E01 https://www.imdb.com/title/tt11126994/ 2023-11-06 16:41:00 RiN_LuX aka Dune 2: Brazilian Extended Cut
Dune: Part One (2021) https://www.imdb.com/title/tt1160419/ 2023-11-06 11:10:00 RiN_LuX
@azimut
azimut / do.sh
Created November 4, 2023 21:36
rename files based on the filenames on a txt
#!/bin/bash
set -e
cd '/home/user/work/videos'
readarray -t lines <'./filenames.txt'
rtrim() { sed -e 's/[[:space:]]*$//'; }
sanitize() { tr -cd '[:alnum:] .'; } # fat32 support
@azimut
azimut / neetcode.sh
Last active September 21, 2024 14:50
download all the neetcode vides, with proper ranking/category classification
#!/bin/bash
set -xuo pipefail
declare -A urls
urls[easy]='https://www.youtube.com/playlist?list=PLot-Xpze53lfQmTEztbgdp8ALEoydvnRQ'
urls[medium]='https://www.youtube.com/playlist?list=PLot-Xpze53lfOdF3KwpMSFEyfE77zIwiP'
urls[hard]='https://www.youtube.com/playlist?list=PLot-Xpze53letfIu9dMzIIO7na_sqvl0w'
urls[sliding_window]='https://www.youtube.com/playlist?list=PLot-Xpze53leOBgcVsJBEGrHPd_7x_koV'
@azimut
azimut / spa.m3u
Created August 21, 2022 21:30
spa m3u
#EXTM3U
#EXTINF:-1 tvg-logo="https://assets.cdn.freetv.com/wp-content/uploads/2019/12/FreeTV.com_Logo-104x40.png " group-title=".RD",OPCióN tv
https://5790d294af2dc.streamlock.net/8066/8066/playlist.m3u8
#EXTINF:-1 tvg-logo="https://www.claro.com.do/portal/do/gc/canales/1615811675713-Imagen.png" group-title=".RD",4 (RD)
https://protvradiostream.com:1936/canal4rd-1/ngrp:canal4rd-1_all/playlist.m3u8
#EXTINF:-1 tvg-logo="https://assets.cdn.freetv.com/wp-content/uploads/2019/12/FreeTV.com_Logo-104x40.png " group-title=".RD",Microvision (RD)
https://streaming.telecablecentral.com.do:443/live/MicroHD/chunklist_w414070953.m3u8
#EXTINF:-1 tvg-logo="https://www.claro.com.do/portal/do/gc/canales/1579114233316-Imagen.png" group-title=". entretenimientos",Caracol
@azimut
azimut / log.txt
Created March 4, 2020 02:06
cannot resolve
(emacs@localhost)155> snitch_resolver:do_query("starbucks.com",txt).
snitch_resolver:do_query("starbucks.com",txt).
{dns_rec,{dns_header,49263,true,query,false,true,true,true,
false,0},
[{dns_query,"starbucks.com",txt,in}],
[],[],[]}
@azimut
azimut / blue-rgb.jpg
Last active January 28, 2019 12:18
asdf
blue-rgb.jpg
@azimut
azimut / lispghost.lisp
Created January 6, 2019 06:47
foxdot pattern into common music
(in-package #:shiny)
;; scuffer version of FoxDot's song "ghost-in-the-machine.py"[1]
;; using lisp's "Common Music" patterns. And some custom helpers[2].
;;
;; [1]: github.com/Qirky/ten-lines-or-less
;; [2]: github.com/azimut/shiny
;;--------------------------------------------------
;; Scale.default="minor"; Clock.bpm=120
(setf (bpm *tempo*) 120f0)
;;--------------------------------------------------
@azimut
azimut / a.lisp
Created August 31, 2018 20:31
nudruz without clllib
;; rsm-mod
(defun %get-powers (k n)
"Get the list of the factor <k> that appears in <n>."
(loop
:with nn = n
:with facts = nil
:while (= (mod nn k) 0) :do
(setf nn (/ nn k))
(push k facts)
@azimut
azimut / do.py
Last active December 20, 2017 18:21
#!/usr/bin/python3
import os
import base64
from flask import Flask, request, redirect, url_for, send_from_directory, render_template, flash
#from werkzeug.utils import secure_filename
from collections import Counter
import sys