Skip to content

Instantly share code, notes, and snippets.

View ZeroDragon's full-sized avatar
🌮
Tacos de canasta

Zero Dragon (Carlos Flores) ZeroDragon

🌮
Tacos de canasta
View GitHub Profile
@gagarine
gagarine / win11-mouse-scroll-reverse.md
Last active December 3, 2025 06:17
Reverse Mouse Wheel scroll in Windows 11 (Natural Mode like MacOS)

Reverse Mouse Wheel scroll in Windows 11

Chose between natural mode like MacOS or Windows default mode.

Step 1: Open Windows PowerShell in Administrator Mode.

You can do this by going to Start Menu, type PowerShell, and click Run as Administrator.

Step 2: Copy the following code and paste it in the command line of Windows PowerShell:

$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }
@Erikdegroot89
Erikdegroot89 / list-updates.sh
Created February 1, 2019 10:16
Get all commits since last tag
git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline > new-in-this-release.log
@vesper8
vesper8 / default.conf
Created July 6, 2018 03:17
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@jasonwatt
jasonwatt / GAME_MASTER_v0_1.decoded.categorized.json
Last active November 27, 2018 19:39
OUTDATED - v0.29 Client - GAME_MASTER_v0_1.decoded.categorized.json
{
"Badges": [
{
"TemplateId": "BADGE_BATTLE_ATTACK_WON",
"Badge": {
"BadgeType": "BADGE_BATTLE_ATTACK_WON",
"BadgeRanks": 4,
"Targets": [10, 100, 1000]
}
}, {
@twilson63
twilson63 / replicate.js
Created November 18, 2013 13:43
Replicate Npm Registry Monitor script
var nano = require('nano')('http://localhost:5984');
function checkTasks(cb) {
nano.request({ path: '_active_tasks'}, cb);
}
function replicateNpm(cb) {
nano.db.replicate('http://isaacs.iriscouch.com/registry', 'registry',
{ continuous: true,
worker_processes: 10,