Lighttpd info

Rewrite rules:

https://stackoverflow.com/questions/5059860/lighttpd-url-rewrite

 

Add a rule specifically for paths with a trailing slash:

url.rewrite = (
  "^/framework([^?]*/)(\?.*)?$" => "/framework$1index.php$2",
  "^/framework/([^?]*)(\?.*)?$" => "/framework/$1.php$2"
)

And here’s a breakdown of how the regular expression works:

^          // Match the beginning of the string
/framework // Match any string starting with "/framework"
(          // Open the first group ($1 in the right hand side)
  [^?]*    // Match zero or more characters that are not '?'
  /        // Ending in '/'
)          // Close the first group
(          // Open the second group ($2)
  \?       // Match a '?'
  .*       // Match zero or more characters
)          // Close the second group
?          // Match the second group exactly once or not at all
$          // Match the end of the string

 

Firefox

Restore previous session after closing Firefox windows and leaving another window open:
– close Firefox and/or don’t open if you just find that you’re in trouble
– go to %AppData%\Mozilla\Firefox\Profiles\YOUR-PROFILE
– find sessionstore.jsonlz4 and rename if to sessionstore.jsonlz4-old
– go to %AppData%\Mozilla\Firefox\Profiles\YOUR-PROFILE\
– copy all files from there to some temporary directoy
– copy one of those files to %AppData%\Mozilla\Firefox\Profiles\YOUR-PROFILE
– rename that copied file to sessionstore.jsonlz4
– try to open Firefox and see if your tabs are restored
– if not or not all, try another file

There is a good tool to recover information from the .jsonlz4:
https://github.com/avih/dejsonlz4

Docker Info

Install Docker Engine on Ubuntu

https://docs.docker.com/engine/install/ubuntu/

How To Install and Use Docker on Ubuntu 18.04 & Ubuntu 22.04

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04

Полное практическое руководство по Docker: с нуля до кластера на AWS

https://habr.com/ru/post/310460/

Learn to build and deploy your distributed applications easily to the cloud with Docker

https://docker-curriculum.com/

How to make Docker work with PyCharm:

V1:
nano /etc/systemd/system/multi-user.target.wants/docker.service
#ExecStart=/usr/bin/dockerd -H fd:// –containerd=/run/containerd/containerd.sock
ExecStart=/usr/bin/dockerd -H fd:// -H XXX.XXX.XXX.XXX:2375
systemctl daemon-reload
systemctl restart docker.service
https://programmersought.com/article/76572985717/

V2
# These commands get run inside of your VM.
# Create the directory to store the configuration file.
mkdir -p /etc/systemd/system/docker.service.d
# Create a new file to store the daemon options.
nano /etc/systemd/system/docker.service.d/options.conf
# Now make it look like this and save the file when you’re done:
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H unix:// -H tcp://0.0.0.0:2375
# Reload the systemd daemon.
systemctl daemon-reload
# Restart Docker.
systemctl restart docker
https://nickjanetakis.com/blog/docker-tip-73-connecting-to-a-remote-docker-daemon

Connecting the Docker container to the external network via VLAN Tag:

https://en-designetwork.daichi703n.com/entry/2018/05/02/docker-network-vlan-tag

How to get a Docker container’s IP address from the host:

https://stackoverflow.com/a/20686101
docker inspect -f ‘{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}’ container_name_or_id

Interesting IT blogs

“This Bridge is the Root” – Cisco, networks, troubleshooting, IT life
https://thisbridgeistheroot.com/blog/

“Дневники сетевого инженера” – Cisco, networks, troubleshooting, IT life
https://arny.ru

“записки SAP Basis консультанта” – SAP, VMWare, IT life
https://sidadm.blogspot.com/

“Maksim E.Moshkow’s Journal” – VMWare, HP, IT life
https://moshkow.livejournal.com

“internet-lab.ru” – VMWate, 1C, Server Hardware
https://internet-lab.ru/

“My CCIE Wireless Journey & More” – Cisco Wireless and LANs
https://mrncciew.com/

“Gkhan Tips” – Cisco, VMWare, other IT stuff
https://www.gkhan.in/

Elcomsoft Blog – «…Everything you wanted to know about password recovery, data decryption, mobile & cloud forensics…»
https://blog.elcomsoft.com/

XSREVIEWS – computer hardware reviews site with original design
https://xsreviews.co.uk/

HP Hardware & Software Info

HP ssacli commands in ESXi:

https://itbru.ru/index.php/2019/09/04/hp-ssacli-commands/
https://be-virtual.net/hpe-storage-controller-management-ssacli/
https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-a00018717en_us
https://kb.gtkc.net/hp-smart-array-cli-commands/
https://wiki.froberg.org/en/hpe-storage-controller-management-ssacli

Invoke SSACLI command from remote server: esxcli –server=”servername or IP” –user=”username” –password=”root password” ssacli cmd -q “controller all show status”

Continue reading “HP Hardware & Software Info”

MS SQL info

Remove maintenance plan and its jobs:

https://social.msdn.microsoft.com/Forums/en-US/d836371a-4dc9-40d1-b6b7-df25c6b51211/cannot-delete-a-maintenance-plan?forum=sqltools
https://dba.stackexchange.com/questions/121877/sql-server-cannot-drop-idle-job

#Show all maintenance plans IDs:
select s.name,s.id as [plan_id] from msdb.dbo.sysmaintplan_plans as s
SELECT name, id FROM msdb.dbo.sysmaintplan_plans

#Remove plan, its logs and subplans, selected by ID:
exec msdb.dbo.sp_maintplan_delete_plan @plan_id=N'{PLAN_ID_OF_MAINT_PLAN}’

DELETE FROM msdb.dbo.sysmaintplan_log WHERE plan_id = ”
DELETE FROM msdb.dbo.sysmaintplan_subplans WHERE plan_id = ”
DELETE FROM msdb.dbo.sysmaintplan_plans WHERE id = ”

#Now you can delete the jobs from Management Studio.

SQL SERVER – Unable to Start SQL Server Service or Connect After Incorrectly Setting Max Server Memory to a Low Value:

https://blog.sqlauthority.com/2019/09/26/sql-server-unable-to-start-sql-server-service-or-connect-after-incorrectly-setting-max-server-memory-to-a-low-value/