Skip to content

Instantly share code, notes, and snippets.

@eyalk11
eyalk11 / fuzzyloc.ps1
Last active June 30, 2023 09:33
Go into visited locations by fuzzy search
# Depends on FZF
# Remove the default cd alias
Remove-Alias cd
# Create a new cd function
function MyCD {
Set-Location @args
$curtime =$(Get-Date -Format "yyyy-MM-dd HH:mm:ss")
$dict = @{
Id = "30"
@rajtilakjee
rajtilakjee / pushchanges.bat
Created February 16, 2023 05:13
Batch file to push simple changes from local repo to remote.
@echo off
cd "C:\prod\local-repo"
git add .
set /p input="Name the commit: "
git commit -m "%input%"
git push origin main
cd ..
@piyush01123
piyush01123 / generatePassword.js
Last active March 21, 2023 23:14
Generate and copy to clipboard strong password - Tampermonkey script
// ==UserScript==
// @name Generate Strong Password
// @namespace http://tampermonkey.net/
// @version 3.1.1
// @description Strong password generator of size 12
// @author Piyush Singh
// @match *://*/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant unsafeWindow
// @grant GM_setClipboard
@eyeseast
eyeseast / python.md
Last active May 6, 2024 17:11
How to set up Python in 2022

I have an updated version of this on my blog here: https://chrisamico.com/blog/2023-01-14/python-setup/.

Python

This is my recommended Python setup, as of Fall 2022. The Python landscape can be a confusing mess of overlapping tools that sometimes don't work well together. This is an effort to standardize our approach and environments.

Tools and helpful links:

  • Python docs: https://docs.python.org/3/
  • Python Standard Library:  - Start here when you're trying to solve a specific problem
@troy-whitespark
troy-whitespark / tautulli.log
Created October 15, 2022 00:18
tautulli.log
Sorry mr. mod bot, but I'm looking for API support, not problems with an existing install!
Here's a gist for you.
@TheGreatSageEqualToHeaven
TheGreatSageEqualToHeaven / READ.md
Last active April 14, 2025 17:55
Data store vulnerabilities

Write-up

A warning to Roblox developers about a powerful exploit primitive. In this, I will detail the research I’ve conducted into this attack vector and walk you through how you as a developer, can protect against exploits with primitives like this.

DataStoreService lets you store data that needs to persist between sessions, such as items in a player’s inventory or skill points. Data stores are consistent per experience, so any place in an experience can access and change the same data, including places on different servers.

By default, experiences tested in Studio cannot access data stores, so you must first enable API services. You will need to do this to test the vulnerabilities.

The idea I wanted to explore when pondering the above question was; can we exploit remotes to prevent data from saving? It is easy to blame the developer for not protecting themselves against such a simple exploit but it ends up being more complicated than that. I found plenty of examples of these vulnerabilities occurring

@dimitryzub
dimitryzub / researchgate-search-questions.py
Last active September 14, 2022 10:01
Scrape ResearchGate Search - All Questions
# Blog post: https://serpapi.com/blog/web-scraping-all-questions-from-researchgate-search-in-python/
from parsel import Selector
from playwright.sync_api import sync_playwright
import json
def scrape_researchgate_questions(query: str):
with sync_playwright() as p:
@sean-m
sean-m / TimeEstimator.ps1
Last active December 4, 2023 22:15
A time estimator for use with PowerShell's Write-Progress. Provided a total number of cycles, it tracks how long the last 100 or less itterations of your main loop took and calculates the remaining time based on velocity. Note: when ticks exceed total, it returns a seconds remaining of 0, but continues to track the rate that work is getting done.
<#
A time estimator for use with PowerShell's Write-Progress. Provided a total
number of cycles, it tracks how long the last 100 or less itterations of your
main loop took and calculates the remaining time based on velocity. Note: when
ticks exceed total, it returns a seconds remaining of 0, but continues to track
the rate that work is getting done.
The intended use case is with Write-Progress, calls to that cmdlet are really
slow on PowerShell 2-5, efforts have been made to maintain low overhead. If
you're after performance this is still useful, just log the progress yourself.
For instance, using [System.Diagnostics.Trace]::Write() and watching with
@TheBrokenRail
TheBrokenRail / README.md
Last active March 17, 2025 13:05
Jailbreak Firefox!

Jailbreak-Firefox

This script allows you to install unsigned extensions (ones that aren't approved by Mozilla) on normal Firefox builds and the official Snap! That's right, no "Firefox Developer Edition" nonsense required!

⚠️ Disclaimer ⚠️

This script is not well tested, like at all. This script might break things, possibly important things. You should probably take a backup of your Firefox profile before using it. You have been warned.

Dependencies

sudo apt install -y curl unzip zip
# Only needed when jailbreaking the Snap
@wararyo
wararyo / ..VRChat Discord Mute Syncer.md
Last active April 18, 2024 09:36
VRChat Discord Mute Syncer

VRChat Discord Mute Syncer

How to run

  1. Get client ID and client secret in Discord Developer Portal and edit .env
  2. Launch VRChat and Discord (not in browser but standalone application)
  3. Enable OSC in VRChat
  4. Run the followings