This file contains 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
#EXTM3U | |
#EXTINF: 0, Psyndora Trance | |
https://cast.magicstreams.gr/sc/psyndora/stream | |
#EXTINF: 0, Psyndora Chill | |
https://cast.magicstreams.gr/sc/psychill/stream | |
#EXTINF: 0, RadiOzora Trance | |
https://trance.out.airtime.pro/trance_a |
This file contains 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
alias sfjq='jq '\''if .status==0 then .result.records[]|[paths(scalars) as $p|{"key":$p|join("."),"value":getpath($p)}|select(.key|test("\\battributes\\b")|not)]|from_entries else .message|halt_error(1) end'\' |
This file contains 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 | |
use strict; | |
use warnings qw(all); | |
use constant IP_RANGES_JSON => 'https://ip-ranges.amazonaws.com/ip-ranges.json'; | |
use JSON::PP qw(); | |
use LWP::Simple qw(); | |
use NetAddr::IP qw(); |
This file contains 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
# scrape the answers from the game | |
curl -qs 'https://www.nytimes.com/puzzles/spelling-bee' \ | |
--compressed \ | |
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0' \ | |
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8' \ | |
-H 'Accept-Language: en-US,en;q=0.5' \ | |
-H 'Accept-Encoding: gzip, deflate, br' \ | |
-H 'Connection: keep-alive' \ | |
-H 'Upgrade-Insecure-Requests: 1' \ | |
-H 'Sec-Fetch-Dest: document' \ |
This file contains 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 | |
use 5.036; | |
local $/ = undef; | |
$_ = <>; | |
while ( | |
m{ | |
(?(DEFINE) | |
(?<float> \d+\.\d+) |
This file contains 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 | |
use 5.036; | |
my $ch = 0; | |
my $division = 960; | |
my $note_off = 0x80; | |
my $note_on = 0x90; | |
my $track = ''; | |
$track .= pack('wC3', 23, $note_on + $ch, 69, 126); |
This file contains 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 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 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 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" |
NewerOlder