Skip to main content

Recent Posts

FRR_BGP_config

Oct 15, 2024AustinLeath

0 likes • 6 views

# default to using syslog. /etc/rsyslog.d/45-frr.conf places the log
# /var/log/frr/frr.log
#
# Note:
# FRR's configuration shell, vtysh, dynamically edits the live, in-memory
# configuration while FRR is running. When instructed, vtysh will persist the
# live configuration to this file, overwriting its contents. If you want to
# avoid this, you can edit this file manually before starting FRR, or instruct
# vtysh to write configuration to a different file.
#log syslog informational
hostname UDM-SE
frr defaults datacenter
log file stdout
service integrated-vtysh-config
!
!
router bgp 65001
bgp router-id 172.16.72.254
neighbor 172.16.72.1 remote-as 65000
neighbor 172.16.72.1 default-originate
!
address-family ipv4 unicast
redistribute connected
redistribute kernel
neighbor V4 soft-reconfiguration inbound
neighbor V4 route-map ALLOW-ALL in
neighbor V4 route-map ALLOW-ALL out
exit-address-family
!
route-map ALLOW-ALL permit 10
!
line vty
!

JSON for AI route

Sep 26, 2024AustinLeath

0 likes • 10 views

{
"postId": "93d3dc33-cf39-48e0-8a7e-2d72a0f33847",
"descriptionGeneratedTime": "2024-09-26T05:34:44.737Z",
"description": "**Description:**\n\nThis Pascal code is a simple \"Hello, World!\" program. It uses the `writeln` function to print \"Hello, World!\" to the console and then ends the program.\n\n**Improvement Insights:**\n\n1. **Add Comments:** Although the code is straightforward, adding comments can make it more readable and easier to understand, especially for beginners.\n\n Improved version:\n ```pascal\n program HelloWorld;\n begin\n // Print \"Hello, World!\" to the console\n writeln('Hello, World!');\n end.\n ```\n\n2. **User Interaction:** To make the program more interactive, you could modify it to accept user input before printing the message.\n\n Improved version:\n ```pascal\n program HelloWorld;\n uses\n sysutils;\n var\n userName: string;\n begin\n // Prompt user to enter their name\n writeln('Please enter your name:');\n readln(userName);\n // Greet the user\n writeln('Hello, ' + userName + '!');\n end.\n ```"
}

AWS CLI Locate ClientVPN

Sep 23, 2024AustinLeath

0 likes • 4 views

CLIENT_VPN_ID="cvpn-endpoint-xxxxxxxxxxxx"
for region in $(aws ec2 describe-regions --query "Regions[].RegionName" --output text); do
echo "Searching in region: $region"
aws ec2 describe-client-vpn-endpoints --region $region --query "ClientVpnEndpoints[?ClientVpnEndpointId=='$CLIENT_VPN_ID']" --output table
done

Untitled

Sep 19, 2024AustinLeath

0 likes • 2 views

program HelloWorld;
begin
writeln('Hello, World!');
end.

defaultdict count

Aug 14, 2024AustinLeath

0 likes • 17 views

from collections import defaultdict
faceValues = [1, 2, 3, 4, 5, 6]
sums = defaultdict(int)
for i in range(6):
for j in range(6):
sums[faceValues[i] + faceValues[j]] += 1
print('sum', 'count')
for key in sorted(sums.keys()):
print(f'{key:0>2}: {sums[key]}')

Bitwise Lambda Overflow Calculations

Aug 12, 2024AustinLeath

0 likes • 5 views

magnitude = lambda bits: 1_000_000_000_000_000_000 % (2 ** bits)
sign = lambda bits: -1 ** (1_000_000_000_000_000_000 // (2 ** bits))
print("64 bit sum:", magnitude(64) * sign(64))
print("32 bit sum:", magnitude(32) * sign(32))
print("16 bit sum:", magnitude(16) * sign(16))

Post Statistics

Posts

No Posts Found

It looks like AustinLeath has no public posts

Likes

Please Log In

You must be authenticated to view a user's likes

Shared

Please Log In

You must be authenticated to view a user's shared posts

Profile Privacy

Multi-Factor Authentication

Multi-Factor Authentication (MFA) is an authentication method that requires you to provide two or more verification factors to gain access to your account. In addition to username and password, MFA requires you to verify your email on every login, which decreases the likelihood of someone stealing your account.

Change Password

Forgot Password?

Identity Color

Changes the color of your profile icon and cursor highlight in the live code editor. You and other users will be able to view this change.

Delete Account

Deleting your account is permanent. All data associated with your account will be lost.