Security Measure | Description | |
---|---|---|
☐ | Use HTTPS everywhere | Prevents basic eavesdropping and man-in-the-middle attacks |
☐ | Input validation and sanitization | Prevents XSS attacks by validating all user inputs |
☐ | Don't store sensitive data in the browser | No secrets in localStorage or client-side code |
☐ | CSRF protection | Implement anti-CSRF tokens for forms and state-changing requests |
☐ | Never expose API keys in frontend | API credentials should always remain server-side |
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 | |
# Define variables | |
REPO_PATH="" | |
PR_NUMBER="" | |
OLLAMA_API_URL="http://localhost:11434/api/generate" | |
OUTPUT_FILE="code_review_output.md" | |
MODEL="llama3.1:8b" | |
MAX_CONTEXT_LINES=20000 |
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
const Anthropic = require('@anthropic-ai/sdk'); | |
const path = require('path'); | |
const YAML = require('yaml'); | |
const fs = require('fs'); | |
// Initialize Anthropic SDK | |
const anthropic = new Anthropic({ | |
apiKey: process.env.ANTHROPIC_API_KEY, | |
}); |
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
from opendream import opendream | |
from opendream.layer import Layer, ImageLayer, MaskLayer | |
import openai | |
import os | |
import json | |
from PIL import Image, ImageEnhance, ImageFilter | |
import pilgram | |
@opendream.define_op |
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
https://imgur.com/a/XRYNGsV |
Do you want to try out this experimental (!) new lovelace UI stuff in Home Assistant but don't want to migrate your entire configuration? This script is here to help! It reads in your Home Assistant configuration (specifically the group:
section) and creates a matching ui-lovelace.yaml
file in your Home Assistant configuration folder (of course backing up any previous file at that path).
To use this script, you first need to have python and home assistant installed where you plan to run this script. Do so using virtual environments and the pip3 install -U homeassistant
command. Then copy below file to lovelace_migrate.py
(any location should work) and run:
python3 lovelace_migrate.py -c <PATH_TO_HASS_CONFIG_DIR>
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
// Add this code to your theme functions.php file or a custom plugin | |
add_filter( 'woocommerce_shipstation_export_custom_field_2', 'shipstation_custom_field_2' ); | |
function shipstation_custom_field_2() { | |
return '_meta_key'; // Replace this with the key of your custom field | |
} | |
// This is for custom field 3 | |
add_filter( 'woocommerce_shipstation_export_custom_field_3', 'shipstation_custom_field_3' ); |
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
body .et_pb_button:hover, .woocommerce a.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce a.button:hover, .woocommerce-page a.button:hover, .woocommerce button.button:hover, .woocommerce-page button.button:hover, .woocommerce input.button:hover, .woocommerce-page input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce-page #respond input#submit:hover, .woocommerce #content input.button:hover, .woocommerce-page #content input.button:hover { | |
color: #fff; | |
} | |
.woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce-page button.button.alt, .woocommerce input.button.alt, .woocommerc |
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
""" | |
Sensor for USPS packages. | |
For more details about this platform, please refer to the documentation at | |
https://home-assistant.io/components/sensor.usps/ | |
""" | |
from collections import defaultdict | |
import logging | |
from datetime import timedelta |
NewerOlder