- Detect secrets in code
- Identify secrets committed to version control
- Flag hardcoded credentials
- Identify missing authentication checks
- Detect improper authorization patterns
# Project Policy | |
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices. | |
# 1. Introduction | |
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities. | |
## 1.1 Actors |
function deleteSavedItems() { | |
var query = document.querySelectorAll("#sc-saved-cart input[value=Delete]") | |
if (query.length) { | |
query[0].click(); | |
} | |
if (query.length > 1) { | |
setTimeout(deleteSavedItems,100); | |
} | |
else { | |
console.log('Finished'); |
import transformers | |
model_name = 'Intel/neural-chat-7b-v3-1' | |
model = transformers.AutoModelForCausalLM.from_pretrained(model_name) | |
tokenizer = transformers.AutoTokenizer.from_pretrained(model_name) | |
def generate_response(system_input, user_input): | |
# Format the input using the provided template |
import transformers | |
model_name = 'Intel/neural-chat-7b-v3-1' | |
model = transformers.AutoModelForCausalLM.from_pretrained(model_name) | |
tokenizer = transformers.AutoTokenizer.from_pretrained(model_name) | |
def generate_response(system_input, user_input): | |
# Format the input using the provided template |
!pip install transformers optimum | |
!pip install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ | |
from transformers import AutoModelForCausalLM, AutoTokenizer | |
model_name_or_path = "TheBloke/zephyr-7B-beta-GPTQ" | |
model = AutoModelForCausalLM.from_pretrained(model_name_or_path, | |
device_map="auto", | |
trust_remote_code=False, |
#!/bin/sh | |
set -x | |
NAME=thingy | |
MIRROR=ftp.at.debian.org/debian | |
tmpdir=$(mktemp -p "${TMPDIR:-/tmp/}" -d $NAME-XXXX) || exit 1 | |
#tmpdir=/tmp/thingy | |
#mkdir -p "$tmpdir" |
// gcc aml-upgrade-package-extract.c -o aml-upgrade-package-extract | |
// ./aml-upgrade-package-extract update-usb-burning-mode.img | |
// /dev/sdX - fat32 sdcard | |
// Make bootable Android update: | |
// dd if=aml_sdc_burn.UBOOT bs=1 count=442 of=/dev/sdX | |
// dd if=aml_sdc_burn.UBOOT seek=1 skip=1 bs=512 of=/dev/sdX | |
// sync |