Skip to content

Instantly share code, notes, and snippets.

@smb1t
smb1t / license-badges.md
Created November 13, 2023 09:37 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@raahede
raahede / README.md
Last active October 13, 2023 14:32
Handle multiple GitHub accounts on Mac
@unascribed
unascribed / randomUUID.js
Last active October 5, 2023 11:35
A simple and readable way to generate valid v4 UUIDs in JavaScript. CC0 https://creativecommons.org/publicdomain/zero/1.0/
function randomUUID() {
return randhex(8) + "-" + randhex(4) + "-4" + randhex(3) + "-" + choice(["8", "9", "a", "b"]) + randhex(3) + "-" + randhex(12);
}
let scratchTarr = new Uint32Array(1);
function choice(arr) {
crypto.getRandomValues(scratchTarr);
return arr[Math.floor(scratchTarr[0]%arr.length)]
}
function randhex(count) {
crypto.getRandomValues(scratchTarr);
@f-steff
f-steff / excel formulas.md
Last active October 14, 2024 11:14
Excel formulas to calculate IP values such as Netmask, IP range start, IP range end, Broadcast IP, Number of hosts.

Excel formulas to calculate IP values - Works in Excel and Google Sheet.

Updated 2023-12-11: Hosts calculation updated to support CIDR or 31 and 32.

Prerequisites:

  • A1 contains an IP address, such as 10.0.0.2
  • B1 contains the number of bits in the netmask (CIDR) such as 24

The below formulas then go into C1, D1 etc. to perform the various calculations. Some calculations depends on other calculations.

@KiitoX
KiitoX / youtubemusicvolume.js
Last active March 14, 2024 12:19
More volume steps on youtube music
// ==UserScript==
// @name More volume steps on youtube music
// @version 1.0.5
// @author Emma
// @license WTFPL; do with this whatever you want
// @namespace https://github.com/KiitoX
// @updateURL https://gist.githubusercontent.com/KiitoX/38f8e4c1375939848a79cfa756fa32ef/raw/youtubemusicvolume.js
// @match https://music.youtube.com/*
// @grant none
// @run-at document-end
// ==UserScript==
// @name Youtube Still Watching
// @namespace https:github.com/cconard96
// @version 1.0.0
// @description Yes I'm still watching/listening. Updates the last activity variable to the current timestamp every 5 seconds to prevent those "Still watching?" popups that YouTube shows while watching some types of videos (music mainly).
// @author Curtis Conard
// @match *://www.youtube.com/*
// @grant none
// ==/UserScript==
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active November 16, 2024 12:34
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active November 14, 2024 06:21
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@Bl4ckSh4rk
Bl4ckSh4rk / Pokemon-3DS-Title-List.txt
Last active July 20, 2024 10:30
List of Pokémon titles for Nintendo 3DS
Pokémon 3DS Title List
==========================================================================
ALL REGIONS
MAIN GAMES
0004000000055D00 Pokémon X [EKJA]
0004000000055E00 Pokémon Y [EK2A]
000400000011C400 Pokémon Omega Ruby [ECRA]
000400000011C500 Pokémon Alpha Sapphire [ECLA]
0004000000164800 Pokémon Sun [BNDA]