Category: Software

Python – Check last file date in a folder and notify if there isn’t a new one after n days

This week we had the need of monitoring a folder, specifically we need to know if after “n” days there isn’t any new file. For this reason I programmed a simple python script that sends us an email if this happen. Let’s do the example.

  Thanks for all Read More

Add SQLSRV driver support in EasyPHP Devserver

Recently I had to develop a new project in php, jquery, ajax and javascript which needs a Microsoft SQL database connection. For developing purposes I like to use Easyphp Devserver , an all in one package like WampServer or XAMPP.  I Prefer this one because it seems more lightly and less intrusive for my overweighted system. By Read More

Get Active Directory users expiration date

If you need to know when your users passwords will expire in AD, you can execute this commands in Powershell, this will response with all the accounts and dates. Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} –Properties “DisplayName”, “msDS-UserPasswordExpiryTimeComputed” | Select-Object -Property “Displayname”,@{Name=”ExpiryDate”;Expression={[datetime]::FromFileTime($_.”msDS-UserPasswordExpiryTimeComputed”)}} Output example: Displayname ExpiryDate ———– ———- John Doe 15/10/2018 18:45:29 Read More

Javascript – Play with strings and arrays

Last weekend I was playing with strings in Javascript and I made different exercises with them, so this is a good moment to write a remember post with this simple commands. Exercise 1: Discard first n characters of a string, in this case 3

Exercise 2: Get the string until certain character, in this Read More

Schedule a Servers reboot with email notification when are online

Schedule a servers restart it’s a healthy practice, it’s good for apply systems updates and it helps to free up memory. Thera are a lot of ways to do this, in this reminder i’ll show you wath I did. This example it works with Windows 2003, 2008, 2008r2, 2012, 2012r2, 2016… First of all I Read More

Export certificate with private key when it’s not exportable

Sometimes computer replacement could became a headache, especially if the old one have a certificate with not exportable key and we don’t have a copy of the original file (Who are going to need this?). This kind of certificates normally are important and difficult to obtain, for this reason maybe you want to avoid a Read More

1 2 3 4