Skip to content

Instantly share code, notes, and snippets.

View zudsniper's full-sized avatar
🎲
snake eyes every time

zod zudsniper

🎲
snake eyes every time
View GitHub Profile
@zudsniper
zudsniper / dlgh.sh
Last active June 7, 2023 13:23 — forked from erdincay/sugh.sh
download all repositories from a specified organization. Uses the gh command line tool for authentication of private repositories.
#!/bin/bash
# dlgh.sh
# --------
#
# Download all repositories of a user or organization using the gh commandline tool.
# REQUIRES `gh auth login`!
#
# @zudsniper
# GitHub-themed header
1. Add dependecy:
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${log4j.version}</version>
</dependency>
2.Create config file for log4j (https://logging.apache.org/log4j/2.x/manual/configuration.html).
I prefer log4j2-test.properties because according documentation this format will look second, after configFile:
'If no system property is set the properties ConfigurationFactory will look for log4j2-test.properties in the classpath.'
---------------------------------------------------------------
upstream node_server {
server localhost:3000;
}
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;