Skip to content

Instantly share code, notes, and snippets.

View neoOpus's full-sized avatar

Anoir Ben Tanfous neoOpus

View GitHub Profile
@neremin
neremin / BAT_CMD_runAsAdmin_fix.bat
Last active January 28, 2021 16:32
Template for windows cmd shell scripts (BAT, CMD) which need to auto-request user run as Administrator. Plus script for fixing "Run as Administrator" on batch files.
@ECHO off
net session >nul 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
@GOTO ADMINTASKS
:ELEVATE
ECHO Elevated privileges are temporarily required to run script
cd /d %~dp0
mshta "javascript: var shell = new ActiveXObject('Shell.Application'); shell.ShellExecute('%~nx0', '', '', 'runas', 1); close();"
@spiralx
spiralx / User script templates for Tampermonkey
Last active February 7, 2024 21:52
Tampermonkey user script templates
For
* ES5
* ES6
* CoffeeScript
@westonruter
westonruter / README.md
Last active June 30, 2023 15:29
User script to add a “Group by User”, “Sort by Date”, and “Load until…” buttons to Twitter.

This user script adds “Group by User”, “Sort by Date”, and “Load until...” buttons to the Twitter web app. I'm so tired of Twitter (and Facebook and Google+) not remembering the read state for my posts. My solution in the past was GTweet which allowed me to import my tweets into Google Reader, and Google Reader would happily keep track of all of the tweets I hadn't read yet. I also wrote a user script that added buttons to Reader which allowed me to group/sort the tweets by user to allow me to much more quickly read through them; inpiration for this came from Steve Souders:

Wrote bookmarklet to sort Twitter stream by account. Love it for my early morning massive catchup. #MyWebMyWay

— souders (@souders) November 21, 2012

Well, since Googl