Ed · @Edthedev
220 followers · 85 posts · Server mastodon.sdf.org

that running a script in a action step - while still using "ubuntu-latest" - works perfectly.

I had a good idea that it *could* work. But having it work on the first try was a

I love , but when I'm generating a , PowerShell is the right tool for the job, for me.

github.com/edthedev/edthedev.g

#todayilearned #powershell #github #cicd #happysurprise #bashscripting #jsonfile

Last updated 1 year ago

Ed · @Edthedev
220 followers · 85 posts · Server mastodon.sdf.org

that running a script in a action step - while still using "ubuntu-latest".

I had a good idea that it *could* work. But having it work perfectly on the first try was a

I love , but when I'm generating a , PowerShell is the right tool for the job, for me.

github.com/edthedev/edthedev.g

#todayilearned #powershell #github #cicd #happysurprise #bashscripting #jsonfile

Last updated 1 year ago

OSTechNix · @ostechnix
580 followers · 1553 posts · Server floss.social
wandy_dev · @wandy_dev
14 followers · 28 posts · Server mstdn.social

Today ChatGPT was at capacity and I couldn't get in. So I created bash script to chat to the regular GPT endpoint. Try it out!

gist.github.com/wandy-dev/b8c9

#AI #bashscripting #Bash #chatgpt

Last updated 2 years ago

wandy_dev · @wandy_dev
21 followers · 83 posts · Server mstdn.social

Today ChatGPT was at capacity and I couldn't get in. So I created bash script to chat to the regular GPT endpoint. Try it out!

gist.github.com/wandy-dev/b8c9

#AI #bashscripting #Bash #chatgpt

Last updated 2 years ago

Jay · @jay
878 followers · 31 posts · Server learnlinux.social

ICYMI: The new course on has launched. Every single lesson is now available! So why not by writing scripts in bash? Check out this playlist. Also, please share the heck out of this! youtube.com/playlist?list=PLT9

#bashscripting #learnlinuxtv #learnlinux #linux #devops

Last updated 2 years ago

Joshmc :loading: :rick: :idle: · @joshmc
18 followers · 374 posts · Server fosstodon.org

Every time I start a new script

#bashscripting

Last updated 2 years ago

Moussa Clarke · @moussa
43 followers · 477 posts · Server mastodon.moussaclarke.co.uk

Thus endeth the description of the script,
In language that mimics the great bard of Avon.

What at time to be alive 🤣

#chatgpt #bashscripting #shakespeare

Last updated 2 years ago

Moussa Clarke · @moussa
43 followers · 476 posts · Server mastodon.moussaclarke.co.uk

Next, the current commit hash is obtained,
And checked to see if a tag doth exist.
A new version tag is then created.

If the current commit hath no tag,
A changelog is generated with git-cliff's aid.
The new version changes are committed and pushed,
And the new tag is pushed to the remote repository.

If the commit already hath a tag,
The script doth exit and the bump is abandoned.

#chatgpt #bashscripting #shakespeare

Last updated 2 years ago

Moussa Clarke · @moussa
43 followers · 475 posts · Server mastodon.moussaclarke.co.uk

Certainly, here is a description of the script using language that sounds like it might have been written by William Shakespeare:

The script doth search for the highest tag assigned,
And strips the leading "v" from the version.
If empty, the version number doth become "0.0.0".

Then, the version is split into its parts,
And the number increaseth based on the scope.
If no scope is provided, the patch doth increase.

#chatgpt #bashscripting #shakespeare

Last updated 2 years ago

Moussa Clarke · @moussa
43 followers · 474 posts · Server mastodon.moussaclarke.co.uk

Could you describe what the script does, using language that sounds like it might have been written by William Shakespeare. It should be poetic, ideally using iambic pentameter, and read like it was written in 16th century England by the great bard of Avon.

#chatgpt #bashscripting #shakespeare

Last updated 2 years ago

Harry Omvlee · @harryomvlee
6 followers · 42 posts · Server mastodon.nl

Help, , , ,

Determine whether the date number is even or odd to execute or not a given command.

a=$(date +%d)
b=2
if ! (( $a % $b ))
then
echo "Today's date has an even number."
else
echo "Today's date has an odd number."
fi

Something is wrong here: the exclamation mark creates a negation, which shouldn't. By the way, the result is fine.

Where is my mistake? What am I actually not doing right here?

#syntax #divisions #bashscripting #bash

Last updated 2 years ago

Harry Omvlee · @harryomvlee
6 followers · 42 posts · Server mastodon.nl

Help, , , ,

Determine whether the date number is even or odd to execute or not a given command.

a=$(date +%d)
b=2
if ! (( $a % $b ))
then
echo "Today's date has an even number."
else
echo "Today's date has an odd number."
fi

Something is wrong here: the exclamation mark creates a negation, which shouldn't. By the way, the result is fine.

Where is my mistake? What am I actually not doing right here?

#syntax #dedivisions #bashscripting #bash

Last updated 2 years ago

Harry Omvlee · @harryomvlee
6 followers · 41 posts · Server mastodon.nl

Help, , , ,

Bepalen of het datumnummer even of oneven is om een bepaalde opdracht al dan niet uit te voeren.

a=$(date +%d)
b=2
if ! (( $a % $b ))
then
echo "De datum van vandaag heeft een even nummer."
else
echo "De datum van vandaag heeft een oneven nummer."
fi

Hier klopt iets niet: het uitroepteken zorgt voor een ontkenning, dat zou niet moeten. Het resultaat is overigens prima in orde.

Wat doe ik hier eigenlijk niet goed?

#syntaxis #delingen #bashscripting #bash

Last updated 2 years ago

Jan Andrle · @jaandrle
92 followers · 672 posts · Server fosstodon.org

There is a new (still non-production) version of [nodejsscript@v0.9.0](github.com/jaandrle/nodejsscri)

#nodejs #javascript #shell #bashscripting #shelljs #webdev

Last updated 2 years ago

Jay · @jay
624 followers · 24 posts · Server learnlinux.social

The entire course on launched today. Every single lesson is now available! So why not by writing scripts in bash? Check out this playlist. Also, please share the heck out of this! youtube.com/playlist?list=PLT9

#bashscripting #learnlinuxtv #learnlinux #linux #devops

Last updated 2 years ago

Jay · @jay
607 followers · 23 posts · Server learnlinux.social

Oh no! We've reached the end of the series! But don't worry, has an absolutely ridiculous amount of videos to help you , and the best is yet to come! I hope you enjoyed . youtu.be/nc--D-nTIEo

#bashscripting #learnlinuxtv #learnlinux #cybermonday

Last updated 2 years ago

Ryan Egesdahl :heart_pride: · @deriamis
70 followers · 811 posts · Server mstdn.social

@haploc @blinry Yes, this. is unsafe by default, though, so you really shouldn’t be doing anything terribly complicated in it unless you really can’t depend on another language or a C compiler being available in all cases. If you need to use Bash, you should follow a rigorous set of best practices and use Shellcheck to help enforce them. Here’s a good starting set of best practices - perhaps some day I’ll get some time to write mine down. bertvv.github.io/cheat-sheets/

#bashscripting

Last updated 2 years ago

OSTechNix · @ostechnix
520 followers · 1486 posts · Server floss.social
OSTechNix · @ostechnix
520 followers · 1486 posts · Server floss.social