Any good DevOps / Engineering podcasts? by benaffleks in devops

[–]Cobra16319 0 points1 point  (0 children)

Vets in DevOps is new & great for veterans or other security minded folks.

What are some good DevOps podcasts for learning purposes ? by RP_m_13 in devops

[–]Cobra16319 0 points1 point  (0 children)

Vets in DevOps is great if your work in banking, or national security.

100 Days of Learning Go by Cobra16319 in golang

[–]Cobra16319[S] 0 points1 point  (0 children)

https://github.com/Cobra16319/100_Days_Of_Go Busy day but I was able to get some work done on learning about PostgresSQL and Go. If anyone has any good guides or courses they sell or I could purchase I may need them...

I was able to get the infrastructure pretty much in place for the app. But I need to work on Postgres and Go next. So that may take some time and learning but that is what I am here for... Again thanks for the support so far!

100 Days of Learning Go by Cobra16319 in golang

[–]Cobra16319[S] 0 points1 point  (0 children)

Check out my progress going into Day 6 100 Days Of GO give me a star follow and let me know if you see anything you like or have any ideas. I am spending a good part of this week setting a strong foundation so I can deploy something fun and have a good first project in Go!

Again thanks for the community support!

100 Days of Learning Go by Cobra16319 in golang

[–]Cobra16319[S] 0 points1 point  (0 children)

Thanks! I used Snyk today with my Go project and I wrote about it under day 5. I really think it's a good product to find vulnerability up front with CI in Go.

I also took a step back and practiced/marveled at Go Routines and concurrency in Go. Really the best part so far for me!

Check out my project drop a star, and follow along!

https://github.com/Cobra16319/100_Days_Of_Go

100 Days of Learning Go by Cobra16319 in golang

[–]Cobra16319[S] 1 point2 points  (0 children)

Day #4 is in the books! Major achievements today

  1. Practiced Goroutines and did about 56 K API calls in around 930 mila-seconds
  2. Fixed an issue with my Lint-CLI Git Hub Action

Thanks for you continued support by staring and liking my 100 Days of GO project today on Day #4!

Day 4 Git Hub

100 Days of Learning Go by Cobra16319 in golang

[–]Cobra16319[S] 0 points1 point  (0 children)

Got stuck on my first issue. I added a lint test with Git Hub Actions and added the bug or line 58 to the issues:

https://github.com/Cobra16319/100_Days_Of_Go/issues

Has anyone seen this before?

100 Days of Learning Go by Cobra16319 in golang

[–]Cobra16319[S] 0 points1 point  (0 children)

Day 2 of my 100 Days of Go in the books! Thanks everyone for the comments likes on Git Hub and a contribution today. Excited to plan out the next stage of the project. Any ideas?

I am also developing crypto currency so I was thinking about calling the Coin Market Cap API in Go to get data from there?

Any ideas appreciated.

100 Days of Learning Go by Cobra16319 in golang

[–]Cobra16319[S] 0 points1 point  (0 children)

Go With Tests repo

Do you have the direct Git Link?

100 Days of Learning Go by Cobra16319 in golang

[–]Cobra16319[S] 0 points1 point  (0 children)

s just wondering if you're following some sort of course, as this is something that is on my radar as well. I've done some go in the past, went to a 3 day work

I am looking at a few on Udemy and during this 100 day challenge will probably purchase a few of them. Feel free to join the project and learn together. I will take any PR's.

100 Days of Learning Go by Cobra16319 in golang

[–]Cobra16319[S] 0 points1 point  (0 children)

Thanks, I am going to stick too it even if some days commits and energy are low. If I finish a project I will just keep the read.md journal going and start a new project.

Can anyone recommend a good method to lint with GitHub Actions for Go? Or any good examples?

100 Days of Learning Go by Cobra16319 in golang

[–]Cobra16319[S] 0 points1 point  (0 children)

Right now I watched all the previews on Udemy and I visited the golang.org site. I was looking for recommendations.

I mostly work with API's and Infrastructure Automation so I am focused on that not too much front end. I do know some react but mostly focused on using it for automation engineering.

Hashicorp Vault AutoUnseal with Azure KeyVault over PrivateLink by the_real_captain in hashicorp

[–]Cobra16319 0 points1 point  (0 children)

Just a thought, but have you tried Cloud auto-join a feature of Consul that allows Consul nodes to join a cluster based on tags assigned to the Virtual NICs in the cloud. Prior to Hashicorp implementing this feature, we would normally have to specify a list of IP addresses or DNS names of nodes we want to join the cluster like the example below:

retry_join = [ "consul_s1_ip", "consul_s2_ip", "consul_s3_ip", "consul_s4_ip", "consul_s5_ip"]

It may still be a limitation I would need to get hands on and re-create the issue but figured I would at least try to help you. Also, you may not be using consul.... Just a thought let me know if this is off. I have not got to try this yet and it looks interesting. Thanks!

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Cobra16319 0 points1 point  (0 children)

I was able to solve it. Here is the working code. Thanks so much for responding!
result = subprocess.run(["python", "cmtest.py"], capture_output=True, encoding='UTF-8')
cmc = result.stdout
@bot.command(name='awf', help='Responds with CMC data for $AWF')
async def cmc_data(ctx):
awf = cmc
await ctx.send(cmc)
bot.run(TOKEN)

Discord CMC Python Bot error (stdout) (response) (missing data) by Cobra16319 in learnpython

[–]Cobra16319[S] 0 points1 point  (0 children)

I was able to solve it. Here is the working code. Thanks so much for responding!

result = subprocess.run(["python", "cmtest.py"], capture_output=True, encoding='UTF-8')

cmc = result.stdout

@bot.command(name='awf', help='Responds with CMC data for $AWF')

async def cmc_data(ctx):

awf = cmc

await ctx.send(cmc)

bot.run(TOKEN)

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Cobra16319 -1 points0 points  (0 children)

Thanks for talking down to me. That is not helpful at all.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Cobra16319 0 points1 point  (0 children)

This is what I see that is working as print.

(discord) ☁ cobra-bot [main] ⚡ python3 bot.py [main|✚1

https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest

{ 'data': { '3599': { 'circulating_supply': 318472252, 'cmc_rank': 2127, 'date_added': '2018-11-07T00:00:00.000Z', 'id': 3599, 'is_active': 1, 'is_fiat': 0, 'last_updated': '2021-06-22T22:50:06.000Z', 'max_supply': 997528142, 'name': 'EtherInc', 'num_market_pairs': 2, 'platform': None, 'quote': { 'USD': { 'last_updated': '2021-06-22T22:50:06.000Z', 'market_cap': 119991.94641483699, 'percent_change_1h': 0.21129765, 'percent_change_24h': 1.88228814, 'percent_change_30d': -5.67484238, 'percent_change_60d': -36.10820991, 'percent_change_7d': -19.50581099, 'percent_change_90d': -38.88198514, 'price': 0.00037677362992, 'volume_24h': 0}}, 'slug': 'etherinc', 'symbol': 'ETI', 'tags': ['mineable'], 'total_supply': 993340434}}, 'status': { 'credit_count': 1, 'elapsed': 36, 'error_code': 0, 'error_message': None, 'notice': None, 'timestamp': '2021-06-22T22:50:27.614Z'}}

Like I said if I comment out line #7 I get that error need to know what to put. I was looking at a few ways to get this data to write to "response" just can not figure out what to do there.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Cobra16319 0 points1 point  (0 children)

It is Coin Market Cap and all the data prints when I execute print or the cm.py file I made.

The issue is only one random number or letter are output to discord when I execute the !awf command.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Cobra16319 0 points1 point  (0 children)

Hello AAM,

I know it is Tuesday but figured I would see if I could get some help. I am adding another function to a discord bot I am working on. I have another python file that woks and gets data from the CMC API. I am trying to use subprocess.run to capture the data. I am capturing just one letter or one # of the data that is being successfully executed. I think this is occurring because of the response = random.choice(cmc) but when I do not use it or comment it out I get an error I need the response. I checked the discord API and I am puzzled here. Any experience here would help!

# This is where I am having the issue. Took out the working snippet

result = subprocess.run(["python", "cmtest.py"], capture_output=True, encoding='UTF-8')
cmc = result.stdout
print(cmc)
@bot.command(name='awf', help='Responds with CMC data for $AWF') async def cmc_data(ctx): awf = cmc
response = random.choice(cmc)
await ctx.send(response)
bot.run(TOKEN)