News
A LCD-screen from a broken laptop + universal controller
I bought a universal controller for LCD and connect it to a free LCD-screen from an old laptop. There some steps: See the manual for LCD-screen and find voltage (+3.3V for laptop’s LCD) and resolution (1366×768). Set the jumpers on the controller for 3.3V. Connect cables from the controller to the LCD. Download a firmware […]
Delete windows updates + command line
There is the example for Update for Outlook that cause it to run in safe mode: wusa.exe /uninstall /kb:3114409 see wusa.exe /? for help.
Linux + Zoneminder VS Windows + Videonet
Just some notices about the headline. I tried both systems and there are my results and thoughts. So, in the beginning I installed Ubuntu 12-14 and Zoneminder + BT867 compatible card. There were 8 cams and I configured motion detection for 2 cams and festival to announce the weather. I had only 0.5 fps for […]
Reading Arduino serial ports in Windows 7 with Python + Pyserial
Copy-pasted from here: http://petrimaki.com/2013/04/28/reading-arduino-serial-ports-in-windows-7/ Here i am going to show you 3 working examples on how to read Arduino serial ports with windows. You are going to need following programs / tools: Arduino UNO Windows 7 Python + Pyserial Installing Python + Pyserial to Windows First you have ton install Python on your computer. This […]
Serial Port Temperature Sensors + Windows
Copy-pasted from here: http://martybugs.net/electronics/tempsensor/software2.cgi Overview On linux, the digitemp application is required to query the temperature sensor. There are various software applications that allow DS18S20 temperature sensors to be queried in Windows, but the easiest is the Windows port of digitemp. Installing digitemp Download digitemp for Windows, and extract digitemp.exe from the zip file. Note […]
MySQLTuner tool
It’s here: http://mysqltuner.com/ Run it and then: mysqlcheck -u root -p –auto-repair –check –optimize –all-databases Go to my.cnf and add: query_cache_size = 268435456 query_cache_type=1 query_cache_limit=1048576 as it recommended.
CentOS + tmpfs
I saw this in a report: /etc/cron.daily/archiveSnort.sh: Out of memory (Needed 3608488 bytes) Just decided to extend tmpfs: Modify /etc/fstab line to look something like this: tmpfs /dev/shm tmpfs size=1g 0 0
Run scripts in background
Just add & in the end: /usr/local/etc/script.sh & Run without user session: nohup script.sh & or nohup script.sh > /dev/null & In autostart scripts (rc.d, init.d) just use &
Powershell + Send html-file as body
Write-Host “Sending Email” $content = (Get-Content “d:\print.htm” | out-string) Send-MailMessage -to “you@test.com” -subject “Print Report” -from “printer@test.com” -body $content -BodyAsHtml -SmtpServer “server” Write-Host “Finished.”
Netsh + portforward
Create: netsh interface portproxy add v4tov4 listenport=1234 listenaddress=192.168.0.2 connectport=22 connectaddress=192.168.0.10 Delete: netsh interface portproxy delete v4tov4 listenport=1234 listenaddress=192.168.0.2