Skip to content

Instantly share code, notes, and snippets.

View Chaprnks's full-sized avatar
🎯
Eat.. sleep.. code..

Chaprnks Chaprnks

🎯
Eat.. sleep.. code..
View GitHub Profile
@JohanAntonyAS
JohanAntonyAS / mouse_fix.reg
Created July 6, 2022 19:12 — forked from razorenov/mouse_fix.reg
Windows 8/10 mouse fix. Disables mouse acceleration.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Mouse]
"MouseSensitivity"="10"
"SmoothMouseXCurve"=hex:\
00,00,00,00,00,00,00,00,\
C0,CC,0C,00,00,00,00,00,\
80,99,19,00,00,00,00,00,\
40,66,26,00,00,00,00,00,\
@ner00
ner00 / viewimage.user.js
Last active June 15, 2024 15:11 — forked from bijij/viewimage.user.js
Userscript version of the View Image extension
// ==UserScript==
// @name View Image
// @namespace https://github.com/bijij/ViewImage
// @version 3.7.0.15
// @description Re-implements the Google Images' "View Image" and "Search by Image" buttons.
// @author Joshua B
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFdElEQVRoge2YX2xTVRzHv7ejc8BGmuAYwQXHgxmEIDVqIiEmHULUxIcaffShE2YMgdjBgwRM4HHu5ZpofGDorfpAjA8j0ZjxZxbcwERZWOKTPhjGxv51W9vb293/5/hw1/Z299ze27WgJPs2be89f379/M45v3N+t8C61rWuJ1qcW0X6zIkIR8FTRQ5TVQUIASi1KgvfBa3c02J5qX7r1z+U/cZi7F2K1e2Kt7byognrIvHcCZw+f8TBu4EFr997K2L89U8yPwg2eBl/eR3LCbvI4gKj7yoHVtm42HkaI00HmPYCzEJD4jfs+BMbD00yO7nBVyd/fQY6T2Nk+xHXeuYMEGMpDACNezIAKB4O7ag4vaXRZ5fbtWiS8oKyWbVsb23gfMG7OgBTLkI07skgKAZ6Z29tG2c0dLdssItThHS5tevYtZNvyKTDyEsY2H0KI22V4QGXINZ/bbcNHQU4riv46tRNT2s1KP3RUYHMz8VINuuAL8AMfdzs4GXGgNWl8H70Ssd7LHhRxMBua9kQTSqSAO5h5uLA41M63iOQuVkLvvMURrYfBlGzMOVFxpJ1qoIDj34WrJGfjZGcBT+6Am9IM4kNLTt7/diosIQerYrwooiBzl6Mbj8McwV++NOXuv3aYe9CBRUWnumypaxRdvhLnacw2vYaE97
@jauderho
jauderho / Time Servers with NTS support.md
Last active June 13, 2024 19:03
A curated list of NTP time servers that support NTS
@JoeyBurzynski
JoeyBurzynski / sysctl.conf
Created December 11, 2019 07:13
sysctl.conf Optimization / Ubuntu 18.04
# Kernel sysctl configuration file for Linux
#
# Version 1.14 - 2019-04-05
# Michiel Klaver - IT Professional
# http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD variant
#
# This file should be saved as /etc/sysctl.conf and can be activated using the command:
# sysctl -e -p /etc/sysctl.conf
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details.
@shajeen
shajeen / [python] clone all star repo
Last active May 10, 2024 18:31
Code to download all stared repo
from github import Github
from pygit2 import clone_repository
import random
import string
import json
import os
path = "/home/shajeen/Documents/git_stared/"
g = Github("git personal access token")
@gsabater
gsabater / cleanAmazon.user.js
Last active April 2, 2023 14:56
Userscript to clean Amazon links and remove Affiliate params
// ==UserScript==
// @name Amazon Affiliate cleaner
// @namespace https://gist.github.com/gsabater/d7767ee5d21069a814967ecfa81bd415
// @version 0.3
// @description Remove affiliate links for amazon links
// @author You
// @match *
// @include *
// @grant none
// ==/UserScript==
script_name('ScreenManager')
script_author('imring')
local imgui = require 'imgui'
local encoding = require 'encoding'
local requests = require 'requests'
local folder = require 'folder'
local memory = require 'memory'
local imagesize = require 'imagesize'
@peruihkxt
peruihkxt / Admiral-AntiAdblock-Killer.user.js
Last active January 7, 2023 01:51
Kills the Admiral anti adblock nonsense. Just click on the *Raw* button to install the script into Tampermonkey.
// ==UserScript==
// @name Admiral AntiAdblock Killer
// @version 0.2
// @description
// @author JeremyLee
// @match https://*/*
// @match http://*/*
// @grant none
// @updateURL https://gist.github.com/JeremyLee/2f7ffe2c7ef6576de36795dadaa2a535/raw/Admiral-AntiAdblock-Killer.user.js
// ==/UserScript==
@einyx
einyx / iptables.sh
Last active May 17, 2024 13:55
Anti DDos kernel settings
### 1: Drop invalid packets ###
/sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
### 2: Drop TCP packets that are new and are not SYN ###
/sbin/iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP
### 3: Drop SYN packets with suspicious MSS value ###
/sbin/iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP
### 4: Block packets with bogus TCP flags ###
@kusaanko
kusaanko / Show download count of GitHub release for Tampermonkey.user.js
Last active October 9, 2023 01:09
Show download count of GitHub release for Tampermonkey
// ==UserScript==
// @name GitHub's Releases Download Count Viewer for Tampermonkey
// @version 0.7
// @updateURL https://gist.github.com/kusaanko/0501af806454b090972784dddff04bcf/raw/Show%2520download%2520count%2520of%2520GitHub%2520release%2520for%2520Tampermonkey.user.js
// @downloadURL https://gist.github.com/kusaanko/0501af806454b090972784dddff04bcf/raw/Show%2520download%2520count%2520of%2520GitHub%2520release%2520for%2520Tampermonkey.user.js
// @description Displays the download count of GitHub's release.
// @author Kusaanko
// @match https://github.com/*
// @grant none
// @namespace https://github.com/kusaanko