This file contains hidden or 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
| tap "anomalyco/tap" | |
| tap "arthur-ficial/tap" | |
| tap "d12frosted/emacs-plus" | |
| tap "domt4/autoupdate" | |
| tap "jurplel/tap" | |
| tap "mczachurski/wallpapper" | |
| # Vector graphics library with cross-device output support | |
| brew "cairo" | |
| # LCS based diff highlighting tool to ease code review from your terminal | |
| brew "diffr" |
This file contains hidden or 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
| // Simultaneously close for a few seconds, then open multiple relays to simulate an "open door" button press | |
| const relays = [0, 1]; | |
| for (const relayID of relays) { | |
| // https://shelly-api-docs.shelly.cloud/gen2/ComponentsAndServices/Switch/#switchset | |
| Shelly.call("Switch.Set", { | |
| id: relayID, | |
| on: true, | |
| toggle_after: 5, // turn off after 5 sec |
This file contains hidden or 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 sleep = s => new Promise(r => setTimeout(r, s*1000)); |
This file contains hidden or 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"> | |
| <link | |
| rel="stylesheet" | |
| href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" | |
| /> | |
| <style> | |
| body { |
This file contains hidden or 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
| nmap --open -v -p 22 192.168.0.1-64 | grep Discovered |
This file contains hidden or 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
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "Mocha All", |
This file contains hidden or 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
| // dummy callback func; randomly calls success or failure callback after 1 sec | |
| const myFunc = (a, b, callback) => { | |
| setTimeout(() => | |
| Math.random() > 0.5 ? callback(null, 'success!') : callback('fail :('), | |
| 1000) | |
| } | |
| // test the dummy func | |
| myFunc('foo', 'bar', (err, res) => { | |
| if (err) { |
This file contains hidden or 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 subtitles = {} // replace with subtitles content | |
| subtitles.events.map(ev => ev.segs[0].utf8.replace('\n', ' ')).join(' ') |
This file contains hidden or 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 lang="en"> <!-- necessary to define language here to get English hyphenation --> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| :root { | |
| --article-padding: 1.5em; | |
| } | |
| html { |
NewerOlder