Skip to content

Instantly share code, notes, and snippets.

View phocks's full-sized avatar
🦖
"Rrrrrraaaawwwwwr!!" —A dinosaur

Joshua Byrd phocks

🦖
"Rrrrrraaaawwwwwr!!" —A dinosaur
View GitHub Profile
josh :floppies: @josh 2024-03-02T03:31:37.547000+00:00
🔗 https://ms.phocks.org/@josh/112023981099981014
just setting up my instance
josh :floppies: @josh 2024-03-02T03:56:54.587000+00:00
🔗 https://ms.phocks.org/@josh/112024080520713446
[@phocks](https://bne.social/@phocks)
[@arichtman](https://eigenmagic.net/@arichtman) Oh here we go. I got that
reply!
@phocks
phocks / paywall-block-list.txt
Last active February 17, 2025 02:33
Just a list of URLs to block that may or may not affect paywalls on various sites
! Hide "This is your last free article" banners
! REQUIRED: Use "Forget Me Not" to block cookie: pay_ent_msmp@*.newyorker.com
! to actually block the paywall. (Change domain to suit)
! UPDATE 2025: No longer works. Block "build" js instead as below.
! vanityfair.com##.journey-unit__container
! wired.com##.journey-unit__container
! newyorker.com##.journey-unit__container
! gq.com##.journey-unit__container
! Brisbane Times & Fairfax sites
@phocks
phocks / suburb-to-postcode-with-ratio.json
Created March 4, 2024 01:42
Postcodes mapped to Suburb with ratio
This file has been truncated, but you can view the full file.
[
{
"postcode": 800,
"suburb": "Darwin City",
"ratio": 1
},
{
"postcode": 810,
"suburb": "Alawa",
"ratio": 0.0638734
@phocks
phocks / fstab
Created December 29, 2023 22:28
fstab
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p2
UUID=5bb40f73-a2c2-4bf7-84de-7b140a00d0b6 / btrfs rw,relatime,compress=zstd,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@ 0 0
# /dev/nvme0n1p2
UUID=5bb40f73-a2c2-4bf7-84de-7b140a00d0b6 /home btrfs rw,relatime,compress=zstd,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home 0 0
@phocks
phocks / nytimes_unpaywall.js
Last active May 13, 2023 11:08
Removes NYTimes Paywall + restores metered content removed by the NYTimes.com JavaScript (run with Tampermonkey)
// ==UserScript==
// @name NYTimes unpaywall
// @namespace phocks
// @version 0.1.2
// @description no subcribe popover to bother reader on nytimes.com
// @author phocks
// @match *://www.nytimes.com/*
// @grant GM_addStyle
// @run-at document-start
// @licence MIT
@phocks
phocks / block-advertisers.js
Last active March 1, 2024 00:41
Paste into console to block advertisers on Twitter
// ==UserScript==
// @name Twitter Advertiser Blocker
// @namespace http://phocks.org
// @version 0.2.0
// @description Blocks advertisers on Twitter as you scroll
// @author @[email protected]
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// @license MIT

Testing!!!

This is just a test.

@phocks
phocks / Welcome file.md
Created April 23, 2021 03:26
Welcome file

Welcome to StackEdit!

Hi! I'm your first Markdown file in StackEdit. If you want to learn about StackEdit, you can read me. If you want to play with Markdown, you can edit me. Once you have finished with me, you can create new files by opening the file explorer on the left corner of the navigation bar.

Files

StackEdit stores your files in your browser, which means all your files are automatically saved locally and are accessible offline!

Create files and folders

{
"Darwin City": 800,
"Alawa": 810,
"Brinkin": 810,
"Casuarina (NT)": 810,
"Coconut Grove": 810,
"Jingili": 810,
"Lee Point": 810,
"Lyons (NT)": 810,
"Millner": 810,
@phocks
phocks / rss_proxy.php
Last active July 28, 2020 06:51
PHP rss proxy
<?php
header('Content-Type: application/rss+xml; charset=utf-8');
header("Access-Control-Allow-Origin: *");
$string = file_get_contents("https://www.abc.net.au/news/feed/51120/rss.xml");
echo $string;