Skip to content

Instantly share code, notes, and snippets.

View vik-y's full-sized avatar

Vikas Yadav vik-y

View GitHub Profile
@vik-y
vik-y / Dockerfile
Created October 28, 2024 05:06
Sample ChatGpt AWS CLI bot
# Use an official Python runtime as a parent image
FROM python:3.10-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file to the container
COPY requirements.txt .
# Install the dependencies
@vik-y
vik-y / settings.json
Created September 27, 2023 03:20
VScode configuration that helps you write python code better!
{
"editor.formatOnSave": true,
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"python.sortImports.args": [
"--profile",
"black"
],
"[python]": {
"editor.codeActionsOnSave": {
@vik-y
vik-y / build.ipynb
Last active November 14, 2022 12:32
Autoscraper Example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vik-y
vik-y / aliases-kafka.sh
Last active April 22, 2021 16:18 — forked from diegoicosta/aliases-kafka.sh
Aliases useful for working with kafka
#KAFKA ALIAS TO BE USED INSIDE DOCKER
export KAFKA_HOME=/opt/kafka
export BROKER="172.17.0.1:32768"
export BOOTSTRAP="172.17.0.1:32768"
export ZK="172.17.0.1:2181"
alias k-list-topics="$KAFKA_HOME/bin/kafka-topics.sh --list --zookeeper $ZK"
alias k-create-topic="$KAFKA_HOME/bin/kafka-topics.sh --create --zookeeper $ZK --replication-factor 1 --partitions 3 --topic"
@vik-y
vik-y / README.md
Created March 30, 2018 15:17
Steps to get jenkins up and running

RVM, Ruby and Gemstash Installation

This is required to speed up bundle install. RVM Installation is fairly simple for ubuntu systems.

# Refer to https://github.com/rvm/ubuntu_rvm
sudo apt-add-repository -y ppa:rael-gc/rvm
sudo apt-get update
sudo apt-get install rvm

# After this installation ruby 
rvm install 2.4
@vik-y
vik-y / bash-cheatsheet.sh
Last active March 3, 2023 00:13 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@vik-y
vik-y / 000-default.conf
Created December 20, 2017 12:26
Docker config on my local machine
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ProxyPass / http://localhost:8082/
ProxyPassReverse / http://localhost:8082/
ProxyPreserveHost On
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
@vik-y
vik-y / commands.sh
Created December 18, 2017 18:46
Frequently used commands by me for managing my server
# To compress a folder
tar czf archivename.tar.gz folder
# To email a file
echo "PFA apache config" | mutt -s "/etc/apache2" vikasyadavgood@gmail.com -a apache.tar.gz
@vik-y
vik-y / NOTES.md
Created December 5, 2017 23:46
Docker-compose cheat sheet
@vik-y
vik-y / d7install.bash
Created November 23, 2017 07:49 — forked from ricardoamaro/d7install.bash
Drupal Installation Script for Linux Debian/Ubuntu
#!/bin/bash -e
#############################
#
# Auto Install Drupal on Debian/Ubuntu boxes
# Author: ricardo amaro
# https://drupal.org/user/666176
#
# License: http://www.gnu.org/licenses/gpl-2.0.html
#