Create a Splunk Alert that Checks Logs Every 5 minutes

Refer: http://answers.splunk.com/answers/149182/alert-when-splunk-user-did-not-login-for-last-15-minutes.html

Create an Alert and these are the key pieces:

Search for Today, to work with wizard
index=book2-prod-app-porta | head 1 | eval age = now() - _time

crontab run every 5 minutes
*/5 * * * *

# This is for 300 seconds or 5 minutes
Custom Condition: search age > 300

Open here terminal in Ubuntu

Refer: http://askubuntu.com/questions/602234/is-it-possible-to-open-a-terminal-in-the-current-directory

Run sudo apt-get install nautilus-open-terminal in a terminal, followed by nautilus -q to quit all open nautilus windows. When nautilus is next opened, a line saying open in terminal should appear in the right click menu.

Please note that the package nautilus-open-terminal is in the universe repositories.

Checking / Pinging a Port

Ports are a concept of UDP and TCP. Ping messages are technically referred to as ICMP Echo Request and ICMP Echo Reply which are part of ICMP. ICMP, TCP, and UDP are "siblings"; they are not based on each other, but are three separate protocols that run on top of IP. Therefore you can not ping a port. What you can do, is use a port scanner like nmap.

$ nmap -p 80 mruckman.com

You can also use:

$ telnet mruckman.com 80

It will give an error if the port is closed or filtered

---

telnet 10.194.55.47 11222
nmap -p 11222 10.194.55.47

$ nmap -p 11222 10.194.55.47

Starting Nmap 6.40 ( http://nmap.org ) at 2015-07-08 06:09 PDT
Nmap scan report for haldevcache01.hq.halw.com (10.194.55.47)
Host is up (0.23s latency).
PORT STATE SERVICE
11222/tcp open unknown

Nmap done: 1 IP address (1 host up) scanned in 0.60 seconds

# Sign onto server itself
$ netstat -ntpl | grep 11222

Rename files in Linux

Here's how I use rename:

rename 's/search/replace/' *
And here's it in action:

oli@bert:~/Desktop/rawr$ ls
pie\u333.sh
oli@bert:~/Desktop/rawr$ rename 's/\\u333/PIE/' *
oli@bert:~/Desktop/rawr$ ls
piePIE.sh

Mac What’s Locking File

Refer: http://apple.stackexchange.com/questions/22259/how-to-check-whats-locking-a-file

$ sudo lsof | grep -i looking-for

You will still need to kill the process and you can try the rm command too.

Simple JSON Server

https://github.com/typicode/json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)

Created with love for front-end developers who need a quick back-end for prototyping and mocking.

Installing NPM and NodeJS in Ubuntu

Possible Solution (Not Tested):
http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/

Updating NPM
Refer: http://stackoverflow.com/questions/23393707/how-to-update-npm

This will update npm using npm itself:

# This is for initial installation
$ sudo npm install npm -g

# This is for upgrade
$ sudo npm update npm -g

From article: If you are stuck, try sudo npm update npm -g. All credit goes to Tim Castelijns. I have tested it on ubuntu 14.04, npm 1.3.10

Note that if you are using nvm for managing multiple versions in your local dev environment for e.g. testing purposes, all your installed versions (listed by nvm ls) are in ~/.nvm, hence you just omit system wide installation (i.e. omit sudo):

$ npm install npm -g

Updated version of NodeJS - Chris Lea
Refer: https://nodesource.com/blog/chris-lea-joins-forces-with-nodesource

Falcor

Project: https://www.npmjs.com/package/falcor

Overview Video: https://www.youtube.com/watch?v=hOE6nVVr14c

 

Remove Windows 10 Upgrade Icon

Refer: http://www.howtogeek.com/218856/how-do-you-disable-the-get-windows-10-icon-shown-in-the-notification-tray/

Bottom Line: Remove this installed packaged, and then hide it if it ever appears again.

KB3035583

Search for this in Install Updates
Windows (KB3035583)