Skip to content

Instantly share code, notes, and snippets.

View madranet's full-sized avatar

madra.net madranet

View GitHub Profile
@madranet
madranet / uboytrules.txt
Last active February 6, 2024 08:47
uBlock Origin YouTube Rules
!ALL YOUTUBE ONES TOGETHER
!From here: https://pastebin.com/raw/0Qtubr5M
! YT - Remove unwanted popups and annoyances
youtube.com##ytd-popup-container > tp-yt-paper-dialog > ytd-mealbar-promo-renderer, ytd-popup-container > tp-yt-paper-dialog > yt-mealbar-promo-renderer:has-text(/Claim Offer|Join now|Not Now|No thanks|YouTube TV|live TV|Live TV|movies|sports|Try it free|unlimited DVR|watch NFL/)
youtube.com###upsell-dialog-text > a[href*="sign"]:upward(body > * > *)
youtube.com##ytd-video-quality-promo-renderer
youtube.com###cinematics.ytd-watch-flexy:remove()
www.youtube.com##plasmo-csui
www.youtube.com##ytd-clarification-renderer.style-scope.ytd-watch-flexy
(1) Let’s start with some people who are so good, they named them twice. What I mean is that they have a two first names – and, actually, some of them are not very good people at all.
a COUNTRY STAR WHO HAS DUETTED WITH HIS DAUGHTER MILEY --BILLY RAY CYRUS
b POP STAR WHO HAS DUETTED WITH HER FATHER ELVIS --LISA MARIE PRESLEY
c SHE COULD NOT PERSUADE KIM CATTRALL TO JOIN A REUNION IN JULY --
d ASSASSIN IN DALLAS, TEXAS IN NOVEMBER 1963 --LEE HARVEY OSWALD
e ASSASSIN IN FORD'S THEATER, WASHINGTON IN APRIL 1865 --JOHN WILKES BOOTH
f BAFTA WINNER FOR HER ROLE AS KERRY MUCKLOWE IN ‘THIS COUNTRY’ --
g HE WROTE HAMILTON AND PERFORMED AS HAMILTON IN HAMILTON --
h GABON’S LEADING GOALSCORER, CURRENTLY PLAYING FOR ARSENAL --
i ALEC GUINNESS’ CHARACTER IN ‘STAR WARS’. --OBI WAN KINOBI
console.log("HackerChoose --loaded external JS");
var shitdomains = [
"arstechnica.com",
"bbc.com",
"beyouteous.com",
"bloomberg.com",
"businessweek.com",
"buzzfeednews.com",
(1) Let’s return to my daily walk, a habit I hope to keep forever. All my destinations have names which begin with a ‘P’ and then immediately an ‘a’. First letter ‘P’; second letter ‘a’. Where are we going?
a)    ITALIAN CITY THAT PRODUCES A LOT OF HAM, AND THE CHEESE I GRATE ON TO MY PASTA --PARMA
b)    LONDON RAIL TERMINUS WHOSE PLATFORM 1 HAS A BEAR STATUE --PADDINGTON
c)    ISLAND NATION WHOSE CARS HAVE STICKERS READING ‘PNG’ --PAPUA NEW GUINEA
d)    FIRST MONOPOLY PROPERTY AFTER JAIL, OFTEN ADVANCED TO --PALL MALL
e)    PRICEY MONOPOLY PROPERTY BETWEEN CHANCE AND SUPER TAX --PARK LANE
f)    FLORIDA SEASIDE RESORT WITH COCONUT TREES AND BILLIONAIRES --PALM SPRINGS
g)    CRICKETING COUNTRY WHICH ACQUIRED TEST STATUS IN 1952 --PANAMA
h)    ATHENS TEMPLE WHICH USED TO BE HOME TO THE ELGIN MARBLES --PARTHENON
i)    SILICON VALLEY CITY THAT NOT ONLY BEGINS ‘PA…’ BUT ALSO HAS THE INITIALS ‘P.A.’ --PALO ALTO
A total of 30 points up for grabs. All the questions have something to do with the letters NHS. Good luck!
1. All of the following famous people have the initials NH, HS or NS. But who, I wonder, are they?
a HE HAS BEEN WISHING US ALL MERRY XMAS SINCE 1973 – NODDY HOLDEN
b SHE RUNS SCOTLAND – NICHOLA STURGEON
c MEMBER OF ONE DIRECTION – HARRY STYLES
d SLIGHTLY LESS FAMOUS MEMBER OF ONE DIRECTION? – NH ???
e GREAT BRITISH BAKE-OFF WINNER WHO NOW HAS HER OWN SHOW ON BBC2 – NH ???
f GOON WHO USED TO PRESENT ‘SONGS OF PRAISE’ – HARRY SECOMBE
01: Rocking Around the Christmas Tree
02: Farytale of New York
03: Wanking Tape Video City
04: I Saw Three Ships
05: Stop the War [I Wish I was at Home for Christmas]
06: Snow Coffee Rain Man
07: Silent Night
08: The First Noel
09: White Christmas
10: Driving Home For Christmas
(1) We’ve enjoyed a lot of geography along the way. But we’re down to one letter now, and it’s hard to get a good quiz question out of the French commune called Y or the Swedish village called Ö. Bear with me, I’ll find a way to get some geography in. In the meantime, these answers are all single letters.
a)    FILM CERTIFICATE REPLACED WITH ‘18’ IN 1982 --X
b)    LETTER ON THE BACK OF HOLIDAYING SPANISH CARS --E
c)    MAJOR SCALE YOU CAN PLAY WITHOUT ANY EBONY KEYS --C
d)    LETTER ON THE COSTUME OF A CLOWN CALLED RONALD --M
e)    MOST COMMON BLOOD GROUP --O
f)    IT’S BETWEEN ‘U’ AND ‘O’ ON A QWERTY KEYBOARD --Damn! If only there was a keyboard somewhere to look at! --I [I knew it anyway!]
(1b) I’ve got it! Which country can you form from the answers in the previous question?
(1) Let’s start with TV. All these shows have the word ‘Two’ in the title. What are we watching?
a COMPETITION SPIN-OFF SHOW WHICH SHARES A TITLE WITH A MARVIN GAYE DUET --It Takes Two
b QUIZ SHOW – WHICH THEY SHOULD BRING BACK ONE DAY, I LOVED THE HOST – WHICH SHARED A TITLE WITH A FRANKIE GOES TO HOLLYWOOD SONG --Two Tribes
c SITCOM WHICH SHARED A TITLE WITH A SONG ABOUT TRYING TO GET SERVED IN A PUB -Two Pints of Lager anda Packet of Crisps
d CHARLIE SHEEN WAS WRITTEN OUT OF THIS SITCOM (NEVER THREATEN A SHOW’S CREATOR) --
e SITCOM WHERE THE FAMILY ACTUALLY HAD PRECISELY ONE PAIR OF OFFSPRING --The Two of Us
f IT WAS GOODNIGHT FROM THEM --Two Ronnies
g COOKERY SHOW NAMED AFTER A BINGO CALL --Two Fat Ladies
(2) We hear a lot about firsts. The first man to do this, the first woman to do that. In honour of the number two, let’s celebrate some seconds instead.

How to Get Destination URL After Redirect?

I'm currently trying to port one of my Python scripts which downloads the latest crossword from a newspaper site. Online the crossword is accessed via a URL like: "http://site.com/crossword/latest/" which automatically redirects to the URL of the latest crossword, a URL like: "http://site.com/crossword/4213/"

So, for testing, I've got:

response := http.get("http://site.com/crossword/latest/") or {panic('ERR')} 

Keybase proof

I hereby claim:

  • I am madranet on github.
  • I am stiobhart (https://keybase.io/stiobhart) on keybase.
  • I have a public key ASCQ1owsoJUclzhIIDLo_cDE9GyT6p55uUR1wKtlf5vs5Ao

To claim this, I am signing this object: