Skip to content

Instantly share code, notes, and snippets.

View ksingh7's full-sized avatar

karan singh ksingh7

View GitHub Profile
@ksingh7
ksingh7 / conky_setup
Last active January 20, 2018 17:47
Raspberry System Display Manger Conky
sudo apt-get install conky -y
wget -O /home/pi/.conkyrc https://gist.githubusercontent.com/ksingh7/4704b659c6577c39b5141827c8af0d85/raw/67bc18cd587f0f0872256a9d72b99bfde2d49613/conky_rpi3
sudo vim /usr/bin/conky.sh
(ADD)
#!/bin/sh
(sleep 4s && conky) &
exit 0
sudo vim /etc/xdg/autostart/conky.desktop
@ksingh7
ksingh7 / clitext.md
Last active December 11, 2018 22:51
CLITXT :
  • Installation
wget https://clitxt.com/install.sh -O - | sh
echo "alias clitxt='curl -F \"upfile=@-\" https://clitxt.com'" >> ~/.bashrc
  • Logout and login back into the shell

Example :

@ksingh7
ksingh7 / glances.md
Last active February 5, 2019 10:15
Glances Monitoring Setup
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y glances python-bottle

## You can also open port 61208
systemctl stop firewalld ; systemctl disable firewalld
vim /usr/lib/systemd/system/glancesweb.service
@ksingh7
ksingh7 / pyspark-test.ipynb
Created April 14, 2019 17:34
pyspark-test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ksingh7
ksingh7 / gist:8d214b5cf24ad702f8f4
Created May 22, 2015 10:38
HP ADU report ( Array Diagnostic Utility ) Report
# hpacucli ctrl all diag file=/tmp/ADUReport.zip
@ksingh7
ksingh7 / 01_kafka_connect.yaml
Last active June 14, 2020 14:20
Kafka connect configuration file
apiVersion: kafka.strimzi.io/v1beta1
kind: KafkaConnect
metadata:
namespace: cc-demo
name: my-connect-cluster
annotations:
strimzi.io/use-connector-resources: "true"
spec:
version: 2.5.0
image: karansingh/camel-aws2-s3-kafka-connector
@ksingh7
ksingh7 / 02_kafka_connector.yaml
Created June 14, 2020 14:49
Kafka Connector YAML for AWS S3
apiVersion: kafka.strimzi.io/v1alpha1
kind: KafkaConnector
metadata:
name: s3-sink-connector
labels:
strimzi.io/cluster: my-connect-cluster
spec:
class: org.apache.camel.kafkaconnector.CamelSinkConnector
tasksMax: 1
config:
@ksingh7
ksingh7 / 02_kafka_connector.yaml
Created June 14, 2020 14:49
Kafka Connector YAML for AWS S3
apiVersion: kafka.strimzi.io/v1alpha1
kind: KafkaConnector
metadata:
name: s3-sink-connector
labels:
strimzi.io/cluster: my-connect-cluster
spec:
class: org.apache.camel.kafkaconnector.CamelSinkConnector
tasksMax: 1
config:
@ksingh7
ksingh7 / 01_kafka_cluster.yaml
Last active July 1, 2020 05:16
Kafka Cluster k8s configuration file
apiVersion: kafka.strimzi.io/v1beta1
kind: Kafka
metadata:
name: my-cluster
labels:
app: my-cluster
spec:
kafka:
version: 2.5.0
replicas: 3