Author: Dirar Abu Kteish
Python Script to set file dates
#!/usr/bin/python # -*- coding: utf-8 -*- import sqlite3 as lite import os, csv, sys, subprocess, hashlib, time from datetime import timedelta, datetime, tzinfo import platform […]
Python script to extract file Creation dates
#!/usr/bin/env python import os, csv, sys, subprocess, hashlib, time, pytz from datetime import timedelta, datetime, tzinfo import pytz import tzlocal writer = csv.writer(sys.stdout, quoting=csv.QUOTE_ALL) il […]
FreeNas Warning 3
After flashing /dev/mpr0, another warning message regarding /dev/mpr1. Listing all controller details: sas3flash -listall It brought up two different controllers, first one in IT […]
Fix Amazon EC2 SSH login
Blocked myself with CSF firewall on a Centos 7 server. With the “Run Command” feature was not available, and no web terminal or VNC console […]
Powershell Commands
Close all opened sessions Get-PSSession | Remove-PSSession Remove all variables from session Get-Variable -Exclude PWD,*Preference | Remove-Variable -EA 0
Install SSMTP on Centos 7
Add the repo if it’s not added: yum install epel-release -y Install: yum -y install ssmtp (yum install mailx) if not installed Configure: alternatives –config […]
Configuring Linux DHCP to work with LYNC
The article: http://tohamey.blogspot.com/2011/10/configuring-linux-dhcp-to-work-with.html
Kaspersky add network to firewall
To add a network to Kaspersky security center: kaspersky > Managed Computers > Policies > Endpoint > Firewall > Available Networks > Settings > add/edit […]
Freenas Warning 2
External SAS card: LSI 9300-8e Downloaded first the installer from: http://www.avagotech.com/products/server-storage/host-bus-adapters/sas-9300-8e#downloads The Installer: Installer_P9_for_FreeBSD Firmware and Bios: 9300_8e_Package_P9_IT_Firmware_BIOS_for_MSDOS_Windows To flash it, I moved the installed […]