AWS SDK Boto Configuration 1) If you're executing code against AWS on an EC2 instance that is assigned an IAM role, which of the following is a true statement? The code will assume the same permissions as the EC2 role 2) An IAM role, when assigned to an EC2 instance, will allow code to be … Continue reading AWS Certified Developer – Associate Level
Month: June 2017
Managing kernel parameters
To list all kernel parameters [root@instance-1 ~]# sysctl -a abi.vsyscall32 = 1 crypto.fips_enabled = 0 debug.exception-trace = 1 debug.kprobes-optimization = 1 dev.hpet.max-user-freq = 64 dev.mac_hid.mouse_button2_keycode = 97 dev.mac_hid.mouse_button3_keycode = 100 ex: [root@instance-1 ~]# cat /proc/sys/fs/file-max 373992 [root@instance-1 ~]# sysctl -a |grep fs.file-max fs.file-max = 373992 [root@instance-1 ~]# sysctl -w fs.file-max=380000 fs.file-max = 380000 [root@instance-1 ~]# … Continue reading Managing kernel parameters
jenkins (CJE) Exercise Guide
####################################################################### Exercise: Install a Jenkins Master and Prerequisites NOTE: Be sure you are using the same server version and distribution from the course for these topics. Basic Instructions Download the appropriate java jdk version from the Oracle website. For this course we use jdk-8u121. Copy the package from your local environment to the target server. … Continue reading jenkins (CJE) Exercise Guide
Upgrading kernel version
[root@mypc ~]# egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \' CentOS Linux (3.10.0-514.6.1.el7.x86_64) 7 (Core) CentOS Linux (3.10.0-123.4.2.el7.x86_64) 7 (Core) CentOS Linux, with Linux 3.10.0-123.el7.x86_64 CentOS Linux, with Linux 0-rescue-11264912be38456483e63dfd21d402f4 [root@mypc ~]# yum update |grep kernel-tools ---> Package kernel-tools.x86_64 0:3.10.0-514.6.1.el7 will be updated ---> Package kernel-tools.x86_64 0:3.10.0-514.21.1.el7 will be an update ---> Package kernel-tools-libs.x86_64 0:3.10.0-514.6.1.el7 … Continue reading Upgrading kernel version
Terminal short cuts
ctrl+a to come to start of line in terminal ctrl+b to move backward one character ctrl+c to terminate process crtl+d to terminate session ctrl+e to come to end of line in terminal ctrl+f to move forward by one character ctrl+h to erase one character to your left of cursor ctrl+k to remove the character after … Continue reading Terminal short cuts
Nagios xi
https://assets.nagios.com/downloads/nagiosxi/docs/Installing-Nagios-XI-Manually-on-Linux.pdf [root@jenkinsslave ~]# curl https://assets.nagios.com/downloads/nagiosxi/install.sh | sh http://130.211.135.148/nagiosxi/install.php Nagios XI Installer Welcome to the Nagios XI installation. Just answer a few simple questions and you'll be ready to go. General Program Settings Program URL: http://130.211.135.148/nagiosxi/ Administrator Name: Nagios Administrator Administrator Email Address: root@localhost Administrator Username: nagiosadmin Administrator Password: ojFvdaq5rnXjkLqkSXNM Timezone Settings Timezone: Install [root@jenkinsslave ~]# … Continue reading Nagios xi
CPU & CORE & THREAD
CPU A central processing unit (CPU) is the electronic circuitry within a computer that carries out the instructions of a computer program by performing the basic arithmetic, logical, control and input/output (I/O) operations specified by the instructions. CORE A core is usually the basic computation unit of the CPU - it can run a single … Continue reading CPU & CORE & THREAD
Certified Jenkins Engineer (CJE) – 2017 Objective sample
1) You are tasked by management to explain Continuous Deployment. Your explanation will be used in the company's annual report so you need to ensure you understand it properly. Which is the best definition A software development practice where contributors are integrating their work very frequently to production in an automated fashion. Explanation Continuous Deployment … Continue reading Certified Jenkins Engineer (CJE) – 2017 Objective sample
Git Quick Start
github-git-cheat-sheet gitcs_1475526882 [root@ansible ~]# yum install epel-release -y [root@ansible ~]# yum install git -y [root@ansible ~]# git --version git version 1.8.3.1 [root@ansible ~]# git help usage: git [--version] [--help] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>] The most commonly used git commands are: add Add file contents to … Continue reading Git Quick Start