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
@jackielii
jackielii / OpenWithSublimeText3.bat
Last active March 13, 2024 17:38 — forked from mrchief/LICENSE.md
Add "Open with Sublime Text 3" to Windows Explorer Context Menu (including folders)
@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@vsoch
vsoch / index.php
Last active June 2, 2024 14:28
Generate RSS feed for files in a directory folder. Put this file in a folder with files, modify the $allowed_ext variable to customize your extensions, and $feedName, $feedDesc, $feedURL, and $feedBaseURL. Then navigate to the folder on the web to see the xml feed. Done!
<?php
header('Content-type: text/xml');
/*
Runs from a directory containing files to provide an
RSS 2.0 feed that contains the list and modification times for all the
files.
*/
$feedName = "My Audio Feed";
$feedDesc = "Feed for the my audio files in some server folder";
// ==UserScript==
// @name Sourceforge Instant Downloader
// @match *://sourceforge.net/*download*
// ==/UserScript==
(function() {
'use strict';
function exec(fn) {
var script = document.createElement('script');
script.setAttribute('type', 'application/javascript');
@adisib
adisib / youtube_hd.user.js
Last active July 26, 2024 17:16
Make youtube videos in HD and automatically resize
// ==UserScript==
// @name Youtube HD
// @author adisib
// @namespace namespace_adisib
// @description Select a youtube resolution and resize the player.
// @version 2024.01.17
// @match https://*.youtube.com/*
// @noframes
// @grant GM.getValue
// @grant GM.setValue
@insanityseanboy
insanityseanboy / decrapifier.user.js
Last active April 2, 2023 14:58
URL Decrapifier for Google
// ==UserScript==
// @run-at document-start
// @name URL Decrapifier
// @namespace seansmod
// @description Cleans URLs from various popular sites. Also, makes sure the sites are using HTTPS.
// @include /^https?://[a-z]+\.google(\.com?)?\.[a-z]{2,3}/.*$/
// @exclude /&tbm=isch/
// @version 1
// @update https://gist.github.com/insanityseanboy/3457a0b8190bfcd78b7ac98f71bd1f24/raw/decrapifier.user.js
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
@kowith337
kowith337 / AntiAPKMirrorDownloadDisabler.txt
Last active February 19, 2022 22:51
Anti APKMirror Ads and Countdown
[uBlock Origin 1.13.9]
! Title: Anti APKMirror Ads and Countdown
! Version: 201708222348
! Author: kowith337
! Homepage: https://gist.github.com/kowith337
||apkmirror.com/wp-content/themes/APKMirror/images/sadkitten.png$important
apkmirror.com##.OUTBRAIN
apkmirror.com##.appRow:if(.gooWidget)
@voluntas
voluntas / sysctl.conf
Created October 14, 2017 13:07 — forked from techgaun/sysctl.conf
Sysctl configuration for high performance
### KERNEL TUNING ###
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2
@rohankhudedev
rohankhudedev / opcache.ini
Last active July 20, 2024 05:21
Best Zend OpCache Settings / Tuning / Configurations
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=1
; The OPcache shared memory storage size.
opcache.memory_consumption=512
@bijij
bijij / viewimage.user.js
Last active March 3, 2024 16:28
Userscript version of the View Image chrome extension
// ==UserScript==
// @name View Image
// @namespace https://github.com/bijij/ViewImage
// @version 4.1.1
// @description This userscript re-implements the "View Image" and "Search by image" buttons into google images.
// @author Joshua B
// @run-at document-end
// @include http*://*.google.tld/search*tbm=isch*
// @include http*://*.google.tld/imgres*
// @updateURL https://gist.githubusercontent.com/bijij/58cc8cfc859331e4cf80210528a7b255/raw/viewimage.user.js