Skip to content

Instantly share code, notes, and snippets.

@RandallFlagg
RandallFlagg / repo-rinse.sh
Created November 3, 2023 02:21 — forked from nicktoumpelis/repo-rinse.sh
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
@RandallFlagg
RandallFlagg / notepadplusplus_win11.reg
Created October 8, 2023 23:56 — forked from ChuckMichael/notepadplusplus_win11.reg
***/!\Not needed starting from Notepad++ v8.5.1/!\*** It adds "Edit with Notepad++" option to new context menu under Windows 11. Thanks to @AveYo!
Windows Registry Editor Version 5.00
; Edit with Notepad++ in Windows 11 contextmenu - by AveYo (https://gist.github.com/AveYo)
[-HKEY_CURRENT_USER\Software\Classes\*\shell\extract]
[HKEY_CURRENT_USER\Software\Classes\*\shell\extract]
"MuiVerb"="Edit with &Notepad++"
"Icon"="C:\\Program Files\\Notepad++\\notepad++.exe,0"
"MultiSelectModel"="Player"
"NeverDefault"=""
"AppliesTo"="NOT .zip"
@RandallFlagg
RandallFlagg / @import, import, require
Created April 22, 2018 22:25
@import, import, require - diffrences
@import is CSS/SASS syntax to include other files.
import is modern ES6 syntax to include modules.
require is AMD/CMD syntax currently used by Node.
@RandallFlagg
RandallFlagg / pnpm-debug.log
Created April 10, 2018 22:10
pnpm fails installing globally @adonisjs/cli
---
0 debug pnpm:package-json:
initial:
name: "pnpm-global-pkg"
private: true
version: "1.0.0"
1 debug pnpm:stage: "resolution_started"
2 debug pnpm:progress:
pkg:
name: "pnpm"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@RandallFlagg
RandallFlagg / saveAs.js
Created November 16, 2015 09:53 — forked from MrSwitch/saveAs.js
FileSaver window.saveAs shim
// window.saveAs
// Shims the saveAs method, using saveBlob in IE10.
// And for when Chrome and FireFox get round to implementing saveAs we have their vendor prefixes ready.
// But otherwise this creates a object URL resource and opens it on an anchor tag which contains the "download" attribute (Chrome)
// ... or opens it in a new tab (FireFox)
// @author Andrew Dodson
// @copyright MIT, BSD. Free to clone, modify and distribute for commercial and personal use.
window.saveAs || ( window.saveAs = (window.navigator.msSaveBlob ? function(b,n){ return window.navigator.msSaveBlob(b,n); } : false) || window.webkitSaveAs || window.mozSaveAs || window.msSaveAs || (function(){