[enter]~.
#!/bin/bash | |
users_with_pwd=$(awk -F":" '!($2 == "" || $2 == "!!" || $2 == "*") {print $1}' /etc/shadow) | |
users_logged_in=$(who | awk '{print $1}' | uniq) | |
echo "[*] Users with password: " | |
for user in ${users_with_pwd}; do | |
echo $user | |
done |
import scala.annotation.tailrec | |
object fact { | |
// n! = n * (n-1) * (n-2) * ... * 2 * 1 | |
// n! = if (n>1) n * (n-1)! else 1 | |
def factorial(n: Int): Int = | |
if (n > 1) | |
n * factorial(n - 1) | |
else |
# RPM | |
wget --no-check-certificate \ | |
--no-cookies \ | |
--header "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
http://download.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-linux-x64.rpm \ | |
-O jdk-7u45-linux-x64.rpm | |
# TAR GZ | |
wget --no-check-certificate \ | |
--no-cookies \ |
-
cd
into the forked repository directory that you want to updatecd repository_dir
-
Add a new remote to point to the original repository
git remote add upstream git://github.com/author/project.git
-
Pull the new commits from the original repo
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
This installation is going to require 2 servers one acts as kerberos KDC server
and the other machine is going to be client. Lets assume the FQDN's are (here
cw.com
is the domain name, make a note of the domain name here):
- Kerberos KDC Server: kdc.cw.com
- Kerberos Client: kclient.cw.com
Important: Make sure that both systems have their hostnames properly set and both systems have the hostnames and IP addresses of both systems in
Firewalld, if included in RHEL 7, is a replacement for iptables and is being included as default. Some benefits include not needing to restart the firewall when changes are made, which means your system maintains its firewall during rule modification, and current connections are not lost.
Anyhow, if you are not willing to migrate to Firewalld and want to use iptables as default, follow these steps:
Install iptables service:
yum install -y iptables-services