Skip to content

Instantly share code, notes, and snippets.

@jonschlinkert
jonschlinkert / markdown-cheatsheet.md
Last active April 11, 2024 04:45
A better markdown cheatsheet.
@AlcaDesign
AlcaDesign / index.html
Last active November 16, 2023 17:14
[OUTDATED] An almost complete tmi.js example (browser)
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Chat</title>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
<link href="style.css" rel="stylesheet" type="text/css">
<script src="https://d2g2wobxbkulb1.cloudfront.net/0.0.19/tmi.js"></script> <!--For developement-->
<!--<script src="https://d2g2wobxbkulb1.cloudfront.net/0.0.19/tmi.min.js"></script>--> <!--For "production"-->
</head>
@nweldev
nweldev / nodejs_installer.ps1
Last active April 25, 2023 10:40
Powershell script installing nodejs (with git) and some npm packages
write-host "`n ## NODEJS INSTALLER ## `n"
### CONFIGURATION
# nodejs
$version = "4.4.7-x64"
$url = "https://nodejs.org/dist/latest-v4.x/node-v$version.msi"
# git
$git_version = "2.9.2"
@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]
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active July 20, 2024 14:39
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).

@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active July 18, 2024 22:51
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 !

// ==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==
@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
@f-steff
f-steff / excel formulas.md
Last active June 28, 2024 08:01
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.

@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);