User contributions
Jump to navigation
Jump to search
- 18:05, 10 April 2024 diff hist +76 Lxd expand default storage current
- 18:03, 10 April 2024 diff hist +77 Zfs resize disk
- 17:36, 10 April 2024 diff hist +757 N Lxd expand default storage Created page with "``` Assumptions: 1) One zfs pool called ‘default’ that lives on the hard drive at /var/lib/lxd/disks/default.img. 2) Running as root. 3) Growing pool ‘default’ from 25..."
- 17:30, 10 April 2024 diff hist +127 Microceph Troubleshooting current
- 16:45, 10 April 2024 diff hist +34 Microceph Troubleshooting
- 16:45, 10 April 2024 diff hist +91 Microceph Troubleshooting
- 16:30, 10 April 2024 diff hist +2,143 N Microceph Troubleshooting Created page with "If a Ceph OSD (Object Storage Daemon) is reported as down while the cluster node itself is still up, there could be several potential reasons for this issue. Here are some com..."
- 20:52, 8 April 2024 diff hist +612 N Smtpd server python Created page with "``` import asyncore from smtpd import SMTPServer class MySMTPServer(SMTPServer): def process_message(self, peer, mailfrom, rcpttos, data): print(f"Received messa..." current
- 19:31, 8 April 2024 diff hist +300 N F5 backup config script Created page with "``` #!/bin/bash set -eu hosts=" myhost.example.com " ts=`date +%Y-%m-%d_%H-%M-%S` for host in ${hosts[@]}; do echo $host mkdir -p bkp sshpass -p ${USERPASS} ssh ${USER..." current
- 18:06, 8 April 2024 diff hist +955 N Email python 2 Created page with "``` import smtplib from email.mime.text import MIMEText SMTP_SERVER = 'localhost' # SMTP server address (echo server running on localhost) SMTP_PORT = 1025 # Port used by t..." current
- 15:49, 8 April 2024 diff hist +1,554 N Labstack gorm example 1 Created page with "``` package main import ( "github.com/google/uuid" "github.com/labstack/echo/v4" "gorm.io/driver/sqlite" "gorm.io/gorm" ) var db *gorm.DB type Page struct {..." current
- 15:32, 8 April 2024 diff hist +714 N Email python simple Created page with "``` import smtplib # SMTP server details SMTP_SERVER = 'smtp.example.com' SMTP_PORT = 25 # Sender and recipient details FROM = 'sender@example.com' TO = 'recipient@example.c..." current
- 16:46, 6 April 2024 diff hist +138 Wordpress Plugins current
- 16:01, 6 April 2024 diff hist +168 N Image conversion Created page with "# ImageMagick ``` sudo apt install imagemagick convert input.png -resize 800x600 output.png convert "$input_png" -define icon:auto-resize=64,48,32,16 "$output_ico" ```" current
- 21:26, 5 April 2024 diff hist +149 Tshark
- 21:07, 5 April 2024 diff hist +65 Tshark
- 20:30, 5 April 2024 diff hist +640 N Kusto queries FD Created page with "Front Door Query '``` AzureDiagnostics | where hostName_s == "<my FQDN of URI>" and requestUri_s hasprefix "https://<$FQDN>:443/my-app-path" | where TimeGenerated between (dat..." current
- 14:49, 5 April 2024 diff hist +105 Tshark
- 14:40, 5 April 2024 diff hist +754 Tshark
- 14:39, 5 April 2024 diff hist +126 Tshark
- 14:36, 5 April 2024 diff hist +406 Tshark
- 12:56, 5 April 2024 diff hist +49 Wordpress Plugins
- 12:55, 5 April 2024 diff hist +35 Wordpress Plugins
- 02:27, 4 April 2024 diff hist +90 Nginx geo ip restrict current
- 02:26, 4 April 2024 diff hist +100 N Nginx geo ip restrict Created page with "https://shashanksrivastava.medium.com/block-a-website-in-specific-countries-using-nginx-20a651288795"
- 16:02, 3 April 2024 diff hist +34 N Radar for tech Created page with "https://www.thoughtworks.com/radar" current
- 16:36, 2 April 2024 diff hist +257 N F5 notes1 Created page with "``` # when HTTP_RESPONSE { # set client [IP::client_addr]:[TCP::client_port] # set benode [IP::server_addr]:[TCP::server_port] # set benodeResp [HTTP::status] # l..." current
- 20:27, 1 April 2024 diff hist +381 N Agw queries Created page with "# Sum all client_ips ``` AzureDiagnostics | where ResourceType == "APPLICATIONGATEWAYS" and OperationName == "ApplicationGatewayAccess" and host_s == "<app service or bff doma..." current
- 18:45, 1 April 2024 diff hist +66 Nginx access gateway current
- 18:44, 1 April 2024 diff hist -58 Nginx access gateway
- 18:44, 1 April 2024 diff hist +733 N Nginx access gateway Created page with "``` error_log /dev/stdout info; # error_log stderr; worker_processes 1; daemon off; pid /tmp/nginx.pid; events { } http { access_log /dev/stdout; upstream backend_serv..."
- 00:18, 1 April 2024 diff hist +1,345 Sqlite sync current
- 00:07, 1 April 2024 diff hist +1,590 N Sqlite sync Created page with "``` package main import ( "database/sql" "fmt" _ "github.com/mattn/go-sqlite3" ) func main() { // Open source SQLite database sourceDB, err := sql.Open("..."
- 14:16, 31 March 2024 diff hist +102 Blackbox exporter feature wish list current
- 14:05, 31 March 2024 diff hist +130 N Blackbox exporter feature wish list Created page with "https://github.com/prometheus/blackbox_exporter/pull/1222 discussed in https://github.com/prometheus/blackbox_exporter/pull/1098"
- 23:16, 30 March 2024 diff hist +156 N Git signoff Created page with "``` In your local branch, run: git rebase HEAD~2 --signoff Force push your changes to overwrite the branch: git push --force-with-lease origin my-branch ```" current
- 18:48, 30 March 2024 diff hist +515 Git sign commits current
- 18:31, 30 March 2024 diff hist +51 Gpg
- 17:00, 30 March 2024 diff hist +492 Gpg
- 16:46, 30 March 2024 diff hist +124 N Git sign commits Created page with "# Error ``` error: gpg failed to sign the data fatal: failed to write commit object ``` ## Do ``` export GPG_TTY=$(tty) ```"
- 09:00, 30 March 2024 diff hist +77 N Blackbox exporter customized Created page with "https://learn.microsoft.com/en-us/azure/templates/microsoft.insights/webtests" current
- 16:39, 29 March 2024 diff hist -8 Visual studio code current
- 16:39, 29 March 2024 diff hist +78 N Visual studio code Created page with "# Settings -> Font ``` Consolas, 'Courier New', monospace -> Cascadia Mono ```"
- 21:38, 26 March 2024 diff hist +206 Blackbox exporter header host current
- 21:33, 26 March 2024 diff hist +129 Blackbox exporter header host
- 21:31, 26 March 2024 diff hist +2,063 N Blackbox exporter header host Created page with "``` To pass an HTTPS IP address and a Host header value dynamically as targets in Blackbox Exporter configuration, you can use the http_custom_headers module with Prometheus r..."
- 16:12, 26 March 2024 diff hist +3 Microceph current
- 16:12, 26 March 2024 diff hist +43 Microceph
- 15:12, 26 March 2024 diff hist +209 Microceph
- 03:02, 26 March 2024 diff hist +37 Tmsh current