Skip to content

Instantly share code, notes, and snippets.

View ramkumarrammohan's full-sized avatar
😀

Ramkumar Rammohan ramkumarrammohan

😀
  • Banglore, India
View GitHub Profile
@ramkumarrammohan
ramkumarrammohan / windows cmd line options
Created May 9, 2023 05:59
Windows productive commands
# grep alternative windows
findstr /i /r /c:"hello" test.txt > 1.txt
@ramkumarrammohan
ramkumarrammohan / fusionauth local setup.md
Last active June 23, 2021 07:26
Fusionauth local setup with docker container

Steps to follow complete fusionauth inside docker container

Create netowrk

  1. cmd: docker network create vnet

Database setup - postgres container instance

  1. cmd: docker run --name=postgres-1 --network vnet --publish 5432:5432 -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=password postgres:13-alpine
  2. Established connected with postgres using given admin credentials
  3. sql: CREATE DATABASE fusionauth ENCODING 'UTF-8' LC_CTYPE 'en_US.UTF-8' LC_COLLATE 'en_US.UTF-8' TEMPLATE template0;
  4. sql: CREATE ROLE <ordinary_user> WITH LOGIN PASSWORD '<ordinary_password>';
@ramkumarrammohan
ramkumarrammohan / DockerGolang
Last active October 21, 2020 04:18
Go lang docker with vscode support
FROM golang:1.15
# Configure to reduce warnings and limitations as instruction from official VSCode Remote-Containers.
# See https://code.visualstudio.com/docs/remote/containers-advanced#_reducing-dockerfile-build-warnings.
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils 2>&1
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed.
RUN apt-get -y install git gitk iproute2 procps lsb-release
@ramkumarrammohan
ramkumarrammohan / Linux productive commands
Last active February 6, 2024 11:54
Here are the commands which may useful in daily activities which can improve the productivity
# Read log files and create a new file with limited(filtered) logs
cat <filename> | grep <keyword> > newfile_name
# find the target device in my network
sudo arp-scan --localnet | grep "MSC VERTRIEBS GMBH"
# clean the user defined shared memory
ipcs -ma | awk '/root/ { print $2 }' | xargs -n 1 ipcrm -m
# screenshot from target device