Skip to content

Instantly share code, notes, and snippets.

Working on changing the world.

Anthony Eden anthonyeden

Working on changing the world.
Block or report user

Report or block anthonyeden

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
anthonyeden / facebook-live-video-scraper.txt
Last active Mar 19, 2020
Facebook Live Embed Scraper
View facebook-live-video-scraper.txt
This script allows you to scrape a Facebook page for live videos, and generate a iframe embed code for your website. It uses Selenium Firefox web driver. You may get banned if you run this too often - this is yet to be seen.
The file `livestream-data.json` will be updated with extra fields if/when a live video is found.
anthonyeden / blockeditor_enableperpage.php
Created Feb 14, 2020
Wordpress: Selectively enable Block Editor per-page
View blockeditor_enableperpage.php
// Disable the Block Editor on all pages, except specific pages
add_filter('use_block_editor_for_post', '__return_false', 5);
add_filter('use_block_editor_for_post', function($can_edit, $post) {
// Conditionally allow the block editor per-page
if (empty($post->ID)) return $can_edit;
if (get_post_meta($post->ID, 'use_block_editor', true) == true) {
anthonyeden / MetaRadioTemplate.xml
Created Feb 13, 2020
MBStudio MetaRadio Template
View MetaRadioTemplate.xml
<?xml version="1.0"?>
anthonyeden / MetaRadioFile.xml
Last active Feb 12, 2020
Simian XML File - MetaRadio Template
View MetaRadioFile.xml
<?xml version="1.0"?>
<StartTimestamp><![CDATA[<!--BSIDATE--> <!--BSITIME-->]]></StartTimestamp>
anthonyeden /
Created Jan 28, 2020
LWRP Example: Silence Detection & GPIO
# Requires
import time
from LWRPClient import LWRPClient
# Connect to audio node
LWRP_Audio = LWRPClient("", 93)
# Connect to GPIO node
LWRP_Logic = LWRPClient("", 93)
anthonyeden / countdown_5mins.txt
Created Jul 21, 2019
Adobe After Effects - Countdown Expressions
View countdown_5mins.txt
st = 300;
t = st - time;
c = timeToTimecode(t);
c = c.substring(4,8)
anthonyeden /
Created Dec 30, 2018
Google Analytics Realtime Data
from apiclient.discovery import build
from oauth2client.service_account import ServiceAccountCredentials
import httplib2
VIEW_ID = 'ga:123456789'
def get_service(api_name, api_version, scope, key_file_location,
"""Get a service that communicates to a Google API.
anthonyeden / Responsive-YouTube-Embed-Wordpress-Filters.php
Last active Jul 13, 2019
Responsive YouTube Embeds in Wordpress
View Responsive-YouTube-Embed-Wordpress-Filters.php
add_filter('the_content', function($content) {
return str_replace(array("<iframe", "</iframe>"), array('<div class="iframe-container"><iframe', "</iframe></div>"), $content);
add_filter('embed_oembed_html', function ($html, $url, $attr, $post_id) {
if(strpos($html, '') !== false || strpos($html, '') !== false){
return '<div class="embed-responsive embed-responsive-16by9">' . $html . '</div>';
} else {
anthonyeden / Windows-10-Basic-Cleanup.ps1
Created Dec 18, 2018
Windows 10 Basic Cleanup - Powershell
View Windows-10-Basic-Cleanup.ps1
Get-AppxPackage -allusers *messaging* | Remove-AppxPackage
Get-AppxPackage -allusers *WindowsMaps* | Remove-AppxPackage
Get-AppxPackage -allusers *bing* | Remove-AppxPackage
Get-AppxPackage -allusers *zune* | Remove-AppxPackage
get-appxpackage -allusers *officehub* | remove-appxpackage
get-appxpackage -allusers *skype* | remove-appxpackage
get-appxpackage -allusers *people* | remove-appxpackage
get-appxpackage -allusers *solitaire* | remove-appxpackage
get-appxpackage -allusers *xbox* | remove-appxpackage
Get-AppxPackage -allusers *windowscommunicationsapps* | Remove-AppxPackage
anthonyeden / XML-Sample2.lua
Created Nov 6, 2018
Telos ZipStream - Sample XML Metadata Filter
View XML-Sample2.lua
-- ------------------------------------------------------------------
-- MetaData Filter. Copyright (C) 2011 Tls Corporation
-- Author: Ioan L. Rus
-- Lines that start with two dashes (like this line) are comments.
-- Metadata filters are written in a very simple programming
-- language named Lua. Additional information about the language
-- and it's syntax can be found at
You can’t perform that action at this time.