Skip to content

Instantly share code, notes, and snippets.

View amitkumarj441's full-sized avatar

Amit Kumar Jaiswal amitkumarj441

View GitHub Profile
@amitkumarj441
amitkumarj441 / frontendDevlopmentBookmarks.md
Created June 6, 2016 13:19 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@amitkumarj441
amitkumarj441 / sn.cpp
Last active August 3, 2016 19:33
Program in C++ to convert string to number.
// Author: Amit Kumar Jaiswal
// Twitter: @amit_gkp
#include<iostream>
#include<string>
#include<cstdlib>
using namespace std;
long hex2int(const string& hexStr)
{
@amitkumarj441
amitkumarj441 / siat.cpp
Last active August 13, 2016 12:17
Sums in a Triangle
#include <iostream>
int main()
{
int x,l,m,n;
std::cin >> x;
int y[x][x];
while(x--)
{
std::cin >> n;
@amitkumarj441
amitkumarj441 / keybase.md
Last active August 21, 2016 11:16
Keybase account

Keybase proof

I hereby claim:

  • I am amitkumarj441 on github.
  • I am amitkumarjaiswal (https://keybase.io/amitkumarjaiswal) on keybase.
  • I have a public key whose fingerprint is 2E5D 9779 AD08 5EE7 AC29 DC41 EBE7 39F0 0427 4A2C

To claim this, I am signing this object:

On VM with CentOS 7.3
[root@localhost openshift-ansible]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
[root@viaq openshift-ansible]# ANSIBLE_LOG_PATH=/tmp/ansible.log ansible-playbook -vvv -e @/root/vars.yaml -i ansible-inventory playbooks/byo/config.yml
Using /etc/ansible/ansible.cfg as config file
statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/iptables.yml
statically included: /usr/share/ansible/openshift-ansible/roles/docker/tasks/udev_workaround.yml
statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml
statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_containerized.yml
statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/iptables.yml
statically included: /usr/share/ansible/openshift-ansible/roles/docker/tasks/udev_w
This file has been truncated, but you can view the full file.
2017-06-11 13:31:47,274 p=46087 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-11 13:31:47,277 p=46087 u=ith | ERROR! the file_name '/usr/share/ansible/openshift-ansible/vars.yml' does not exist, or is not readable
2017-06-11 13:33:41,606 p=46109 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-11 13:33:41,608 p=46109 u=ith | ERROR! the file_name '/usr/share/ansible/openshift-ansible/vars.yml' does not exist, or is not readable
2017-06-11 13:33:47,723 p=46191 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-11 13:33:47,725 p=46191 u=ith | ERROR! the file_name '/usr/share/ansible/openshift-ansible/vars.yml' does not exist, or is not readable
2017-06-11 13:35:10,143 p=46208 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-11 13:35:10,145 p=46208 u=ith | ERROR! the file_name '/usr/share/ansible/openshift-ansible/vars.yml' does not exist, or is not readable
2017-06-11 13:37:19,645 p=46306 u=ith | Using /etc/ansible/ansible.cfg as config file
@amitkumarj441
amitkumarj441 / clean.log
Created June 14, 2017 15:49
Cleaning yum
[root@viaq openshift-ansible]# yum clean all
Loaded plugins: fastestmirror, langpacks
Repository centos-openshift-origin is listed more than once in the configuration
Cleaning repos: base centos-openshift-origin centos-openshift-origin14-candidate centos-openshift-origin15-candidate docker-ce-edge docker-ce-stable epel extras updates
Cleaning up everything
[root@viaq openshift-ansible]# yum repolist
Loaded plugins: fastestmirror, langpacks
Repository centos-openshift-origin is listed more than once in the configuration
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
@amitkumarj441
amitkumarj441 / Ansible.log
Created June 17, 2017 16:50
Ansible Log on CentOS 7.3
2017-06-16 13:34:16,687 p=47627 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-16 13:34:17,086 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
2017-06-16 13:34:17,097 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/iptables.yml
2017-06-16 13:34:17,185 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/docker/tasks/udev_workaround.yml
2017-06-16 13:34:17,247 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml
2017-06-16 13:34:17,297 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_containerized.yml
2017-06-16 13:34:17,446 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
2017-06-16 13:34:17,463 p=47627 u=ith | statically in
2017-06-16 13:34:16,687 p=47627 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-16 13:34:17,086 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
2017-06-16 13:34:17,097 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/iptables.yml
2017-06-16 13:34:17,185 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/docker/tasks/udev_workaround.yml
2017-06-16 13:34:17,247 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml
2017-06-16 13:34:17,297 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_containerized.yml
2017-06-16 13:34:17,446 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
2017-06-16 13:34:17,463 p=47627 u=ith | statically in