Skip to content

Instantly share code, notes, and snippets.

398 update-ca-trust force-enable
401 update-ca-trust extract
403 openssl s_client -showcerts -connect github.com:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >mycertfile.pem
405 cp mycertfile.pem /etc/pki/ca-trust/source/anchors/
406 update-ca-trust extract
@anhnvme
anhnvme / dumprequest.php
Created December 20, 2018 01:39 — forked from magnetikonline/dumprequest.php
PHP script to dump full HTTP request to file (method, HTTP headers and body).
<?php
// https://gist.github.com/magnetikonline/650e30e485c0f91f2f40
class DumpHTTPRequestToFile {
public function execute($targetFile) {
$data = sprintf(
"%s %s %s\n\nHTTP headers:\n",
$_SERVER['REQUEST_METHOD'],
@anhnvme
anhnvme / veeambackup_notify.ps1
Last active December 14, 2024 08:57
veeambackup_notify.ps1
# Định nghĩa thông tin Telegram Bot và Chat ID
$botToken = "724315259:AAE5uwl-jtqSR620E-cjJ3I9kgDBdZqhg3M" # Thay thế bằng token của bot bạn
$chatId = "-1002178510123" # Thay thế bằng chat ID của bạn (hoặc nhóm)
# Hàm gửi tin nhắn đến Telegram
function Send-TelegramMessage {
param (
[string]$message
)