Skip to content

Instantly share code, notes, and snippets.

View anmol27katyani's full-sized avatar
🔛
Learning

ANMOL MISHRA anmol27katyani

🔛
Learning
View GitHub Profile
@anmol27katyani
anmol27katyani / docker-compose.yaml
Created March 26, 2020 09:51
Creates backend service and mysql containers
version: '3' #docker-compose version
services: #Services are your different containers
node_server: #First Container, containing nodejs serveer
build: . #Saying that all of my source files are at the root path
#volumes: #volume are for hot reload for exemple
#- "./app:/src/app"
ports: #binding the host port with the machine
- "3000:3000"
links: #Linking the first service with the named mongo service (see below)
- "mysql:mysql"
@anmol27katyani
anmol27katyani / Dockerfile
Created March 17, 2020 05:10
This is dockerfile to build the app jobseeker_web
FROM node:latest
WORKDIR /app
COPY build /app
COPY config /app
COPY public /app
COPY scripts /app
COPY src /app
COPY stories /app
COPY =4.0.0 /app
@anmol27katyani
anmol27katyani / docker-compose.yml
Created February 21, 2020 10:48
This file includes the docker compose in yml for my 3 nodes cluster attempt
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.0
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es02,es03
- cluster.initial_master_nodes=es01,es02,es03
@anmol27katyani
anmol27katyani / build comand log
Created February 21, 2020 10:45
Elastic search attempt to use my custom Dockerfile
Sending build context to Docker daemon 17.41GB
Step 1/2 : FROM docker.elastic.co/elasticsearch/elasticsearch:6.8.6
6.8.6: Pulling from elasticsearch/elasticsearch
c808caf183b6: Already exists
b60741bcbdf6: Pull complete
554c2cefa2cc: Pull complete
1beebef1146d: Pull complete
d8787547eb18: Pull complete
351a3fec9447: Pull complete
2811febfb85d: Pull complete
@anmol27katyani
anmol27katyani / previous_git_issues.txt
Created December 30, 2019 17:54
In the file git_issues.py , this file is log for pylint
************* Module git_issues
C: 8, 0: Line too long (133/100) (line-too-long)
C: 12, 0: Trailing whitespace (trailing-whitespace)
W: 12, 0: Found indentation with tabs instead of spaces (mixed-indentation)
W: 13, 0: Found indentation with tabs instead of spaces (mixed-indentation)
C: 13, 0: Unnecessary parens after 'print' keyword (superfluous-parens)
C: 16, 0: Unnecessary parens after 'print' keyword (superfluous-parens)
C: 17, 0: Trailing whitespace (trailing-whitespace)
W: 24, 0: Bad indentation. Found 8 spaces, expected 4 (bad-indentation)
C: 24, 0: Unnecessary parens after 'print' keyword (superfluous-parens)
@anmol27katyani
anmol27katyani / git_issues.txt
Last active December 30, 2019 17:32
Final output of git_issues.py
************* Module git_issues
C: 1, 0: Missing module docstring (missing-docstring)
------------------------------------------------------------------
Your code has been rated at 9.38/10 (previous run: 9.38/10, +0.00)
@anmol27katyani
anmol27katyani / LinusTalk200705Transcript.wiki
Created September 26, 2018 03:53 — forked from dukeofgaming/LinusTalk200705Transcript.wiki
Linus google tech talk transcript

This is transcript of Tech Talk: Linus Torvalds on Git at Google on YouTube.


Andrew:

Thank you, for coming everybody, some of you probably already have heard of Linus Torvalds, those of you who haven't, you are the people with Macintoshes on your laps.

@anmol27katyani
anmol27katyani / gist:6538753563542d14c5e7ab47f00faa69
Created August 9, 2018 06:52
Logs for sugar-toolkit-gtk3 installation
anmol-vm@anmolvm-VirtualBox:~/Desktop/sugar-toolkit-gtk3$ ls
AUTHORS autogen.sh bin configure.ac COPYING doc examples m4 MAINTAINERS make-doc.sh Makefile.am po README.md src tests
anmol-vm@anmolvm-VirtualBox:~/Desktop/sugar-toolkit-gtk3$ git checkout python3-port
Branch python3-port set up to track remote branch python3-port from origin.
Switched to a new branch 'python3-port'
anmol-vm@anmolvm-VirtualBox:~/Desktop/sugar-toolkit-gtk3$ sudo ./autogen.sh
You should add the contents of '/usr/share/aclocal/intltool.m4' to 'aclocal.m4'.
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
@anmol27katyani
anmol27katyani / gist:096f1f0fb6c4c06fc5cf963aedb5c571
Created August 9, 2018 06:47
Logs for installation of sugar-toolkit
anmol-vm@anmolvm-VirtualBox:~/Desktop/sugar-toolkit$ sudo ./autogen.sh
[sudo] password for anmol-vm:
You should add the contents of '/usr/share/aclocal/intltool.m4' to 'aclocal.m4'.
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
@anmol27katyani
anmol27katyani / gist:33914e4f8d2b642079d858f7ccbcd698
Created August 9, 2018 06:11
Logs for sugar-datastore installation
anmol-vm@anmolvm-VirtualBox:~/Desktop/sugar-datastore$ git checkout python3-port
Branch python3-port set up to track remote branch python3-port from origin.
Switched to a new branch 'python3-port'
anmol-vm@anmolvm-VirtualBox:~/Desktop/sugar-datastore$ sudo ./auto
autogen.sh autom4te.cache/
anmol-vm@anmolvm-VirtualBox:~/Desktop/sugar-datastore$ sudo ./autogen.sh
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p