Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

195 total results found

Useful system commands

Linux

Hardware related Memory # Show maximum capacity and number of RAM slots sudo dmidecode -t 16 # Show information on RAM in slots sudo dmidecode -t 17 # Shows all memory related information in the system. Slow as it polls all hardware first. sudo lshw -...

Flask

Python

  Reference code bases: https://github.com/miguelgrinberg/flasky  

Creating a CHR instance in AWS EC2

Mikrotik

RouterOS CHR instances in AWS EC2 I have experience with T2, T3, and T3a, primarily nano and micro, CHR instances. I prefer to use T3 instances as they provide two CPU cores for practically the same low price.  TL;DR If you want to use T3 or T3a instance, y...

Using cursors in stored procedures

MySQL Stored Procedures

The MySQL code below is from a stackoverflow answer. It provides a design pattern with detailed explanation of the behavior of a cursor inside the stored procedure. DELIMITER $$ DROP PROCEDURE IF EXISTS `my_proc` $$ CREATE PROCEDURE `my_proc`(arg1 INT) --...

Password recovery

MySQL

Reset lost root password /etc/init.d/mysqld stop mysqld_safe --skip-grant-tables --skip-networking & sleep 5 mysql -u root use mysql; update user set password=PASSWORD("toor") where User='root'; flush privileges; quit /etc/init.d/mysqld restart

Polycom

Technical Notebook Pages

Polycom SIP TLS with custom CA The config files below show how to add a custom CA certificate (customCaCert1) to a Polycom phone for use with SIP TLS registration. file: ca.cfg <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- PlcmConversionCrea...

Axis camera packet capture

Technical Notebook Pages

Download network trace Source According to documentation this can be done via the URL below, as well as via the web interface in newer AXIS OS versions. pcapdump URL Source Open any browser and paste the following URL:http://CA.ME.RA.IP/axis-cgi/debug/d...

Failover for type=FWD entries in the RouterOS DNS proxy

Mikrotik

The Mikrotik DNS resolver supports static entries with type=FWD (forward). Combining this with the regex (and now the match-subdomain option since v7.6) allows you to forward queries for specific domains to a server. Unfortunately, the type=FWD resolver does n...

Ubiquiti UniFi

Technical Notebook Pages

Device CLI Yes, the UniFi switches actually have a CLI... who knew! No you don't have to wait three minutes for the Unifi controller to update... 🙃 You can make configuration changes from the cli, but they will not be persistent across reboots or resyncs with ...

WiFi Regulatory Notes

Technical Notebook Pages

More notes to come. For now, these are random useful illustrations from around the web.         -end

Learning Resources

Rust

rustup toolchain installer book: the rust programming language rust by example rustlings

Software

Technical Notebook Pages

Below are links to various software I use. Software is free / open-source unless otherwise noted. Unclassified draw.io - diagram / flow charting PlantUML plugin for Visual Studio Code (jebbs) - building sequence diagrams SimpleMind - Mind Mapping - $$$ ...

WireGuard

Technical Notebook Pages

Generic client template [Interface] PrivateKey = xxx Address = 192.168.170.X/24 [Peer] PublicKey = yyy PreSharedKey = zzz AllowedIPs = 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 Endpoint = router.domain.com:13231 PersistentKeepalive = 25 Ubuntu ...

Recursive routing in RouterOS 6 vs 7

Mikrotik

Recursive routing allows you to create a route with a defined next hop that is not actually directly adjacent to the router. The working example configurations below assume three distinct Internet connections from three different providers. Each connection is...

Sharing a DYMO LabelWriter 450 Twin Turbo using CUPS and SAMBA

Application and device behaviors

I wanted to if I could use a Raspberry Pi Zero W 1.1 to be a wireless USB print server for my DYMO LabelWriter 450 Twin Turbo. Here's what I learned and how to make it work. These steps should be the same regardless of server or operating system (Debian, Raspb...

Arrays

Mikrotik Scripting

Basics Arrays in RouterOS can be normal indexed arrays or associative (key/value pair arrays). Array element separator is the semi-colon. # normal indexed example { :local myArray { "ContainerLog"; "ContainerDebug" } :foreach e in=$myArray do={ :put ...

Transitioning from old to new

Microsoft

IPv4 ARP -> IPv6 Neighbors netsh interface ipv6 show neighbors # OUTPUT: Interface 16: Wi-Fi Internet Address Physical Address Type - - - - - - - - - - - - - - - - - - - - fe80::2a80:88ff:efcd:8a41 28-80-88-dc-6a-41 Reac...

ProFTPd and SFTP

Technical Notebook Pages ProFTPd

Ubuntu 22.04 Install proftpd-basic Edit /etc/proftpd/modules.conf and enable mod_sftp and mod_sftp_pam Edit /etc/proftpd/sftp.conf (see example below) Edit /etc/proftpd/proftpd.conf and enable the sftp.conf include Create sftproot folders in user home d...