Publish a .Net Core Console Application into a 64-bit single executable file using the following command:
dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true
Extremely Serious
Publish a .Net Core Console Application into a 64-bit single executable file using the following command:
dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true
To find the a nuget package if you already know a particular type, use the following address:
sudo vi /etc/cron.weekly/certbot-renewal
#!/bin/sh /usr/sbin/certbot-auto renew --no-bootstrap --no-self-upgrade --post-hook "service nginx restart"
sudo chmod 755 /etc/cron.weekly/certbot-renewal
sudo wget https://dl.eff.org/certbot-auto -O /usr/sbin/certbot-auto
sudo chmod 755 /usb/sbin/certbot-auto
Use the following command:
sudo fail2ban-client set <JAIL_NAME> unbanip <IP_ADDRESS>
Where:
JAIL_NAME | The name of the jail.
Use the following command to find-out what jail names you have: sudo fail2ban-client status |
IP_ADDRESS | The IP address that was banned. |
PermitRootLogin no
sudo apt-get install fail2ban
[sshd] enabled = true port = ssh filter = sshd logpath = /var/log/auth.log maxretry = 6 bantime = -1
sudo service fail2ban restart
See Unbanning an IP
Reading a text file using java.util.Scanner in Java.
StringBuilder text = new StringBuilder(); try(Scanner scanner = new Scanner(new BufferedReader(new FileReader("<FILENAME>")))) { while(scanner.hasNext()) { text.append(scanner.nextLine()).append("\n"); } } catch (FileNotFoundException e) { e.printStackTrace(); } System.out.println(text.toString());
Where:
FILENAME | The text file to read. |
Isolate logic using functional interface and execute it with Funxion utility class which can be found from the following link:
Use the template found in the following link:
https://github.com/rcw3bb/azure-application-insight-custom-telemetry
Login to azure using the following command:
az login
Show the currently signed in account using the following command:
az account show
Logout to azure using the following command:
az logout
© 2025 Ron and Ella Wiki Page
Theme by Anders Noren — Up ↑
Recent Comments