Skip to content

Instantly share code, notes, and snippets.

@random-robbie
random-robbie / BBC.m3u
Last active May 2, 2024 02:40
BBC HLS Streams - let me know if i missed any
#EXTM3U
#EXTINF:-1 tvg-id="BBC One HD" tvg-name="BBC One HD" tvg-logo="https://s4.postimg.org/k5xl5dmf1/bbc_one.png" group-title="BBC",BBC One HD
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_hdtv/ak/bbc_one_hd.m3u8
#EXTINF:-1 tvg-id="BBC One London" tvg-name="BBC One London" tvg-logo="https://s4.postimg.org/z61nj8qd9/Bbc_london_logo.jpg" group-title="BBC",BBC One London
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/hls_tablet/ak/bbc_one_london.m3u8
#EXTINF:-1 tvg-id="BBC One Northern Ireland HD" tvg-name="BBC One Northern Ireland HD" tvg-logo="https://s3.postimg.org/ltztuojqr/6y_QROLCn_400x400.png" group-title="BBC",BBC One Northern Ireland HD
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_hdtv/ak/bbc_one_northern_ireland_hd.m3u8
#EXTINF:-1 tvg-id="BBC One Scotland HD" tvg-name="BBC One Scotland HD" tvg-logo="https://s3.postimg.org/ltztuojqr/6y_QROLCn_400x400.png" group-title="BBC",BBC One Scotland HD
http://a.fi
@simX
simX / hidpi.txt
Created July 28, 2012 04:58
Enable HiDPI mode in Mountain Lion w/o Quartz Debug
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES;
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled;
// by the way, you need to logout and log back in for this to take effect. Or at least that's what
// Quartz Debug says. Who knows, maybe it's lying?
// P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging
// back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from.
/*
It's now a package. You can find it here:
https://github.com/joshnuss/svelte-local-storage-store
*/
// Svelte store backed by window.localStorage
// Persists store's data locally
@aidilfbk
aidilfbk / HTTP Status Codes.js
Created November 14, 2011 06:31
A simple Javascript Object Literal which lets you query the HTTP status text for a particular HTTP status code. (scraped from Wikipedia)
{
100: "Continue",
101: "Switching Protocols",
102: "Processing",
103: "Checkpoint",
122: "Request-URI too long",
200: "OK",
201: "Created",
202: "Accepted",
@aidilfbk
aidilfbk / twitch_live_url.py
Last active May 2, 2024 02:37
Requesting special low latency m3u8 playlist file
import requests
import json
import re
import argparse
import random
import m3u8
USHER_API = 'https://usher.ttvnw.net/api/channel/hls/{channel}.m3u8?player=twitchweb' +\
'&token={token}&sig={sig}&allow_audio_only=true&allow_source=true&fast_bread=true' + \
'&type=any'
@aidilfbk
aidilfbk / clear-osx-notification-center.scpt.js
Created March 22, 2018 10:50
Dump this into Script Editor.app and run when you want to clear all notifications in the Notifications Center panel
var app = Application("System Events");
var ncToggle = app.processes.byName('SystemUIServer').menuBars[0].menuBarItems.byName("Notification Center");
ncToggle.click(); // show Notification Center panel on screen right
var notificationCenter = app.processes.byName('NotificationCenter');
var ncWindow = notificationCenter.windows[0];
var ncNotifTabBtn = ncWindow.radioGroups[0].radioButtons.byName("Notifications");
var originalNotifTab = "notifications";
if(!ncNotifTabBtn.value()){
@aidilfbk
aidilfbk / disableSelection.jquery.js
Created August 14, 2010 11:48
jQuery plugin to prevent selection of text
// Usage: $("elements").disableSelection()
(function($){
$.fn.extend({
disableSelection : function() {
return this.each(function() {
this.onselectstart = function(){return false;};
this.unselectable = "on";
jQuery(this).css({'-moz-user-select': 'none', '-webkit-user-select': 'none', 'user-select': 'none');
});
@AndrewMast
AndrewMast / disable_vanguard.vbs
Last active May 2, 2024 02:36
Commands to disable Riot Vanguard when you aren't playing Valorant
' Disables Vanguard from starting when you boot your computer
Call CreateObject("Shell.Application").ShellExecute("cmd.exe", "/c ""sc config vgc start= disabled & sc config vgk start= disabled""", "", "runas")
@jr-codes
jr-codes / script.user.js
Created November 16, 2012 06:10
Userscript Boilerplate
// ==UserScript==
// @name Userscript Name
// @namespace http://example.com/
// @description Userscript Description
// @match http://example.com/* (or @include * to include all pages)
// @version 1.0
// ==/UserScript==
// Emulate Greasemonkey's unsafeWindow in Chrome
window.unsafeWindow = window.unsafeWindow || (function() {
@dinh
dinh / script.user.js
Created November 30, 2023 19:58 — forked from jr-codes/script.user.js
Userscript Boilerplate
// ==UserScript==
// @name Userscript Name
// @namespace http://example.com/
// @description Userscript Description
// @match http://example.com/* (or @include * to include all pages)
// @version 1.0
// ==/UserScript==
// Emulate Greasemonkey's unsafeWindow in Chrome
window.unsafeWindow = window.unsafeWindow || (function() {