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
#!/usr/bin/env bash | |
# Abort sign off on any error | |
set -e | |
# Start the benchmark timer | |
SECONDS=0 | |
# Repository introspection | |
OWNER=$(gh repo view --json owner --jq .owner.login) |
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
git config --global alias.rando '!sh -c "git add -A && git commit -m \"$(curl -s https://whatthecommit.com/index.txt)\" && git push"' |
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
$ grep -P "^[ABCDEFabcdefOoIi]{6,6}$" /usr/share/dict/words | tr 'OoIi' '0011' | tr '[:lower:]' '[:upper:]' | awk '{print "#" $0}' | |
#ACAD1A | |
#B0BB1E | |
#DEBB1E | |
#AB1DED | |
#ACAC1A | |
#ACCEDE | |
#AC1D1C | |
#BAB1ED | |
#BA0BAB |
This is the contents of the KeyValueStore
table in MediaAnalysis/mediaanalysis.db
on my iPhone.
id | key | value |
---|---|---|
2595488 | FaceAnalysisVersion | 11 |
2595489 | LatestFaceAnalysisVersionTimestamp | 658412515 |
2595494 | EmbeddingAnalysisVersion | 6 |
2595495 | LatestEmbeddingAnalysisVersionTimestamp | 658412515 |
3025301 | FaceAnalysisCompleteTimestamp | 664464796 |
3095768 | TotalTimeRunningWithoutPendingAnalysisInLatestVersion | 15571 |
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
{ | |
"batch_name": "StableFun", | |
"outdir": "/content/drive/MyDrive/AI/StableDiffusion/2022-08/StableFun/", | |
"save_grid": false, | |
"save_settings": true, | |
"save_samples": true, | |
"display_samples": true, | |
"n_samples": 1, | |
"W": 768, | |
"H": 512, |
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# Ultimate Resource List
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
wget https://dl.minio.io/server/minio/release/linux-amd64/minio | |
chmod +x minio | |
sudo ./minio server /minio | |
wget https://dl.minio.io/client/mc/release/linux-amd64/mc | |
chmod +x mc | |
./mc config host add minio http://127.0.0.1:9000 Access_key Secret_key | |
sudo ln -s /home/jc/Downloads/mc /usr/bin/mc | |
sudo ln -s /home/jc/Downloads/minio /usr/bin/minio | |
#### create systemd minio #### |
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
// ==UserScript== | |
// @name Add Saved Items to Cart | |
// @namespace https://gist.github.com/beporter/ce76204bcba35d9edb66b395bb5e9305 | |
// @version 0.5 | |
// @description Repeatedly refresh a given "saved items" page (Amazon, Walmart, BestBuy), look for specific "Add to Cart" buttons, click them if present, and make a lot of noise on success. | |
// @author https://github.com/beporter | |
// @match https://www.amazon.com/gp/registry/wishlist/* | |
// @match https://www.amazon.com/hz/wishlist/ls/* | |
// @match https://www.bestbuy.com/cart | |
// @match https://www.bestbuy.com/site/customer/lists/manage/saveditems |
NewerOlder