Skip to content

Instantly share code, notes, and snippets.

@erubescent
erubescent / PornHub-TV.user.js
Last active January 4, 2025 12:11
enables the tv layout along with upcoming css edits.
// ==UserScript==
// @name PornHub TV
// @author itsmidnightyo
// @version 1.0.0
// @license GPL-3.0+; http://www.gnu.org/licenses/gpl-3.0.txt
// @description enables the pornhub tv layout as seen on PS4. [custom css edits have also been applied]
// @match http://*.pornhub.com/*
// @match https://*.pornhub.com/*
// @require http://code.jquery.com/jquery-latest.js
// @require https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js
@mbernson
mbernson / README.md
Created December 2, 2015 11:36
Publish openwrt log contents to MQTT

Router logging to MQTT

This configuration sends all (or part of) your OpenWRT logs to a MQTT broker. I'm writing it up here for future reference.

I made this so I can keep track of wireless clients as they associate and disassociate with my home network. This way, my home automation setup can make decisions based on that information. :)

Installation

@flipeador
flipeador / asynchrony-concurrency-simultaneity.md
Created June 21, 2024 03:25
Asynchrony, concurrency and simultaneity.

Asynchrony - Concurrency - Simultaneity

🔄 Synchrony

Synchrony implies that the execution of multiple tasks occurs sequentially one after the other. Tasks are like steps that are executed in order, each operation blocks the others until completion.

Task #1   ├───────────┤............................
Task #2   .............├────────────┤..............
@knightstempler
knightstempler / block_gc.txt
Created March 22, 2024 19:50 — forked from rapinsa/block_gc.txt
Block Adobe Hosts C:\drivers\etc\hosts
For anyone who might read this in the future, I've found the best solution to this problem. For some reason I didn't need to go through all these steps on my surface pro adobe programs, but my desktop gave me issues. So if you're still having issues after doing the following, read on.
If you just end the process in Task Manager, the pop-up comes back up eventually.
If you just delete the files in "C:\Program Files (x86)\Common Files\Adobe\AdobeGCClient" or the folder itself, they may just recreate themselves every day or two.
If you delete/disable the Adobe services or schedules in Task Scheduler, those may just come back too.
To solve these issues, I decided to make a .bat file that deletes every file in that AdobeGCClient folder (exact location may depend on your Adobe install folder) and schedule it to do this every time I log on/turn on my pc. So far that has worked for the past few days.
@MrOtherGuy
MrOtherGuy / fx-css-variables.txt
Last active January 4, 2025 12:00
CSS variables used by Firefox
main-window
***********************
--arrowpanel-background
--arrowpanel-border-color
--arrowpanel-color
--arrowpanel-dimmed
--arrowpanel-dimmed-even-further
--arrowpanel-dimmed-further
--arrowpanel-padding
--autocomplete-popup-background
@notnotrobby
notnotrobby / cgp.md
Last active January 4, 2025 12:00
List of free resources to study computer graphics programming.
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active January 4, 2025 11:56
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@beardedtim
beardedtim / monads.md
Last active January 4, 2025 11:55
Monads are like burritos...and trees...and clocks...and...

Monads and Why The Hell We Need Weird Words

Once you understand what monads are, and why they exist, you lose the ability to explain it to anybody.

Here's to hoping I don't understand them

Table of Contents

@redlotus
redlotus / docstrings.py
Created October 2, 2017 04:34
Google Style Python Docstrings
# -*- coding: utf-8 -*-
"""Example Google style docstrings.
This module demonstrates documentation as specified by the `Google Python
Style Guide`_. Docstrings may extend over multiple lines. Sections are created
with a section header and a colon followed by a block of indented text.
Example:
Examples can be given using either the ``Example`` or ``Examples``
sections. Sections support any reStructuredText formatting, including