Its unfortunately extremely common for customers and enterprises operating in AWS to have chosen a workload/storage bearing account (more than likely, the main production account) as the Organization Management Account (formerly known Organization "Master" account, before AWS adopted better naming).
Many customers and companies operating in AWS made this decision in 2018 or so and its unforunately not something that can be easily changes as of today (2024). Many customers have requests to AWS to make a friendly path for rehoming the Org Management account but last I heard it is still not prioritized. Thus, we as customers are left to go through the nerve-wracking, if not dangerous process of migrating to a new AWS Organization in order to align with modern best practices and reduce common privilege escalation and account to account lateral movement concerns (made worse if you happen to have enabled things like Cloudformation Stacksets, Control Tower, or other powerful services in the s
Discover gists
# This hosts file is brought to you by Dan Pollock and can be found at | |
# http://someonewhocares.org/hosts/ | |
# You are free to copy and distribute this file for non-commercial uses, | |
# as long the original URL and attribution is included. | |
#<localhost> | |
127.0.0.1 localhost | |
127.0.0.1 localhost.localdomain | |
255.255.255.255 broadcasthost | |
::1 localhost |
Assuming your have already set up your NextJS + Tailwind project,
1. Select your desired custom Google font
blueprint: | |
name: Link Multiple Switches | |
description: | | |
## Link multiple switches together v1.0.1 | |
Select multiple switch entities to link their on/off state. If any selected switch entity is turned on or off, the other selected entities will be sent a matching on or off command. | |
Requires Home Assistant 2022.5.0 or newer. | |
Credit to @adchevrier for the initial blueprint: https://community.home-assistant.io/t/synchronize-the-on-off-state-of-2-entities/259010 | |
Credit to @Hebus for this fantastic template: https://community.home-assistant.io/t/synchronize-the-on-off-state-of-2-entities/259010/38 |
UPDATE: looks like Umbrel app store updated their version of the Ordinals app. Using that app is much easier, but this guide can still be a useful insight into how Umbrel runs applciations using Docker.
This is a great guide on setting up using the ordinals app on Umbrel app store. https://twitter.com/i/bookmarks?post_id=1779884506486276534
Documenting the process of how I got my Umbrel up and running w/ ord
in case this can help anybody.
A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!
If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button . If you can't find that one, you likely have a PC that has been upgraded to Windows 8/8.1/10/11 from Windows 8.1/8/7/Vista/XP and other ones. If you have one of those, refer the Windows key button to as yours. A list of them is below:
import "dotenv/config"; | |
import { dot, norm, add, subtract } from "mathjs"; | |
import OpenAI from "openai"; | |
const openai = new OpenAI({ apiKey: process.env.OPENAI_KEY }); | |
function cosineSimilarity(array1, array2) { | |
const dotProduct = dot(array1, array2); | |
const normA = norm(array1); | |
const normB = norm(array2); | |
const cosineSimilarity = dotProduct / (normA * normB); |
// GetFreePort asks the kernel for a free open port that is ready to use. | |
func GetFreePort() (port int, err error) { | |
var a *net.TCPAddr | |
if a, err = net.ResolveTCPAddr("tcp", "localhost:0"); err == nil { | |
var l *net.TCPListener | |
if l, err = net.ListenTCP("tcp", a); err == nil { | |
defer l.Close() | |
return l.Addr().(*net.TCPAddr).Port, nil | |
} | |
} |
import { useEffect, useState } from "react"; | |
const defaultEvents = [ | |
"mousemove", | |
"mousedown", | |
"touchstart", | |
"keydown", | |
"wheel", | |
"resize", | |
]; |
git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
git config --global alias.s status --short
git config --global alias.s status -sb