Skip to content

Instantly share code, notes, and snippets.

View whogopu's full-sized avatar

Gopal sharma whogopu

View GitHub Profile
@whogopu
whogopu / aggreagtorStepLog_2.sh
Created March 23, 2023 01:51
Agg step logs update 2
#!/bin/bash
# Set default values for working directory and output directory
DEFAULT_WORKING_DIR="/data/CLS/webservice/discoverygenericWS"
DEFAULT_OUTPUT_DIR="$HOME/out/stepLogs/agg"
PLATFORM_FILE="logBothPlatform"
PER_AVG="_AVG"
PER_75="_75"
PER_90="_90"
PER_95="_95"
@whogopu
whogopu / reactDesktopLogs_2.sh
Created March 22, 2023 04:47
react desktop step logs update2
#!/bin/bash
# Set default values for working directory and output directory
DEFAULT_WORKING_DIR="/data/CLS/webservice/react-discovery"
DEFAULT_OUTPUT_DIR="$HOME/out/stepLogs/react/desktop"
PLATFORM_FILE="logDesktop"
PER_AVG="_AVG"
PER_75="_75"
PER_90="_90"
PER_95="_95"
@whogopu
whogopu / reactMsiteLogs_2.sh
Created March 22, 2023 04:11
react msite step log update2
#!/bin/bash
# Set default values for working directory and output directory
DEFAULT_WORKING_DIR="/data/CLS/webservice/react-discovery"
DEFAULT_OUTPUT_DIR="$HOME/out/stepLogs/react/msite"
MSITE_FILE="logMsite"
PER_AVG="_AVG"
PER_75="_75"
PER_90="_90"
PER_95="_95"
@whogopu
whogopu / dateMonth.sh
Last active March 22, 2023 02:03
date, Month, working dir, out directory script
#!/bin/bash
# Set default values for working directory and output directory
DEFAULT_WORKING_DIR="~/test/work"
DEFAULT_OUTPUT_DIR="~/test/output"
# set default values for month and day variables
month=$(date -d "yesterday" '+%b')
day=$(date -d "yesterday" '+%e')
@whogopu
whogopu / aggreagtorStepLog.sh
Created March 20, 2023 07:08
Aggregator step logs
#!/bin/bash
# Check if an output filename was provided as a command-line argument
if [ $# -ne 2 ]; then
echo 'Usage: $0 <date="Mar 16"> <output_file=~/out/filename>'
exit 1
fi
logDate="$1"
@whogopu
whogopu / reactDesktopLogs.sh
Created March 20, 2023 04:26
React desktop step logs
#!/bin/bash
# Check if an output filename was provided as a command-line argument
if [ $# -ne 2 ]; then
echo 'Usage: $0 <date="Mar 16"> <output_file=~/out/filename>'
exit 1
fi
logDate="$1"
@whogopu
whogopu / reactMsiteLogs.sh
Created March 20, 2023 04:25
Msite react step logs
#!/bin/bash
# Check if an output filename was provided as a command-line argument
if [ $# -ne 2 ]; then
echo 'Usage: $0 <date="Mar 16"> <output_file=~/out/filename>'
exit 1
fi
logDate="$1"
@whogopu
whogopu / PerformanceOptimization.md
Created July 15, 2021 03:59 — forked from prank1123/PerformanceOptimization.md
Performance Optimization ( Page_Speed )

PageSpeed

Page speed is a measurement of how fast the content on your page loads. Many factors affect the speed of a given page including quantity and type of content, distance the data travels, connection type, device, operating system, and browser. There are several tools present online that can be used to measure pagespeed of any url, some of them are...

  • Google PageSpeed Insights
  • web.dev
  • GTmetrix There are many more tools present online and we need to consider their server locations for the most considerable results.

Basics

  • Minify the code. Enable text compression.
@whogopu
whogopu / bashrc_min
Created May 11, 2021 15:21
default bashrc of mint
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@whogopu
whogopu / predict label.py
Last active April 1, 2019 08:10
AutoTagging - predict label
norm_title = normalize_text(title)
norm_body = normalize_text(body)
x1_ = pd.Series([norm_body])
x2_ = pd.Series([norm_body])
x1_tfidf = vectorizer_X1.transform(x1_)
x2_tfidf = vectorizer_X2.transform(x2_)
x_tfidf = hstack([x1_tfidf,x2_tfidf])