Skip to content

Instantly share code, notes, and snippets.

Avatar

JRichardsz jrichardsz

View GitHub Profile
@jrichardsz
jrichardsz / docker cron, dockercron, crontab.md
Created June 11, 2023 02:08
docker cron, dockercron, crontab
View docker cron, dockercron, crontab.md
RUN apt-get update
RUN apt-get install ngrep cron -y 
*/1  * * * * bash /usr/app/job.sh
@jrichardsz
jrichardsz / ReportGenerator needs payment.md
Last active May 12, 2023 23:10
Please don't use .Net c#
View ReportGenerator needs payment.md

image

Exclude folder from test coverage dont works

dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:Exclude="[*]*Startup%2c[*]*Program%2c[*]Common*%2c[*]Api.UnitOfwork*" /p:CoverletOutput=$(pwd)/.coverage/lcov.info


dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:Exclude=\"[Api.Common.*]*,[xunit*]*\" /p:CoverletOutput=$(pwd)/.coverage/lcov.info && lcov-viewer lcov -o .coverage .coverage/lcov.info
View Freelancing Reviews Samples
# Freelancing Reviews Samples
=======================================================================
****
=======================================================================
## Buyer Reviews to Sellers
=======================================================================
@jrichardsz
jrichardsz / maven helper.sh
Created April 10, 2023 05:45
maven helper
View maven helper.sh
mvn_detect() {
maven_version=$(mvn -v > /dev/null 2>&1)
status=$?
echo $status
}
java_detect() {
java_version=$(java -version > /dev/null 2>&1)
status=$?
@jrichardsz
jrichardsz / certbot
Created April 5, 2023 06:39
ssl certificates snippets
View certbot
## docker
sudo apt-get update
sudo apt install snapd -y
sudo snap install core; sudo snap refresh core
## steps
@jrichardsz
jrichardsz / signature
Created March 31, 2023 23:06
signature
View signature
https://www.hubspot.com/email-signature-generator
View https cert snippets - linux cert creation.md
openssl req -new -x509 -keyout cert.pem -out cert.pem -days 365 -nodes -subj '/C=GB/ST=London/L=London/O=Global Security/OU=IT Department/CN=example.com'

openssl req -new -x509 -keyout private.pem -out cert.pem -days 365 -nodes -subj '/C=GB/ST=London/L=London/O=Global Security/OU=IT Department/CN=example.com'
@jrichardsz
jrichardsz / stackoverflow tips.md
Created March 27, 2023 00:16
stackoverflow tips
View stackoverflow tips.md

codo block with markdown

markdown source with ``` :

image

output: