Skip to content

Instantly share code, notes, and snippets.

View Epictek's full-sized avatar
🌮

Kieran Coldron Epictek

🌮
  • England
  • 11:47 (UTC)
View GitHub Profile
@Epictek
Epictek / clean-mender.js
Created January 11, 2023 11:20
Clean mender artifacts, run in browser dev tools whilst logged in to mender
function delay(time) {
return new Promise(resolve => setTimeout(resolve, time));
}
var page = 0;
var pageContents = [];
while (true){
await delay(200);
@Epictek
Epictek / Apt.cs
Created March 8, 2019 10:09
Get latest debian updates in C# .NET Core
using CRplc.Ics.Pi.Data;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
import logging
import clr
clr.AddReference("Tobii.Interaction.Net")
clr.AddReference("Tobii.Interaction.Model")
clr.AddReference("EyeXFramework")
clr.AddReference("System")
from Tobii.Interaction import *
from Tobii.Interaction.Framework import *
from System import *
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Syntax: $_ USER[ USER[ ...]]" >&2
exit 1
fi
exit_code=0
for user in "$@"; do
home="/home/$user"
@Epictek
Epictek / Free file hosts.md
Last active June 12, 2016 22:30
Free file hosts with support for images
Host Expires Maximum file size Other info
uguu.se 24 Hours 100 MiB
teknik.io Permanent 100 MiB All files are encrypted
0x0.st 30 days, up to a year (see on site) 64 MiB
HNNG Permanent 25 MiB
pomf Permanent(depending on host) 50 MiB (depends on host) No official host anymore just many clones
mixtape Permanent 100 MiB Fork of pomf
var username = prompt("Enter your hummingbird username:")
var followerspage = 1;
var followers = [];
var a = false;
var getFollowers = setInterval(function () {
$.get( "https://hummingbird.me/users?followers_of=" + username + "&page="+ followerspage, function(data){
console.log(data);
if(data.users.length === 0){
* {
font-family:'Comic Sans MS';
}
h1, h2, h3 {
font-family:'Comic Sans MS' !important;
}
.overlay-panel{
background: url("http://i.imgur.com/J6mPoju.png") !important;
background-size: cover !important;
}
@Epictek
Epictek / mlg.css
Last active August 29, 2015 14:13
Hummingbird MLG userstyle
@-moz-document url-prefix("https://hummingbird.me") {
* {
font-family:'Comic Sans MS';
}
h1, h2, h3 {
font-family:'Comic Sans MS' !important;
}
.overlay-panel{
background: url("http://i.imgur.com/J6mPoju.png") !important;
background-size: cover !important;
@Epictek
Epictek / plugmpv.js
Last active April 3, 2017 13:33
use mpv to play plug.dj videos
setInterval(function() {
if ($("#yt-frame").length) {
time = API.getTimeElapsed();
if (time > 0) {
start = "--start=" + time
} else {
start = ""
}
var cid = API.getMedia().cid;
if (API.getMedia().format == 1) {