This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install ADB: | |
On void Linux(other distros might have a different package name) | |
xi android-tools | |
xi android-udev | |
sudo usermod -aG plugdev $LOGNAME | |
sudo reboot now #This will reboot the machine | |
All the shell commands can be run from within the shell by logging into the shell and ommiting the adb shell from the begining: | |
List all android devices connectes to the machine running the adb: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#TODO: Fix documentation | |
#TODO: Add an option for RW/RO | |
#TODO: Add tests to make sure there are no errors | |
# https://stackoverflow.com/questions/22009364/is-there-a-try-catch-command-in-bash | |
# https://stackoverflow.com/questions/15656492/writing-try-catch-finally-in-shell | |
# https://mywiki.wooledge.org/BashFAQ/105 | |
#TODO: Select nbd device alone | |
#TODO: Translate this python code into bash: https://github.com/rhyven/MountNBD/blob/master/MountNBD.py |