Reference: https://docs.docker.com/compose/compose-file/#compose-file-structure-and-examples
Collection of a few docker-compose examples which I use regularly
# docker-compsoe version to be used must be mentioned at the top
version: '3'
services:
# 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 |
Reference: https://docs.docker.com/compose/compose-file/#compose-file-structure-and-examples
Collection of a few docker-compose examples which I use regularly
# docker-compsoe version to be used must be mentioned at the top
version: '3'
services:
How to Install ProR plugin into Eclipse | |
Open Eclipse | |
Go to Help->Install New Software | |
Click on Add new site | |
Add name as : ProR | |
link: | |
http://download.eclipse.org/rmf/updates/releases |
Before using this make sure you allocate 6GB. 2 cores
Install openswitch and init a br-int bridge
yum -y install make gcc openssl-devel autoconf automake rpm-build redhat-rpm-config python-devel openssl-devel kernel-devel kernel-debug-devel libtool wget
mkdir -p ~/rpmbuild/SOURCES
wget http://openvswitch.org/releases/openvswitch-2.5.1.tar.gz
cp openvswitch-2.5.1.tar.gz ~/rpmbuild/SOURCES/
{ | |
"editor.formatOnSave": true, | |
"python.linting.mypyEnabled": true, | |
"python.formatting.provider": "black", | |
"python.sortImports.args": [ | |
"--profile", | |
"black" | |
], | |
"[python]": { | |
"editor.codeActionsOnSave": { |
# -*- coding: utf-8 -*- | |
""" | |
This script is forked originally from Dave Jeffery. The original implementation | |
was very slow and deleted around 2 tweets per second. Making it multithreaded I | |
am able to delete 30-50 tweets per second. | |
@author: vik-y | |
---------------------------------------------------------------------------- | |
This script will delete all of the tweets in the specified account. |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
#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" |
import os, sys | |
# Fping must be installed in the system | |
os.system('fping -a -g %s/24 > alive.txt' % (sys.argv[1])) | |
f = open('alive.txt', 'r') | |
raw = f.readlines() | |
ips = [int(x.split('.')[-1].strip()) for x in raw] | |
ips.sort() |