Skip to content

Instantly share code, notes, and snippets.

View iamgini's full-sized avatar
⚙️
#learningeveryday

Gineesh Madapparambath iamgini

⚙️
#learningeveryday
View GitHub Profile
Thank you for this simple and clear article.
But the 10.x.x images are not working with GNS3.
I tried 10.0.10 and 10.2.0 images (PA-VM-KVM-10.0.10.qcow2) and its booting but I am not able to login.
PA-VM-KVM-10.0.10.qcow2: stuck here
[ 2.554981] random: fast init done
[ 2.659932] APIC calibration not consistent with PM-Timer: 104ms instead of 100ms
[ 2.670935] APIC delta adjusted to PM-Timer: 6250253 (6562457)
[ 2.678596] Performance Events: Broken PMU hardware detected, using software events only.
@iamgini
iamgini / Start LRS in continuous mode.ps1
Last active February 23, 2022 08:51
Start LRS in continuous mode
Start-AzSqlInstanceDatabaseLogReplay -ResourceGroupName "SQLMIJagathRG" `
-InstanceName "sqlmanagedinstancejagath" -Name "AdventureWorks2016" `
-Collation "SQL_Latin1_General_CP1_CI_AS" `
-StorageContainerUri "https://storageaccountsqlmitest.blob.core.windows.net/sqlmibackup/AdventureWorks2016" `
-StorageContainerSasToken "sv=2020-08-04&st=2021-12-17T17%3A01%3A53Z&se=2022-05-30T17%3A01%3A00Z&sr=c&sp=rl&sig=oo1mHExX5StH85yM6ngYP1onMcu5fpLSoH7PNy5C0Zk%3D"
# create ec2
- name: Launching EC2 instances
community.aws.ec2_instance:
#aws_access_key: "{{ec2_access_key}}"
#aws_secret_key: "{{ec2_secret_key}}"
profile: "{{ aws_boto_profile }}"
key_name: "{{ aws_demo_key }}"
security_group: "{{ aws_security_group }}"
instance_type: "{{ item.value.instance_type }}"
image_id: "{{ aws_ami_id }}"
version: '2'
services:
minio1:
container_name: minio1
image: minio/minio
hostname: minio1
volumes:
- /opt/tbsystems/minio/minio-data1:/export
ports:
```
tasks:
- name: Display the JSON file and collect data
shell: cat {{ cve_json_file }}
register: result
- name: Save the Json data to a Variable
set_fact:
jsondata: "{{ result.stdout | from_json }}"
@iamgini
iamgini / gist:c4a72ad86a439b0da30f7afaad6b527f
Created June 2, 2020 10:54
samdoran-pgsql-replication-role-ansible-tower-notes
[Sam Doran](https://github.com/samdoran) contributed this Ansible role for PostgreSQL Repliction, especially for Database Streaming Replication for Ansible Tower Cluster. Some of the issues are already fixed and good to go.
<!-- TOC orderedlist:false -->
- [existing_pg_dir - undefined variable](#existingpgdir---undefined-variable)
- [Typo in Variable value](#typo-in-variable-value)
- [Issue with Loop as only item entry for replica](#issue-with-loop-as-only-item-entry-for-replica)
@iamgini
iamgini / openshift-cheatsheet.md
Created September 19, 2018 09:33 — forked from rafaeltuelho/openshift-cheatsheet.md
My Openshift Cheatsheet

My Openshift Cheatsheet

Logging Aggregation throubleshooting

Process a template, create a new binary build to customize something and them change the DeploymentConfig to use the new Image...

oc process openshift//datagrid72-basic | oc create -f -
# Simple python script to generate numbers from 1 to 100
# But on multiples of three print "Loktar" instead of the number,
# and on multiples of five print "Ogar".
# and on multiples of both 3 and 5 your program should print "LoktarOgar".
# author : Gineesh (net.gini@gmail.com)
# run the code as python python-1to100-loop.py
x = 1
while x < 101:
# check if the value can be divided by both 5 and 3 (multiple of 5 and 3)
@iamgini
iamgini / rhel7.ks
Created July 3, 2018 04:03 — forked from nekop/rhel7.ks
RHEL7 kickstart
install
url --url=http://example.com/your/path/to/rhel7/install/image/RHEL-7/7.0/Server/x86_64/os/
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto dhcp --ipv6 auto
rootpw foobar
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone --utc Asia/Tokyo

Download Vagrant boxes manually

In this example, we're going to download the Midnight Sun box.

# The box URL is https://app.vagrantup.com/uwmidsun/boxes/box/versions/2.1.0
# In general, we just take the box URL, and then append the provider URL
# https://app.vagrantup.com/<organization name>/boxes/<box name>/versions/<version>/providers/<provider>.box
wget https://app.vagrantup.com/uwmidsun/boxes/box/versions/2.1.0/providers/virtualbox.box -O box-2.1.0.box