I wanted to get notified for specific Windows Application Event log ID would appears; As unfortunately the Application does have such of feature/mechanism.
I have decided to look further into python in order to progressively move some of my bash scripts, using python instead.
Some scripts (initially in bash) that I have used to update MySQL content, so below some examples of mechanisms used in python.
This is a little bash script that rotate logs as when the file reach a specified limit.
I had implemented my raspberry pi to use wireless network, unfortunately the connection might after a while disconnect, the only option that I have found was to run a script that check the connection and re-connect if network is down.
I have written a little script which generate number for your next lotto ticket.
Schedule it in the crontab to get your number each day you do need it.
I am including the command line that would allow to stop the Mail station (Roundcube) component and Mail Server (Postfix)
- /usr/syno/bin/synopkg stop \M\a\i\l\S\t\a\t\i\o\n;
- /usr/syno/bin/synopkg stop \M\a\i\l\S\e\r\v\e\r;
For starting, replace stop with start.
After getting the DSM 6.0 upgrade, I could not login as root using SSH.
Even if I could prior the upgrade.
Run Hydra in bash upon a password list;
ncat for the potential port for each protocol, some additional port / protocol could be added of course.
You will require to set couple of file, one would be login (one user per line) + password (still one by line)
I have been restoring several files under specific user into ownCloud solution; I have found in some forum that we could refresh the files records upon the filesystem.
The table name is : oc_filecache
If you delete manually all the content of this table (something like : Delete * from oc_filecache); Logout and login back; All the content would be refreshed.