User contributions
Jump to navigation
Jump to search
- 18:30, 15 April 2024 diff hist +130 Find current
- 01:48, 14 April 2024 diff hist +249 Atlas sql migrations current
- 01:38, 14 April 2024 diff hist +91 Atlas sql migrations
- 01:34, 14 April 2024 diff hist +91 Atlas sql migrations
- 01:20, 14 April 2024 diff hist +105 N Atlas sql migrations Created page with "https://github.com/ariga/atlas ``` atlas schema inspect --url sqlite://ucms.db --format '{{ sql . }}' ``"
- 00:03, 14 April 2024 diff hist +1,755 Go structure current
- 23:43, 13 April 2024 diff hist +510 N Go structure Created page with "``` project/ │ ├── cmd/ │ └── your_app/ │ └── main.go │ ├── internal/ │ ├── models/ │ │ ├── user.go │ │..."
- 22:55, 13 April 2024 diff hist +27 Migrations in sql current
- 22:54, 13 April 2024 diff hist +30 N Migrations in sql Created page with "https://github.com/ariga/atlas"
- 17:31, 13 April 2024 diff hist +280 N Lxc profile Created page with "``` lxc profile get default boot.autostart lxc profile set default boot.autostart lxc list --format=json | jq --raw-output '.[].name' lxc config set mycontainer boot.autos..." current
- 01:14, 12 April 2024 diff hist +2,573 N Ceph repair Created page with "When you receive a message indicating possible data damage with 2 placement groups (PGs) inconsistent in a Ceph cluster, it's crucial to address the issue promptly to ensure d..." current
- 16:09, 11 April 2024 diff hist +47 N Recaptcha Created page with "https://developers.google.com/recaptcha/docs/v3" current
- 15:32, 11 April 2024 diff hist +76 Curl current
- 22:26, 10 April 2024 diff hist +631 N Go sql Created page with "``` sqlx: Provides a set of extensions on top of the standard Go database/sql library, adding support for fluent query building, struct mapping, and more. gorm: An ORM (Objec..." current
- 20:48, 10 April 2024 diff hist +187 N Powershell dns Created page with "``` get-DnsServerResourceRecord -ZoneName example.com -RRType "CNAME" -Name foo.example.com remove-DnsServerResourceRecord -ZoneName example.com -RRType "CNAME" -Name foo.exa..." current
- 19:27, 10 April 2024 diff hist +229 N Zpool scrub Created page with "``` sudo zpool scrub default zpool status ``` ``` scan: scrub in progress since Wed Apr 10 19:26:45 2024 15.3G scanned at 540M/s, 1.47G issued at 52.0M/s, 15.3G tot..." current
- 19:24, 10 April 2024 diff hist +44 N Zfs list Created page with "``` zfs list -r default zfs list -r tank ```" current
- 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("..."