Skip to content

Instantly share code, notes, and snippets.

@malston
malston / downloadJarFromNexus
Last active October 26, 2022 13:02
A bash script to download any jar from nexus
#!/bin/bash
# Argument = -h -v -i groupId:artifactId:version -c classifier -p packaging -r repository
#shopt -o -s xtrace
# Define Nexus Configuration
NEXUS_BASE=${NEXUS_BASE-:http://repository.example.com:8081/nexus}
REST_PATH=/service/local
ART_REDIR=/artifact/maven/redirect
@vdel26
vdel26 / nginx
Last active March 16, 2023 20:31
Openresty init.d script
#!/bin/sh
#
# chkconfig: 2345 55 25
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx
# For Debian, run: update-rc.d -f nginx defaults
# For CentOS, run: chkconfig --add nginx
#
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all