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 | |
command -v kdeconnect-cli >/dev/null 2>&1 || { echo >&2 "kdeconnect is not installed. Aborting."; exit 1; } | |
if [ $# -eq 0 ]; then | |
echo "Usage: $0 <message>" | |
exit 1 | |
fi | |
device=`kdeconnect-cli -a --id-only 2>/dev/null | head` |
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
// 1. Open: chrome://settings/passwords | |
// 2. Open Chrome developer tools (using F12 or Ctrl+Shift+i). | |
// 3. Run the following code in the console tab. | |
// 4. Copy output in a text file and save it somewhere safe! | |
;(() => { | |
const asyncForEach = (array, done, iterator) => { | |
let i = 0 | |
let next = err => { | |
if (err) { | |
done(err) |
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
const IFRAME_READY_MESSAGE = "IFRAME_READY"; | |
export default { | |
id: null, | |
$el: null, | |
iframeBaseUrl: null, | |
targetDocument: document, | |
style:{'position':'fixed', 'top': '0', 'right':'20px', 'width':'300px', 'height':'400px'}, | |
/*** | |
* {id: '', url: '', iframeBaseUrl:'' , style:{}, targetDocument: null} | |
*/ |
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
// Tracking cursor position in real-time without JavaScript | |
// Demo: https://twitter.com/davywtf/status/1124146339259002881 | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"strings" | |
) |