Skip to content

Instantly share code, notes, and snippets.

gkmuse / KEY.bat
Created August 1, 2012 15:04
Generate Random String of Arbitrary Length with Batch
@echo off
setlocal EnableDelayedExpansion
set char=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
set count=0
set salt=0
echo The maximum RC4 key length is 128 bits.
echo Default KEY length is 16 characters.
paulmach / serve.go
Last active July 20, 2024 04:04
Simple Static File Server in Go
Serve is a very simple static file server in go
-p="8100": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.
package main
EvgenyOrekhov / download-current-flickr-image.js
Last active May 17, 2021 19:29
A bookmarklet for downloading currently viewed Flickr image in the biggest available size
/*jslint browser, maxlen: 80 */
/*global DOMParser, fetch */
(function () {
"use strict";
var originalSizeLink = document.querySelector(".Original > a");
var canonicalUrl = document.querySelector("#canonicalurl").href;
var biggestSizeUrl = canonicalUrl + "/sizes/k/";
var secondBiggestSizeUrl = canonicalUrl + "/sizes/h/";
etes /
Last active July 7, 2024 11:29
How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.

These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.

Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following

#include <Windows.h>
#include "../../API/RainmeterAPI.h"
int nAccentState;
int nFlags;
int nColor;
int nAnimationId;
kkeybbs / chrome_flags.updated.js
Last active February 5, 2024 07:47
Backup chrome flags to json and restore the backup on another machine.
// 2022-04-03, tested with Chrome 99.0.4844.84 on MacBook Pro m1
Open chrome://flags/
F12 open developer console, swtich to tab "Console"
Paste below codes
- input backup() to download flags backup file
- input restore() to select one backup to restore
function saveFile(filename, data) {
abdurrahmanekr / gist:2747d704edec93a06e454eba2653e0df
Last active July 11, 2024 06:09
WhatsApp original chat background image

WhatsApp original chat background image

WhatsApp original darkmoda background image

nzec / README.MD
Last active May 31, 2024 02:02
DeezLoader Offical Page

Thanks to /u/zpoo32 for reporting several issues in this list!


  • deemix: just the cli and the library
  • deemix-pyweb: the app with a GUI
  • deemix-server: just the server part of deemix-pyweb
deyixtan /
Last active April 8, 2024 06:11
Sublime Text Patching Guide

Automated Patching

Download python script (supports multiple build) from this repository.


python <"sublime_text file path">

Manual Patching

// ==UserScript==
// @name EmuParadise Download Workaround - 1.1.1
// @version 1.1.2
// @description Replaces the download button link with a working one
// @author Eptun
// @match*/*/*
// @require
// @grant none
// ==/UserScript==