Skip to content

Instantly share code, notes, and snippets.

View lazy-lightning's full-sized avatar

Dylan lazy-lightning

  • West Coast, USA
View GitHub Profile
@ozh
ozh / plugin.php
Created April 7, 2021 16:37
YOURLS plugin : automatically login with yourls/yourls (for test installs)
<?php
/*
Plugin Name: login yourls password yourls
Description: Just as the name says
Version: 0.1
Author: Ozh
*/
// No direct call
if( !defined( 'YOURLS_ABSPATH' ) ) die();
@igormukhin
igormukhin / extract-links-from-boxopus.js
Created October 14, 2015 19:28
Extracts a list of download URLs from the Boxopus files download page
@codebycliff
codebycliff / PocketBookmarklet.js
Created January 13, 2014 21:32
The pocket bookmarklet modified to add the tag "archive" automatically.
var PKT_D = "getpocket.com";
var PKT_STATUS = "3";
try {
if (ISRIL_TEST) {}
} catch (e) {
ISRIL_TEST = false
}
var PKT_BM_OVERLAY = function (e) {
this.inited = false;
this.saveTagsCallback = e.saveTagsCallback
// ==UserScript==
// @name Bilibili 收藏夹备份
// @namespace https://gist.github.com/colt365/
// @description 将 Bilibili 收藏夹备份为 JSON
// @match https://space.bilibili.com/*
// @version 1.0.1.20230714
// @grant none
// ==/UserScript==
let box, favData, run = false;
@harperreed
harperreed / DownloadStationAPI.py
Last active September 10, 2024 20:07
example script to sync/download/etc put.io downloads to your synology download station
import time
import requests
import json
class DownloadStationAPI():
def __init__(self, host=None, username=None, password=None):
self.name = 'DownloadStation'
@SimonGivre
SimonGivre / putIO-convert-to-MP4.js
Created August 30, 2012 09:47
put.io JS to convert into MP4 every file of folder
console.log($('.filelist .file-name .ftype:contains(video)').length + ' files to convert');
var cpt=0;
$('.filelist .file-name .ftype:contains(video)').each(function(){
var row = $(this).prev();
var id = row.attr('href').substring(row.attr('href').lastIndexOf('/')+1);
$.post('/v2/files/'+id+'/mp4',function(data){
console.log(data.status);
if(data.status=="OK") cpt++;
});
});