View BlueIrisAI-NodeRedFunctionNode.js
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 {img, ...otherPayloadFields} = msg.payload; | |
const objectsToFilter = new Set([ | |
'ball', | |
'sports ball', | |
'horse', | |
'book', | |
'suitcase', | |
]); | |
let formattedObjectNames = 'Nothing'; |
View gist:e4d896da67677c302d235985eaa7770a
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
zigbee2mqtt: | |
container_name: zigbee2mqtt | |
restart: unless-stopped | |
image: koenkk/zigbee2mqtt:latest | |
volumes: | |
- /var/local/docker/zigbee2mqtt:/app/data | |
- /run/udev:/run/udev:ro | |
ports: | |
- 8080:8080 | |
environment: |
View slack-invite-link-security-issue.txt
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
We are writing to let you know about a bug we recently discovered and fixed in Slack's Shared Invite Link functionality. This | |
feature allows you to create a link that will permit anyone to join your Slack workspace; it is an alternative to inviting | |
people one-by-one via email to become workspace members. You are receiving this email because you created and/or revoked one | |
of these links for your workspace between April 17, 2017 and July 17, 2022. We'll go into detail about this security issue below. | |
Important things first, though: We have no reason to believe that anyone was able to obtain your plaintext password because | |
of this vulnerability. However, for the sake of caution, we have reset your Slack password. You will need to set a new Slack | |
password before you can login again. | |
Now, for some technical details — feel free to skip the next two paragraphs if that doesn't interest you. When you're |
View WithHovercard.tsx
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 React, {useEffect, useState} from 'react'; | |
import ReactDOM from 'react-dom'; | |
import {Placement} from '@popperjs/core'; | |
import useMouseOver from '../hooks/useMouseOver'; | |
import useLazyRef from '../hooks/useLazyRef'; | |
import {usePopper} from 'react-popper'; | |
type Props = Readonly<{ | |
children: React.ReactNode; |
View _common.conf
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
# /etc/nginx/snippets/wordpress/common.conf | |
index index.php; | |
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac). | |
location ~ /\. { | |
deny all; | |
} | |
# Block PHP files in uploads, content, and includes directory. | |
location ~* /(?:uploads|files|wp-content|wp-includes)/.*\.php$ { |
View gist:27b31f4f223ddeb110226b0f5ce78ce9
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
root@it01:/usr/local/src/wireguard-go# make | |
go build -v -o "wireguard-go" | |
Fetching https://golang.org/x/text?go-get=1 | |
Fetching https://golang.org/x/sys?go-get=1 | |
Fetching https://golang.org/x/net?go-get=1 | |
Fetching https://golang.org/x/crypto?go-get=1 | |
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200) | |
get "golang.org/x/crypto": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto?go-get=1 | |
Parsing meta tags from https://golang.org/x/text?go-get=1 (status code 200) | |
get "golang.org/x/text": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text?go-get=1 |
View ProcessExtensions.cs
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
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace Daniel15.Extensions | |
{ | |
/// <summary> | |
/// Extensions for <see cref="Process"/> | |
/// </summary> |
View npm-output.txt
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
npm info it worked if it ends with ok | |
npm verb cli [ '/usr/bin/node', | |
npm verb cli '/usr/local/bin/npm', | |
npm verb cli 'install', | |
npm verb cli '--loglevel', | |
npm verb cli 'verbose' ] | |
npm info using npm@6.9.0 | |
npm info using node@v10.15.2 | |
npm verb npm-session cad68cd73009e571 | |
npm info lifecycle sitename@0.0.0~preinstall: sitename@0.0.0 |
View gist:c8c31b9e46d8c2eea6385d7dd1ba6c40
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
Microsoft (R) Windows Debugger Version 10.0.14321.1024 AMD64 | |
Copyright (c) Microsoft Corporation. All rights reserved. | |
CommandLine: "C:\Users\danlo\Dropbox (Personal)\src\gpgme-sharp\Examples\PgpEncryptDecrypt\bin\Debug\net40\PgpEncryptDecrypt.exe" | |
Symbol search path is: srv* | |
Executable search path is: | |
ModLoad: 00000000`00070000 00000000`00078000 PgpEncryptDecrypt.exe | |
ModLoad: 00007ffb`d88c0000 00007ffb`d8aad000 ntdll.dll | |
ModLoad: 00000000`774a0000 00000000`7763c000 ntdll.dll |
View log.txt
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
GPGME 2019-02-04 23:24:27 <0x48bc> gpgme_debug: level=9 | |
GPGME 2019-02-04 23:24:27 <0x48bc> gpgme_debug: gpgme='C:\Program Files (x86)\GnuPG\bin' | |
GPGME 2019-02-04 23:24:27 <0x48bc> gpgme_check_version: call: 0=00000000, req_version=(null), VERSION=1.12.1-beta43 | |
GPGME 2019-02-04 23:24:27 <0x48bc> gpgme_new: enter: r_ctx=02D7E194 | |
GPGME 2019-02-04 23:24:27 <0x48bc> gpgme-dinfo: gpgconf='C:\Program Files (x86)\GnuPG\bin\gpgconf.exe' | |
GPGME 2019-02-04 23:24:27 <0x48bc> _gpgme_io_pipe: enter: filedes=02D7DB7C, inherit_idx=1 (GPGME uses it for reading) | |
GPGME 2019-02-04 23:24:27 <0x48bc> _gpgme_io_pipe: leave: read=0x0 (hdd=039F3740,hd=000003C0), write=0x1 (hdd=039F4AF8,hd=000003C8) | |
GPGME 2019-02-04 23:24:27 <0x48bc> _gpgme_io_spawn: enter: path=039F4AC0, path=C:\Program Files (x86)\GnuPG\bin\gpgconf.exe | |
GPGME 2019-02-04 23:24:27 <0x48bc> _gpgme_io_spawn: check: path=039F4AC0, argv[ 0] = C:\Program Files (x86)\GnuPG\bin\gpgconf.exe | |
GPGME 2019-02-04 23:24:27 <0x48bc> _gpgme_io_spawn: check: path=039F |
NewerOlder