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
{ | |
"name": "b_SYgl6ww", | |
"type": "registry:block", | |
"dependencies": [], | |
"devDependencies": [], | |
"registryDependencies": [], | |
"files": [ | |
{ | |
"path": "components/retro-hero.tsx", | |
"type": "registry:block", |
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
#!/bin/bash | |
yum update -y | |
yum install -y httpd | |
systemctl start httpd | |
systemctl enable httpd | |
EC2AZ=$(TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600") \ | |
&& curl -H "X-aws-ec2-metadata-token: $TOKEN" -v http://169.254.169.254/latest/meta-data/placement/availability-zone) | |
echo "<body style='background-color:#2c3e50; color:#ffffff'><h1>Deployed via AWS</h1><br><h2>Availability Zone: $EC2AZ</h2> </body>" > /var/www/html/index.html |
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
// Plugin to add each Tailwind color as a global CSS variable | |
function addVariablesForColors({ addBase, theme }: any) { | |
const allColors = flattenColorPalette(theme('colors')); | |
const newVars = Object.fromEntries( | |
Object.entries(allColors).map(([key, value]) => [`--${key}`, value]) | |
); | |
addBase({ | |
':root': newVars, | |
}); |
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
{ | |
"stateless": { | |
"prefix": "fless", | |
"body": [ | |
"import 'package:flutter/material.dart';", | |
"class $1 extends StatelessWidget {", | |
"\t@override", | |
"\tWidget build(BuildContext context) {", | |
"\t\treturn Container(", | |
"\t\t\t$2", |