Paul Sutton

Github

CyberSecurity part 18

Today I am posting another video, this time on Git / Github, and yes I fully acknowledge there are alternatives to github. I have provided links to various git repository solutions.

This is another important topic.
Links

Tags

#CyberSecurity,#Git,#Github,#Repositories


MastodonPeertubeQoto sign up

Donate using Liberapay

SignIn tips

If you're looking at using repl.it and or FreeCodeCamp ( FCC ), the you have the option to use your github credentials to signin.

signin

FreeCodeCamp

signin

With FCC your user account appears to be bound to your e-mail address. Therefore, if you use github to sign in,it will bind your account to the e-mail address you used to sign up to github, so change one you need to change both to maintain your progress being saved properly.

If you use your e-mail to sign in to FCC then you get sent a one time pin number each time, which can provide problematic if you then have issues accessing your e-mail. So it may be easier to just use github to sign in, having github accounts also has other advantages.

Repl.it

signin

Using Github to sign in to Repl.it also gives you the feature to save your projects to / from your github repository, which should make collaboration easier.

Gist

signin

Another feature of Github is gist, so again this is ideal for sharing code blocks and getting help for example.

#freecodecamp, #replit, #signin, #github, #gist, #development, learning


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)


MastodonPeertubeQoto sign up

Donate using Liberapay

IRC bot development

I have been working on some more projects around IRC chat bots. I decided to try and integrate a Magic 8 ball project so that an IRC bot would give a random response, chosen from a pre- defined set within the code (can be changed) when the bot is sent an instruction in my IRC channel.

ircbot

This project builds on some of the code covered in my Minecraft Pi bot project. Mostly the base code from the Linux Voice article.

The code is currently being tested in ##zleap on Freenode.

At the moment magic8 can be sent the following commands:-

  • !umame – returns output of uname -a
  • !uptime – returms system uptime
  • !help – displays list of options
  • !botexit – bot quits irc channel,
  • !magic8 – returns random text
  • !ping – returns pong (used to check the bot is working, left in for legacy
  • !web – returns my own web address (this website) but can be changed
  • !sdtj – returns web address for the South Devon Tech Jam

Notes

uname and uptime are Linux / Unix commands, it is therefore assumed you are running on a GNU / Linux system.

I have created a welcome message from the bot, so when it joins it says hello, also says goodbye if !botexit is sent.

Todo

  • Make the code Python 3
  • Add more options
  • Keep it tidy

Help and Contribute

Feel free to fork the project and make improvements and further customization. Perhaps discuss further on IRC or via social media e.g Mastodon.

Resources

#python, #development, #irc, #application, #bot, #magic8, #network,#sockets #irc, #project,#github, #chat, #responses, #magic8


MastodonPeertubeQoto sign up

Donate using Liberapay

A few years ago, Linux Voice published a really simple IRC bot project in the magazine. I took this and managed to get it to connect to a minecraft Pi game and I could use IRC to send instructions to the game.

In the screenshot below the bot has received an instruction to execute uname -a and the output is directed to the game screen.

mc-irc-bot-thingy

To get all this to work you need:-

  • An IRC client
  • A raspberry pi which should be running Minecraft Pi and the python program, once the game has started the bot should connect.

You also need to connect to either:-

  • An existing IRC server or
  • Your own irc server, which can be another Raspberry Pi on the same network running an IRC server.

note You need to ask if it is Ok to connect bots to IRC servers.

In my code it is connecting to a Raspberry Pi (original model) running an IRC server.

It does work, but there is probably potential here for expansion and improvement.

Resources

#python, #development, #irc, #application, #minecraft, #network,#sockets #irc, #project,#abandonware,#github

Have fun.

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)


MastodonPeertubeQoto sign up

Donate using Liberapay

Programming and AI: A Guide for Parents

This was posted to LinkedIn. I am sharing here as it may be of interest to anyone looking at where the industry is moving and gives an idea of what to be learning. It is also important for parents to understand so they can support learning.

I would encourage everyone to learn to code, I would encourage parents to learn what this is about so they can support their children. After all events such as Code Club or the Tech Jam would require parental permission.

It is also important for parents to understand so they can talk to their children about what they are doing, help them find information and sort out the bad information from the good, understanding how to use online forums and importantly stay safe by not sharing personal or private information.

While learning at home is possible, being able to meet up with other developers helps solve problems, builds social skills and you can get help with bigger projects leading to developing team and leadership skills, all very important to employers.

Programming and AI: A Guide for Parents – Nisha Talagala – Medium

Programming and AI: A Guide for Parents

Article links

Where to learn (or where to get started)

You can learn these skills from a wide range of providers both physical colleges / universities or via online learning,

The developer roadmap may also be of interest,

While schools can help so can events such as Tech Jams or code club. Adults such as youth workers need to understand this technology so they can encourage the learning and not discourage through not understanding and fear that comes with that.

#AI, #parents, #guide, #programming, #medium, #LinkedIn, #Python, #docker, #github, #linux


MastodonPeertubeQoto sign up

Donate using Liberapay

Since Microsoft's acquisition of Github. Quite a few free software projects have moved off the Github platform.

There are alternatives such as Notabug or Debian Salsa that offer a better alternative.

I have now downloaded most of my projects off github in zip format. These can be stored locally or in the cloud until needed.

Some projects will be kept on github, for example media file hosting media for here, until I can find / setup an alternative. I will also keep my Scratch projects on there as they are linked to from the Scratch Ed website. It makes it easier for others.

Given that most of my projects are either complete or abandoned having not been touched for some time. This is an opportunity for a clear out.

My project to collect screenshots for Dis'root have already been moved to Debian Salsa.

#git,#github, #microsoft, #migration, #debian, #salsa, #notabug

Further reading

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo Licenced under Attribution 4.0 International (CC BY 4.0)


MastodonPeertubeQoto sign up

Donate using Liberapay