Categories
systems

RAC0225: Sending the test mail failed.

I have been trying to configure iDrac alerts for a while now. But I seem to be getting the same error over and over again, ‘RAC0225: Sending the test mail failed’.

It turns out that when iDrac sends an email the FROM account is the following, as entered in the fields in iDRAC Settings>Network>Common Settings :

<DNS iDRAC Name>@<Static DNS Domain Name>

So in my case it was primary-server@kniko.net

This means that you have to create an actual email on the mail server you are using, in case your server doesn’t (and shouldn’t) allow sending with arbitary names and domains.

I hope this works for you too!

Categories
ebook Uncategorized

Best Android ebook reader

This is by far the best e-book reader with no advertisements that disrupt reading, or give you a heart attack as the developer states!

https://play.google.com/store/apps/details?id=org.readera&hl=en

Categories
Mikrotik

Receive email Notifications when a user logs in to your Mikrotik Router

It is very usefull to be able to receive notifications when a user logs in to your mikrotik router. In some cases it helps spot a hacker or suspicious log-ins during off hours. (send log event to email)

1. Add an SMTP server for the router to use for sending emails

/tool e-mail
set address=smtp.gmail.com from=”My Router <mymail@myserver.com>” password=mypassword123 port=587 start-tls=yes user=mymail@myserver.com

2. Add the topics that will trigger the email to be sent

/system logging
add action=email topics=account,info,ppp,pptp,!debug
add action=email topics=system,info,account,!debug

3. Define the email that is going to receive the email notification

/system logging action
add email-start-tls=yes email-to=myadminmail@myserver.com name=email target=email

Categories
Mikrotik

Block Brute Force on Microsoft RDP using Mikrotik Router

This is a good way to block Brute Force attackers on prot 3389 MS-RDP.

  1. The new RDP connection is added to rdp_stage1  address list for 5 mins
  2. The second time it connects adds it to rdp_stage2 address list for 5 mins
  3. The thrird time adds it to rdp_stage3 address list for 5 mins
  4. The fourth time the attacker ends up to Blocked address list  for 10 Days.

/ip firewall filter
add action=reject chain=forward log-prefix=”Blocked – ” reject-with=icmp-network-unreachable src-address-list=Blocked

add action=add-src-to-address-list address-list=Blocked address-list-timeout=1w3d chain=forward connection-state=new dst-port=3389 log=yes log-prefix=”RDP BRUTEFORCE – ” protocol=tcp src-address-list=rdp_stage3

add action=add-src-to-address-list address-list=rdp_stage3 address-list-timeout=5m chain=forward connection-state=new dst-port=3389 protocol=tcp src-address-list=rdp_stage2

add action=add-src-to-address-list address-list=rdp_stage2 address-list-timeout=5m chain=forward connection-state=new dst-port=3389 protocol=tcp src-address-list=rdp_stage1

add action=add-src-to-address-list address-list=rdp_stage1 address-list-timeout=5m chain=forward connection-state=new dst-port=3389 protocol=tcp

Hope you liked it.

Categories
Uncategorized

How to extract email addresses from a text file using notepad++ with no coding at all

How to extract email addresses from a text file using notepad+

Given the following text file as input there are 3 easy steps to follow so that you can extract all email addresses contained inside the text.

Text containing email addresses
Text containing email addresses

1st Step – Find email addresses using regex match

Use the find & replace feature of notepad++

Find: (\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b)
Replace: \r\n$&\r\n

find&replace

this adds and new line before and after each email address.

Email address in new line
Email address in new line

Step 2 – Mark email addresses and bookmark lines

Mark:  (\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b)
have “Bookmark Line” checked.

bookmar-email-line

Step 3 – Remove unmarked lines

Search > Bookmark > Remove Unmarked Lines

Remove unmarked lines in Notepad++
Remove unmarked lines in Notepad++

Categories
Uncategorized

Oneplus One Sandstone Black 64GB

Oneplus 64GB Sandstone Black
Oneplus One Sandstone Black 64GB

The OnePlus One is the first smartphone developed by new start-up company OnePlus. It was released in April 2014, marketed as the “2014 Flagship Killer”. The device sports a 5.5″ 1080×1920 JDI display. It’s powered by a 2.5GHz Qualcomm Snapdragon 801 processor and 3GB of RAM. Storage comes in at either 16GB or 64GB. Other features include a 13MP camera, 3100mAh battery, dual front speakers and StyleSwap replaceable back covers. On the software side, the OnePlus One runs a version of Cyanogenmod with a unique modified user interface. You can see more detailed specs of the OnePlus One here.

About OnePlus

OnePlus is a Shenzhen-based start-up and producer of smartphones founded in December, 2013. The company’s claim to fame is its bid to offer flagship-level specs in its smartphones, at affordable prices. OnePlus initially sold its smartphones only through an invite system where customers would be sent an invite to purchase smartphones and they had to make the purchase within a fixed time frame. Of late the company has held open sales of its smartphones too.

he device’s internal hardware includes a quad-core Qualcomm Snapdragon 801 system-on-chip clocked at 2.5 GHz, 3 GB of RAM, and a 5.5-inch, JDI 1080p IPS LCD display. It includes either 16 or 64 GB of non-expandable storage.[8] Its rear-facing camera features a 13 megapixel, Sony-manufactured Exmor IMX214 sensor, alongside a 5-megapixel front-facing camera.[8] The OnePlus One supports LTEnetworks using bands 1, 3, 4, 7, 17, 38, and 40. Due to the company’s startupstature, only one model of the device was released worldwide, without any additional regional SKUs like other smartphones.[28][29]

The chassis of the OnePlus One is constructed from magnesium, and is accompanied by a curved, textured rear cover in either black or white. Special denim, Kevlar, and bamboo wood covers were also unveiled as accessories, but the bamboo covers were temporarily cancelled due to quality issues.[8][30][31] The device features capacitive navigation keys, but they can be disabled in favor of customizable navigation keys rendered on-screen.[8][32] Anandtech characterized its design as being a “close cousin” to the Oppo Find 7A.[33]

Software[edit]

Outside of China, the OnePlus One ships with CyanogenMod 11S, based on Android 4.4.4 “KitKat”. The latest version of CyanogenMod 11S is 11.0-XNPH05Q. In China, OnePlus One ships with Oppo’s ColorOS distribution, based on Android 4.3 “Jelly Bean”.[8] Alongside additional features added to the Android platform through Cyanogen (including wider customization options, an audio equalizer, encrypted messaging, and application privacy controls), the 11S software adds persistent voice commands, and gestures that can be performed while the phone is in standby to perform various functions, such as double-tapping the screen to turn it on, drawing a circle to go to the camera, and drawing a “V” to activate flashlight mode.[8][32]

An upgrade to Cyanogen OS 12, based on Android 5.0.2 “Lollipop” was released for all OnePlus One devices outside of China on 14 April 2015. The latest version of Cyanogen OS for this phone is 12.1.1-YOG7DAS2K1 based on Android Lollipop 5.1.1(AOSP), released in January 2016. This brings deep integration of “Cortana”-Microsoft’s Digital Assistant into Cyanogen OS due to strategic partnership between MIcrosoft and Cyanogen; Microsoft also being an important investor in the company.[21][34][35][36][37] Two in-house Lollipop-based distributions, OxygenOS and HydrogenOS, were released earlier, on 4 April 2015, outside and inside China respectively.[38] And on April 9th 2016 OnePlus One devices running Cyanogen OS starts receiving Cyanogen OS 13 based on Android Marshmallow 6.0.1.

Categories
Book Review ebook

Packt Publishing celebrating 10 years

 

Packt Publishing 10 days 10 years 10$

This month marks 10 years since we embarked on our mission to deliver effective learning and information services to IT professionals. To celebrate this huge milestone, we are offering ALL of our eBooks and Videos at just $10 each for 10 days – this promotion covers every title and you can stock up on as many copies as you like until July 5th.

 

If you’ve already tried a Packt title in the past, you’ll know this is a great opportunity to explore what’s new and maintain your personal and professional development. If you’re new to Packt, then now is the time to try our extensive range – we’re confident that in our 2000+ titles you’ll find the knowledge you really need , whether that’s specific learning on an emerging technology or the key skills to keep you ahead of the competition in more established tech. To get you started, we’ve put together 20 of our latest and greatest titles for you to pick up right here. But don’t forget, you can get ANY eBook or Video for $10 in this offer – browse all our categories at the bottom of this page.

$10 ANY eBook/Video – Top 20 to get you started 
As many times as you like until July 5th

 

Categories
Book Review

Packt celebrates International Day Against DRM, May 6th 2014

Packt Publishing firmly believes that you should be able to read and interact with your content when you want, where you want, and how you want – to that end they have been advocates of DRM-free content since their very first eBook was published back in 2004.

To show their continuing support for Day Against DRM, Packt Publishing is offering all its DRM-free content at $10 for 24 hours only on May 6th – that’s all 2000+ eBooks and Videos at http://bit.ly/1q6bpha .

“Our top priority at Packt has always been to meet the evolving needs of developers in the most practical way possible, while at the same time protecting the hard work of our authors. DRM-free content continues to be instrumental in making that happen, providing the flexibility and freedom that is essential for an efficient and enhanced learning experience. That’s why we’ve been DRM-free from the beginning – we’ll never put limits on the innovation of our users.”

– Dave Maclean, Managing Director

 

Advocates of Day Against DRM are invited to spread the word and celebrate on May 6th by exploring the full range of DRM-free content at http://bit.ly/1q6bpha, where all eBooks and Videos will be $10 for 24 hours.

 

DRM-Landing-Page-Banner-1

Categories
Book Review

Packt Publishing celebrates their 2000th title with an exclusive offer – We’ve got IT covered!

2000th-Book-Home-Page-Banner

Known for their extensive range of pragmatic IT ebooks, Packt Publishing are celebrating their 2000th book title “Learning Dart”– they want their customers to celebrate too.

To mark this milestone Packt Publishing will launch a ‘Buy One Get One Free’ offer across all eBooks on March 18th – for a limited period only.

`Learning Dart’ was selected as a title and published by Packt earlier this year. As a project that aims to revolutionise a language as crucial as JavaScript, Dart is a great example of an emerging technology which aims to support the community and their requirement for constant improvement. The content itself explains how to develop apps using Dart and HTML5 in a model-driven and fast-paced approach, enabling developers to build more complex and high-performing web apps.

David Maclean, Managing Director explains

It’s not by chance that this book is our 2000th title. Our customers and community drive demand and it is our job to ensure that whatever they’re working on, Packt provides practical help and support.

At Packt we understand that sometimes our customers want to learn a new programming language pretty much from scratch, with little knowledge of similar language concepts. Other times our customers know a related language fairly well and therefore want a fast-paced primer that brings them up to a competent professional level quickly.

That’s what makes Packt different: all our books are specifically commissioned by category experts, based on intensive research of the technology and the key tasks.

Since 2004, Packt Publishing has been providing practical IT-related information that enables everyone to learn and develop their IT knowledge, from novice to expert.

Packt is one of the most prolific and fast-growing tech book publishers in the world. Originally focused on open source software, Packt contributes back into the community paying a royalty on relevant books directly to open source projects. These projects have received over $400,000 as part of Packt’s Open Source Royalty Scheme to date.

Their books focus on practicality, recognising that readers are ultimately concerned with getting the job done. Packt’s digitally-focused business model allows them to quickly publish up-to-date books in very specific areas across a range of key categories – web development, game development, big data, application development, and more. Their commitment to providing a comprehensive range of titles has seen Packt publish 1054% more titles in 2013 than in 2006.

Erol Staveley, Publisher, says

Recent research shows that 88% of our customers are very satisfied with the service knowing that we offer a wide breadth of titles in a timely manner, and owing to the quality of service that they receive 94% of customers are willing to recommend Packt to friends and family. It’s great that we’ve hit such a significant milestone, and we want to continue delivering this fantastic content to our customers.

Here are some of the best titles across Packt’s main categories – but Buy One, Get One Free will apply across all 2000 titles:

Categories
Book Review mongoDB

Instant mongoDB from Packt Publishing Book Review

Instant mongoDB eBook
Disclaimer: I got a free copy of this book as part of a Packt Publishing online review campaign. My review of this book is not influenced by that, it’s only my own and honest opinion. My experience with mongoDB is both educational (certified in both 10gen’s M101 for developers and M102 for DBAs online courses), as well as using it in production for a customer project.

The book covers the very basics to get you started with mongoDB from the novice level and the author manages to keep the book concise, clear, with a lot of examples that explain the basic functions.

It starts with a really brief introduction of mongoDB, BSON documents and explains why one would use mongoDB over a relational database.

It continues with a brief part that covers the installation of mongoDB, providing the resources you need and instructions on how to import the sample data and do some basic queries to verify that everything is in place.

The main part of the book covers the CRUD operations (create, read, update and delete) and has useful examples, demonstrating the use of mongo shell environment. The author also gives very useful notes of important things to remember and avoid.

The book also introduces the reader to the schema design, use of indexes, the aggregation framework and also Map Reduce by providing short examples. The author provides only the details needed to introduce and get you started with these concepts.

If you’re interested in mongoDB but are also too busy, then this book will get you started fast and right.