Skip to content

Instantly share code, notes, and snippets.

@jgeboski
jgeboski / no_images_init.php
Last active December 18, 2021 19:33
Tiny-Tiny-RSS plugin which removes images from the content of articles
<?php
/*
* Copyright 2014 James Geboski <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@zma
zma / rss2html.php
Last active September 12, 2023 16:36
rss2html.php
<?php
// Check http://www.systutorials.com/136102/a-php-function-for-fetching-rss-feed-and-outputing-feed-items-as-html/ for description
// RSS to HTML
/*
$tiem_cnt: max number of feed items to be displayed
$max_words: max number of words (not real words, HTML words)
if <= 0: no limitation, if > 0 display at most $max_words words
*/
@etes
etes / pi_mount_usb.md
Last active August 13, 2025 22:27
How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.

These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.

Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following

@knanne
knanne / buildFeedCard.js
Last active January 3, 2023 20:39
JS Function to transform RSS feed into Bootstrap 4 Card
/*
* code to transform list of RSS feeds into bootstrap cards
* view my tutorial at https://knanne.github.io/posts/how-to-create-a-custom-rss-reader
* 1 DEPENDENCY - YQL: https://developer.yahoo.com/yql/
* Adhere to Google News GUIDELINES as standard for parsing RSS feeds
* (e.g. link to source, site author etc.)
* https://support.google.com/news/publisher/answer/4203?hl=en
*/
// make YQL query as url string
@timvisee
timvisee / SUBREDDIT_LIST.md
Last active November 10, 2025 20:52
Get a list of subreddits you're subscribed to on reddit. https://timvisee.com/blog/list-export-your-subreddits/

As posted on: https://timvisee.com/blog/list-export-your-subreddits/

Get a list of your subreddits

To obtain a list of your subreddits, do the following:

  • First make sure you're logged in on reddit, on a desktop browser.
  • Then visit reddit.com/subreddits.
  • Then put the following snippet in your browsers address bar, and press Enter.
    Make sure javascript: is included at the beginning, your browser might remove it while copy-pasting for security reasons:
@jokkebk
jokkebk / White balance.ipynb
Created August 17, 2019 11:34
Correcting image white balance with Python PIL and Numpy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jc-torresp
jc-torresp / raspberry-pi-plex-server.md
Last active October 25, 2025 23:27
Setup a Raspberry Pi Plex Media Server (Including external storage media and Windows to Raspbian migration)

Raspberry Pi Plex Server

Installation

Ensure our operating system is entirely up to date:

sudo apt-get update
sudo apt-get upgrade
@dincaradu
dincaradu / get_palindrome_dates.js
Last active February 22, 2022 21:56
This gist has one function that checks if a number is a palindrome or not, one other function that transforms a date to numeric format and a function that iterates dates between start and end date and returns palindrome values
function isPalindrome (number) {
if (!number) return false;
if (Number.isInteger(number)) number = number.toString();
return number == number.split("").reverse().join("");
}
function dateToNumber(dateString, dateFormat = 'us') {
let date = new Date(dateString);
let dateOptions = {