Skip to content

Instantly share code, notes, and snippets.

View fcaldarelli's full-sized avatar

Fabrizio Caldarelli fcaldarelli

View GitHub Profile
# Generated by iptables-save v1.8.9 (nf_tables) on Fri Feb 16 19:53:48 2024
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j REJECT --reject-with tcp-reset
-A INPUT -m state --state INVALID -j DROP
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/top/public;
index index.html index.htm index.php;
server_name _;
import java.util.Arrays;
import java.util.Collections;
import java.util.stream.Collectors;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.http.HttpMethod;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
https://cellular.fm/2022/08/03/install-windows-11-arm-vmware-fusion-apple-silicon-m1-m2-mac-macbook-air-pro-imac-macstudio-video/
networksetup -listallnetworkservices
sudo networksetup -setdnsservers Ethernet 8.8.8.8 8.8.4.4
# Define upstream blocks for each microservice
upstream user_service {
server user-service-container-ip:8001; # Replace with the IP address of the user-service container and its actual port
}
upstream product_service {
server product-service-container-ip:8002; # Replace with the IP address of the product-service container and its actual port
}
upstream order_service {
https://networklessons.com/uncategorized/extend-lvm-partition
version: '3'
services:
tomcat:
image: tomcat:8.0-alpine
container_name: tomcat
ports:
- '8080:8080'
volumes:
- tomcatDir:/usr/local/tomcat
#!/bin/sh
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
git config --global credential.helper osxkeychain