Skip to content

Instantly share code, notes, and snippets.

View DarrenRainey's full-sized avatar

Darren Rainey DarrenRainey

View GitHub Profile
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
int getport(char * unfiltered)
{
char *port = unfiltered;
long val = strtol(port, &port, 10);
return val;
# Makefile.in generated by automake 1.14.1 from Makefile.am.
# Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
@DarrenRainey
DarrenRainey / yt-pause.js
Created February 20, 2024 14:07
Pause YouTube video after x seconds
// Darren Rainey 2024 - github.com/Darren
//
// A Simple javascript snippet to pause a youtube video after x seconds
// Simply copy and paste in Chrome devtools / console and run
// pause(60) to pause the current video after 60 seconds.
function pause(timeInSeconds){
seconds = timeInSeconds * 1000
setTimeout(() => {