Skip to content

Instantly share code, notes, and snippets.

import sublime
import sublime_plugin
import re
class GetFunctionScopeCommand(sublime_plugin.TextCommand):
def run(self, edit):
view = self.view
cursor_pos = view.sel()[0].begin()
current_line_region = view.line(cursor_pos)
current_line = view.substr(current_line_region)
@flipeador
flipeador / robocopy.ahk
Last active March 27, 2025 02:53
A basic GUI for backing up files and directories with ROBOCOPY in Windows.
;@Ahk2Exe-SetFileVersion 1.0.4.0
;@Ahk2Exe-SetProductName Robocopy backup tool
;@Ahk2Exe-SetCopyright https://gist.github.com/flipeador/29ac92f277f4c01e07659f17f8c0caa5
#Requires AutoHotkey v2
#SingleInstance Off
#NoTrayIcon
TITLE := 'Robocopy backup tool'
@almahmudbd
almahmudbd / browser-userscript-list.md
Last active April 8, 2025 00:07
some useful Userscript collection, can be used with a browser and tamper/violent monkey extension

Here is a collection of some useful userscripts that can be used with a browser along with the Tampermonkey or Violentmonkey extension. Please note that some scripts might be expired or no longer functional.

UserScript List


  1. All Userscripts for torrentbd.net - https://greasyfork.org/en/scripts/by-site/torrentbd.net
  2. Anti-Adblock Killer by Reek - https://openuserjs.org/scripts/reek/Anti-Adblock_Killer_Reek
  3. Autopass Cloudflare CAPTCHA - https://greasyfork.org/en/scripts/464785-autopass-cloudflare-captcha
  4. Bypass All Shortlinks (debloated ver) - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated
  5. Bypass All Shortlinks n Captcha (not sure) - https://greasyfork.org/en/scripts/431691-bypass-all-shortlinks
  6. Bypass Paywalls Clean - https://gitflic.ru/project/magnolia1234/bypass-paywalls-clean-filters
@cjbayliss
cjbayliss / dark-mode.js
Last active December 10, 2024 23:21
dark-mode.js
// ==UserScript==
// @name dark-mode
// @match *://*/*
// @grant none
// @version 1.1
// @author cjb
// @run-at document-start
// ==/UserScript==
const adjustColors = () => {
@schacon
schacon / better-git-branch.sh
Created January 13, 2024 18:41
Better Git Branch output
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NO_COLOR='\033[0m'
@ryanrudolfoba
ryanrudolfoba / SteamOS-Recovery-Downloader-and-Flasher.sh
Created January 9, 2024 21:04
Script for SteamOS to easily download and flash the latest SteamOS Recovery Image to a USB device
#!/bin/bash
# SteamOS Recovery Downloader and Flasher
# script by ryanrudolf
# https://github.com/ryanrudolfoba
# https://youtube.com/@10minutesteamdeckgamer
#
# script will create the directory - ~/SteamOS-Recovery-Downloader and automatically download the latest SteamOS Recovery Image.
# script will perform a md5 check to make sure that download is not corrupted and finally flash the image to the USB device.
# if there are multiple USB devices, the script will exit immediately. Plug in a single USB device that you want to flash and re-run the script.
#
@wesbos
wesbos / logger.js
Created January 8, 2024 15:55
console.log line numbers in Node.js
// Use like this: node --import logger.js yourapp.js
import path from 'path';
const { log } = console;
[`debug`, `log`, `warn`, `error`, `table`, `dir`].forEach((methodName) => {
const originalLoggingMethod = console[methodName];
console[methodName] = (...args) => {
const originalPrepareStackTrace = Error.prepareStackTrace;
Error.prepareStackTrace = (_, stack) => stack;
@kawainime
kawainime / awesome-ai-tools.md
Last active April 26, 2025 05:53
awesome-ai-tools
@EstebanMqz
EstebanMqz / Settings.md
Last active October 4, 2024 04:08
Settings.md

@AppleBoiy
AppleBoiy / alias_eza.md
Last active April 7, 2025 15:26
eza-ls

Alias eza for ls command

Put to shell configure file

first install eza by homebrew

brew install eza

Basic setup