Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Reddit Unread Comments
// @description On topic pages, show "X unread comments (Y total)"; on comment pages, highlight unread comments. Local storage only -- does not work across multiple computers.
// @author Xiao
// @namespace https://greasyfork.org/users/5802
// @include /^https?:\/\/[a-z]+\.reddit\.com\/.*/
// @require https://raw.githubusercontent.com/bgrins/TinyColor/master/tinycolor.js
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_listValues
@juanarbol
juanarbol / chmodCheatSheet.md
Last active January 15, 2025 09:15
Chmod cheat sheet

Chmod codes cheat sheet

How to use chmod codes in UNIX:

  1. There are three types of permissions in files and folders in unix
    1. Read (r)
    2. Write (w)
    3. Execute (x)
  2. And, there is a classification of users called UGO (explained bellow):
  3. U ~> User (usually, you)
@jasonadsit
jasonadsit / Get-BrowserHistory.ps1
Last active February 27, 2025 16:23
Get-BrowserHistory: A function to retrieve web browsing history from remote machines using PowerShell
function Get-BrowserHistory {
<#
.SYNOPSIS
Gets web browsing history
.DESCRIPTION
Parses Chrome and IE browser history. Optionally refines the results by username and/or URL.
.PARAMETER ComputerName
The computer name to get browsing history from. Defaults to localhost (actually... `$env:COMPUTERNAME)
Accepts values from the pipeline.
.PARAMETER UserName
@NathanSweet
NathanSweet / Reddit_Highlight_New_Comments.user.js
Created December 4, 2015 14:29
Highlight new Reddit comments with this GreaseMonkey user script.
// ==UserScript==
// @name Reddit: Highlight New Comments v3
// @description Highlights comments on Reddit that are new since your last visit.
// @author Chris H (Zren / Shade), Nathan Sweet
// @icon https://reddit.com/favicon.ico
// @namespace http://xshade.ca
// @version 1
// @include /https?:\/\/((www|pay|[a-z]{2})\.)?reddit\.com\/r\/[a-zA-Z0-9]+\/comments\/.*/
// @grant GM_addStyle
// ==/UserScript==