This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo ufw status | |
| sudo ufw allow ssh | |
| sudo ufw enable | |
| sudo ufw deny from 10.50.20.8 | |
| sudo ufw deny out to 10.50.20.8 | |
| sudo ufw deny from 10.50.20.6 | |
| sudo ufw deny out to 10.50.20.6 | |
| sudo ufw reload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install fluent-package v6 LTS: | |
| sudo apt update | |
| curl -fsSL https://fluentd.cdn.cncf.io/sh/install-ubuntu-noble-fluent-package6-lts.sh | sudo sh | |
| # Make sure the service is up and running: | |
| sudo systemctl enable --now fluentd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1--- In the termina do | |
| sudo touch /var/log/commands.log | |
| sudo touch /var/log/outputs.log | |
| ### 2--- Point Fluentd at both files | |
| # Replace the definitions at /etc/fluent/fluentd.conf with this config: | |
| <system> | |
| log_level info | |
| </system> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install fluent-package v6 LTS: | |
| sudo apt update | |
| curl -fsSL https://fluentd.cdn.cncf.io/sh/install-ubuntu-noble-fluent-package6-lts.sh | sudo sh | |
| # Make sure the service is up and running: | |
| sudo systemctl enable --now fluentd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib.pyplot as plt | |
| # Updated timeline data for European civilizations and periods | |
| timelines_europe = { | |
| # Neolithic Cultures | |
| "Neolithic Cultures": {"start": -7000, "end": -2500, "color": "lightgreen"}, | |
| "Cardial Culture": {"start": -6000, "end": -5000, "color": "lightblue"}, | |
| "Linear Pottery Culture (LBK)": { | |
| "start": -5500, | |
| "end": -4500, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib.pyplot as plt | |
| # Updated timeline data with BCE year representation, including all events | |
| timelines_simple = { | |
| # Ubaid Period | |
| "Ubaid Period": {"start": -6500, "end": -3800, "color": "salmon"}, | |
| # Sumerian periods | |
| "Early Sumerian Settlement": {"start": -4500, "end": -4000, "color": "skyblue"}, | |
| "Uruk Period (Sumerians)": {"start": -4000, "end": -3100, "color": "skyblue"}, | |
| "Early Dynastic Period (Sumerians)": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Global initialisation file for SciTE | |
| # For Linux, place in $prefix/share/scite | |
| # For Windows, place in same directory as SciTE.EXE (or Sc1.EXE) | |
| # Documentation at http://www.scintilla.org/SciTEDoc.html | |
| # Globals | |
| # Window sizes and visibility | |
| if PLAT_WIN | |
| position.left=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import matplotlib.pylab as plt | |
| from scipy import stats | |
| myclip_a, myclip_b = -2, 2 | |
| my_mean, my_std = 0, 0.5 | |
| a, b = (myclip_a - my_mean) / my_std, (myclip_b - my_mean) / my_std | |
| plt.hist(stats.norm(0,0.5).rvs(10000), bins = 100) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| #np.random.seed(101111) | |
| import matplotlib.pyplot as plt | |
| plt.close('all') | |
| from tedi import utils | |
| def SamplingSun(initFile, finalFile, timespan, observationsNumber, | |
| planet = False, planetParams = [], saveFile = True): | |
| """ Parameters: | |
| initFile = cleaned SunAsAStar file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pylab as plt | |
| plt.close('all') | |
| def vanEck(n): | |
| #starts at 0 | |
| vanEck = np.array([0]) | |
| #first value is 0 | |
| i=vanEck[0] | |
| while i < n: |