This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gh repo list --limit 999 --no-archived --visibility public --json nameWithOwner --jq '.[] | .nameWithOwner' |\ | |
| PAGER= xargs -I% gh api repos/%/traffic/views --jq 'select(.count != 0) | [.count, .uniques, "https://github.com/%"] | join("\t")' |\ | |
| sort -nrk2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": 1, | |
| "jsonrpc": "2.0", | |
| "result": [ | |
| { | |
| "id": "Condition", | |
| "index": 0, | |
| "name": "Condition", | |
| "normalized_value": 0, | |
| "text": "0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "key": "alt+.", | |
| "command": "workbench.action.terminal.sendSequence", | |
| "args": { "text": "\u001b." } | |
| } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * wget https://github.com/creaktive/pianolizer/raw/master/cpp/pianolizer.hpp | |
| * g++ -Ofast -std=c++14 -o benchmark benchmark.cpp | |
| */ | |
| #include <chrono> | |
| #include <iostream> | |
| #include <stdlib.h> | |
| #include "pianolizer.hpp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // shamelessly stolen from https://p5js.org/reference/#/p5/loadShader | |
| // ported to work with https://thebookofshaders.com/edit.php | |
| precision highp float; | |
| const int I = 500; | |
| void main() { | |
| vec2 vPos = gl_FragCoord.xy; | |
| vec2 p = vec2(-0.74364388703, 0.13182590421); | |
| float r = .00001; | |
| vec2 c = p + vPos * r, z = c; | |
| float n = 0.0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find ~/.local/share/Modartt/Pianoteq/Archive/ -type f -name \*.mid | sort | perl -MYAML::XS -nE 'if ( m{(\d{4}-\d{2}-\d{2}).+?(\d+)\s+notes,\s+(\d+)\s+seconds} ) { $s{$1}{notes} += $2; $s{$1}{minutes} += $3 / 60 } else { die } }{ say Dump \%s' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git log -P --grep "This reverts commit ($( git log --author=$USER --format=%H | head -n 100 | paste '-sd|' ))" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -q -s 'https://cast.magicstreams.gr:2199/external/rpc.php?m=recenttracks.get&username=psyndora&charset=&mountpoint=&rid=psyndora&limit=10' | \ | |
| jq -c '.data[0][] | [.localtime, .artist, .album, .title]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # requirements: curl, ffmpeg, youtube-dl | |
| mkdir ttaass.com | |
| chdir ttaass.com | |
| curl https://www.ttaass.com |\ | |
| perl -nE 'say $1 while m{"(http://www\.youtube\.com[^"]+)}g' |\ | |
| sort -u |\ | |
| xargs -n 1 youtube-dl -f 'bestvideo[ext=mp4,width=1920,height=1080]' | |
| # delete the unwanted ones... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| # http://www.fundza.com/algorithmic/space_filling/hilbert/basics/ | |
| # http://www.soc.napier.ac.uk/~andrew/hilbert.html | |
| use strict; | |
| use warnings; | |
| sub hilbert { | |
| my ($n, $x, $y, $xi, $xj, $yi, $yj, $mn) = (@_, qw(0 0 1) x 2, $_[0]); | |
| return !$n | |
| ? [ |