Rough procedure to force sign/issue a CA signed certificate that is tied to a TPM's public key.
This procedure uses the -force_pubkey key parameter for openssl
| # | |
| # fair-queue based settings for EdgeRouter Lite traffic shaping | |
| # | |
| # download is typically 30 and change. everything can burst to 100% | |
| # of bandwidth, priority rules keep the garbage in check | |
| set traffic-policy shaper download | |
| set traffic-policy shaper download bandwidth 30Mbit |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>WebGPU Compute Shader Example</title> | |
| </head> | |
| <body> | |
| <h1>WebGPU Compute Shader Example</h1> | |
| <p id="output"></p> | |
| <script type="module"> |
| def csv_to_db(reqest): | |
| import csv | |
| from .models import Movie | |
| # باز کردن فایل CSV | |
| with open('C:\\Users\pooladpoor\Desktop\imdb_top_1000_edit.csv', mode='r', encoding='utf-8') as file: | |
| # ایجاد یک reader برای خواندن فایل | |
| csv_reader = csv.reader(file) | |
| next(csv_reader) |
| ##################################################################################################################### | |
| # Script to disable unnecesary Windows services and improve the performance. | |
| # | |
| # This use the command Set-Service, you can check the below link for more information | |
| # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-7 | |
| # | |
| # You should check what service you want to disable, like Windows defender, Windows Search | |
| # or Seclogon (necesary for some programs or games). | |
| # Some services were removed in Windows 10. | |
| ##################################################################################################################### |
| /* | |
| ██████ ██████ ██████ ██ ██ ██████ ██████ ██████ ██ ██ ██████ ███████ ██ ██ | |
| ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ | |
| ██ ██ ██ ██ ██ █████ ██████ ██ ██ ██ ██ █████ ██ ██ █████ ██ ██ | |
| ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ | |
| ██████ ██████ ██████ ██ ██ ██████ ██████ ██████ ██ ██ ██ ██████ ███████ ████ | |
| Find any smart contract, and build your project faster: https://www.cookbook.dev | |
| Twitter: https://twitter.com/cookbook_dev |
| # Colours | |
| git config --global color.status auto | |
| git config --global color.branch auto | |
| git config --global color.diff auto | |
| # Short-hand aliases | |
| git config --global alias.st status | |
| git config --global alias.ci commit | |
| git config --global alias.co checkout | |
| git config --global alias.br branch |
| #!/bin/bash | |
| rev="12" | |
| _log(){ | |
| echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log | |
| } | |
| _log_para(){ | |
| echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log |
Rough procedure to force sign/issue a CA signed certificate that is tied to a TPM's public key.
This procedure uses the -force_pubkey key parameter for openssl
| # calculate mean and std deviation | |
| from pathlib import Path | |
| import cv2 | |
| imageFilesDir = Path(r'C:\your\dataset\dir\here\trainData') | |
| files = list(imageFilesDir.rglob('*.png')) | |
| # Since the std can't be calculated by simply finding it for each image and averaging like | |
| # the mean can be, to get the std we first calculate the overall mean in a first run then |
| ent_fire prop_paint_bomb addoutput "painttype 3" |