Skip to content

Instantly share code, notes, and snippets.

View dausruddin's full-sized avatar
Working from home


Working from home
View GitHub Profile
# refind.conf
# Configuration file for the rEFInd boot menu
# Timeout in seconds for the main menu screen. Setting the timeout to 0
# disables automatic booting (i.e., no timeout). Setting it to -1 causes
# an immediate boot to the default OS *UNLESS* a keypress is in the buffer
# when rEFInd launches, in which case that keypress is interpreted as a
# shortcut key. If no matching shortcut is found, rEFInd displays its
dausruddin / PKGBUILD
Created August 26, 2021 17:58
Install this for displaying embedded cover are picture in your video in Dolphin.
pkgdesc='a video thumbnailer for kde based on ffmpegthumbnailer'
depends=('ffmpeg' 'ffmpegthumbnailer' 'extra-cmake-modules')
makedepends=('subversion' 'cmake')
// ==UserScript==
// @name AdsBypasser
// @namespace AdsBypasser
// @description Bypass Ads
// @copyright 2012+, Wei-Cheng Pan (legnaleurc)
// @version 7.15.0
// @license BSD
// @homepageURL
// @supportURL
// @updateURL
dausruddin / default
Last active December 5, 2020 13:25
My configurations for openresty
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 default_server;
listen [::]:443 default_server;
server_name _;
# sudo openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out nginx.crt -keyout nginx.key
ssl_certificate /etc/openresty/nginx/conf/ssl/nginx.crt;
(function(){var h=window.Cbox||{},v=h.q||[],f={},w=0,r=function(b,a){b=b||{};a=a||{};for(var c in b)"undefined"===typeof a[c]&&(a[c]=b[c]);return a},t=function(b,a){var c=document.createElement("iframe"),e=b.split(/-/),k="dev"===e[0]?"dev":"www";e[0].match(/^[0-9]$/)&&(k+=e[0]);var e={name:"cboxmain",width:"100%",height:"100%",src:"https://"+k+""+e[1]+"&boxtag="+e[2]+"&sec=main",marginheight:"0",marginwidth:"0",frameborder:"0",scrolling:"no",allowtransparency:"yes",style:"border: 0"},
d;for(d in e)c.setAttribute(d,e[d]);return c},x=function(){var b=document.createElement("style");b.innerHTML=".CboxButton {position: fixed;opacity: 1;z-index: 9999;bottom: 0px;right: 0px;width: 120px;height: 30px;transform: rotateZ(-90deg);transform-origin: 60px -30px;padding: 0px 1em;box-sizing: border-box;text-align: center;cursor: pointer;background: rgba(0, 0, 0, 0.79);color: #fff;line-height: 30px;transition: opacity 200ms ease-in;border-radius: 0 15px 0 0px;}.CboxUserCount {background: #8BC34A;position:
Serial Keys:
dausruddin / nginx.service
Created November 4, 2019 14:51
systemd unit file for Nginx used by Ondřej Surý on Ubuntu 18.04
# Stop dance for nginx
# =======================
# ExecStop sends SIGSTOP (graceful stop) to the nginx process.
# If, after 5s (--retry QUIT/5) nginx is still running, systemd takes control
# and sends SIGTERM (fast shutdown) to the main process.
# After another 5s (TimeoutStopSec=5), and if nginx is alive, systemd sends
# SIGKILL to all the remaining processes in the process group (KillMode=mixed).
# nginx signals reference doc:
NetLimiter 3
Registration name: Peter Raheli
Registration code: C99A2-QSSUD-2CSBG-TSRPN-A2BEB
NetLimiter 4
Registration Name: Vladimir Putin #2
Registration Code: XLEVD-PNASB-6A3BD-Z72GJ-SPAH7
# Netlimiter Full Netlimiter Activated Netlimiter cracked Netlimiter Full Version Netlimiter Serial Netlimiter keygen Netlimiter crack Netlimiter 4 serial Netlimiter 4 Crack Netlimiter 4 register Netlimiter 4 patch Netlimiter full Full version Netlimiter 4 Activated Netlimiter 4 Cracked Netlimiter Pro
dausruddin /
Created November 21, 2017 12:25
XMR-Stak start script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
$DIR/build/bin/xmr-stak --config $DIR/build/config.txt
dausruddin / curlprogress.php
Created September 19, 2016 01:53
Curl with progress. Taken from stackoverflow (forgot the link to source)
echo "<pre>";
echo "Loading ...<br>";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "");
//curl_setopt($ch, CURLOPT_BUFFERSIZE,128);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, 'progress');