Skip to content

Instantly share code, notes, and snippets.

View jeremyjohn's full-sized avatar
🦕

Jeremy John jeremyjohn

🦕
View GitHub Profile
@en0ndev
en0ndev / visualstudio_contextmenu.md
Last active October 13, 2025 17:27
REMOVE "OPEN IN VISUAL STUDIO" IN THE CONTEXT MENU

How to Remove "Open in Visual Studio" in the Context Menu

Also you can watch the video.
https://www.youtube.com/watch?v=8S7s-p_enSY


STEP 1

  • Press Win+S keys, and search regedit then open Regedit (Registry Editor).

STEP 2

@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active November 2, 2025 21:11
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01
@tehmoon
tehmoon / iptables-reload.sh
Last active November 24, 2024 11:38
IPtables and docker reload!
#!/bin/sh
set -e
## SEE https://medium.com/@ebuschini/iptables-and-docker-95e2496f0b45
## You need to add rules in DOCKER-BLOCK AND INPUT for traffic that does not go to a container.
## You only need to add one rule if the traffic goes to the container
CWD=$(cd "$(dirname "${0}")"; pwd -P)
FILE="${CWD}/$(basename "${0}")"
@piotron
piotron / m3u8_download.md
Created September 1, 2018 09:09
How to easily download m3u8 and ts video movie streams with Docker

Docker Downloading

Download it from Docker (Isn't it obvious?)

Locate m3u8 file url

You want to downlad something right?

Run below snipper

docker run -v $PWD:/tmp/workdir --rm  jrottenberg/ffmpeg -user_agent "<UserAgent string>" -i <M3U8_URI> -c copy <FILENAME>.mkv
@ve3
ve3 / Encryption.js
Last active August 10, 2023 10:51
Encrypt and decrypt between programming languages (PHP & JavaScript). (Newer version here https://gist.github.com/ve3/b16b2dfdceb0e4e24ecd9b9078042197 )
/**
* Encryption class for encrypt/decrypt that works between programming languages.
*
* @author Vee Winch.
* @link https://stackoverflow.com/questions/41222162/encrypt-in-php-openssl-and-decrypt-in-javascript-cryptojs Reference.
* @link https://github.com/brix/crypto-js/releases crypto-js.js can be download from here.
*/
class Encryption {
@thefangbear
thefangbear / hing-dos.md
Created April 5, 2016 04:11
hping DoS guide

Fun Begins: So if u wanna flood the IP x.x.x.x with ping requests originating from IP y.y.y.y type

hping3 -1 --flood -a y.y.y.y x.x.x.x

Similarly if u wanna flood the IP x.x.x.x on port 80 with SYN requests from fake IP y.y.y.y, type

hping3 -S -a y.y.y.y --flood -p 80 x.x.x.x

This will send multiple SYN requests to port 80(http) and the victim will reply with SYN+ACK, now since the IP y.y.y.y is fake hence the connection will never establish, thus exhausting the victims bandwidth and resources.

BY DEFAULT hping3 attacks on TCP ports, to change it to UDP just use -2 option.

@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active September 29, 2025 18:11
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
@cauerego
cauerego / IndexedDB101.js
Last active January 13, 2023 22:00 — forked from JamesMessinger/IndexedDB101.js
Very Simple IndexedDB Example
// quite untested, adapted from BigstickCarpet's gist, attempt to make it simpler to use
function openIndexedDB (fileindex) {
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
var openDB = indexedDB.open("MyDatabase", 1);
openDB.onupgradeneeded = function() {
var db = {}
@zkiraly
zkiraly / procedure-to-archive-git-branches.md
Last active May 2, 2025 19:47
Procedure to archive git branches.
@tonyhb
tonyhb / main.go
Created June 20, 2013 00:19
Golang: Converting a struct to a map (to a url.Values string map)
package main
import (
"fmt"
"net/url"
"reflect"
"strconv"
)
type Person struct {