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 appId = [[PINPOINT_APPLICATION_ID]]; | |
const destination = [[YOUR_PHONE_NUMBER]]; | |
const { Pinpoint } = require('aws-sdk'); | |
const pinpoint = new Pinpoint(); | |
const payloadFn = (appId, destination, message) => { | |
const ApplicationId = appId; | |
const Addresses = {}; |
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
no-resolv | |
no-poll | |
address=/.dev/127.0.0.1 | |
strict-order | |
## dns.watch | |
server=84.200.69.80 | |
server=84.200.70.40 | |
## German Privacy Foundation |
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 struct | |
import time | |
import board | |
import displayio | |
import rtc | |
import socketpool | |
import terminalio | |
import wifi | |
from adafruit_display_text import label |
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
$3=2 | |
$10=115 | |
$32=1 | |
$100=800.000 | |
$101=800.000 | |
$102=800.000 | |
$110=1500.000 | |
$111=1500.000 | |
$112=1200.000 | |
$120=300.000 |
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
IMPORTANT: this is outdated, go to https://github.com/netroy/Lockets | |
"npm install socket-io" & you are ready to go |
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
"use strict"; | |
const { promisify } = require('util'); | |
const { resolveCname } = require('dns'); | |
const resolveCnameAsync = promisify(resolveCname); | |
let resultCache = null; | |
const deferClearCache = () => setTimeout(() => { resultCache = null }, 1000); | |
const resolve = async () => { |
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
var exporter = requirejs.s.contexts._.defined["backend/export"] | |
exporter.fetchAllTheData() | |
.fail(e => console.log("error", e)) | |
.done(data => { | |
var link = exporter.getBlobLink(data) | |
document.body.appendChild(link) | |
link.click() | |
}) |
To test this,
- setup Vue prototyping tools
yarn global add @vue/cli @vue/cli-service-global
, ornpm install -g @vue/cli @vue/cli-service-global
- run
vue serve TestDarkMode.vue
- open http://localhost:8080/
- profit???
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
var cluster = require('cluster'), | |
app = require('./app'); | |
var workers = {}, | |
count = require('os').cpus().length; | |
function spawn(){ | |
var worker = cluster.fork(); | |
workers[worker.pid] = worker; | |
return worker; |
NewerOlder