- Save
user-authentication.jsto<node-red>/user-authentication.js. - Add the following line to
setting.js:
| Qualys Security Advisory | |
| Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156) | |
| ======================================================================== | |
| Contents | |
| ======================================================================== |
user-authentication.js to <node-red>/user-authentication.js.setting.js:
| #-*- coding: utf-8 -*- | |
| import subprocess | |
| if __name__ == '__main__': | |
| ps = subprocess.Popen(['nodejs','ps2.js'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) | |
| out = ps.communicate(input='http://www.daum.net'.encode())[0] | |
| print(out.decode('utf-8')) |
| import { initExplorer } from 'tuiuiu-client'; | |
| /** | |
| * Admin JS entry point. Add in here code to run once the page is loaded. | |
| */ | |
| document.addEventListener('DOMContentLoaded', () => { | |
| const explorerNode = document.querySelector('[data-explorer-menu]'); | |
| const toggleNode = document.querySelector('[data-explorer-start-page]'); | |
| if (explorerNode && toggleNode) { |
| import boto3 | |
| import pprint | |
| """ | |
| Create .env file | |
| $ vim .env | |
| ------------------ | |
| access_key=xxxxxx | |
| secret_key=xxxxxx |
Note to self, here’s a quick recipe for creating a Virtual Machine using the VirtualBox command line,
Create the VM,
VBoxManage createvm --name "io" --register
VBoxManage modifyvm "io" --memory 512 --acpi on --boot1 dvd
VBoxManage modifyvm "io" --nic1 bridged --bridgeadapter1 eth0| #!/bin/bash | |
| # <UDF name="hostname" label="The hostname for the new Linode" example="apps"> | |
| # <UDF name="fqdn" label="The new Linode's Fully Qualified Domain Name" example="apps.example.com"> | |
| # <UDF name="adminuser" label="Username for new admin user (cannot be dokku)"> | |
| # <UDF name="adminpass" label="Password for new admin user"> | |
| # <UDF name="adminkey" label="SSH public key authorized for admin user (password SSH auth will be disabled)"> | |
| # <UDF name="dokkukey" label="SSH public key authorized for dokku user (used when deploying apps)"> | |
| # Turn off password authentication and root login for SSH |
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.