Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View vicradon's full-sized avatar
🥑
creating technical content

Osinachi Chukwujama vicradon

🥑
creating technical content
View GitHub Profile
@vicradon
vicradon / Setting-the-azure-subscription-for-an-azure-cli-session.md
Created March 28, 2024 11:47
How to list and set the current active subscription in an Azure CLI shell

Listing subscriptions

For an account, you can list the available subscriptions using the command below:

az account subscription list --output table

It should output something like:

@vicradon
vicradon / ansible-guide.md
Created March 28, 2024 11:18
A guide on using Ansible for for IT automation and configuration management

An Ansible Guide

Ansible is an IaC tool that can help in provision infrastructure in virtual machines and update software in these machines.

@vicradon
vicradon / Setting up an ssh config.md
Created March 28, 2024 10:42
This gist explains the process of setting up and SSH config file that makes it easier for you to connect to remote hosts

Getting started

SSH is an integral part of a software engineer's day to day activity. You can use SSH commands to connect to a remotely hosted machine over the internet or a local network. The normal way to connect to a machine is using this syntax:

ssh -i identityfile.pem username@hostname 

You could also use a password. There's always a hassle to type this complete command, so you might want to abstract it to an alias in your ~/.bashrc or ~/.bash_profile file like this:

@vicradon
vicradon / trash-writing.md
Created March 18, 2024 23:21
A collection of trash writing that I don't know where it's leading to

If you have ever used Heroku to deploy an application, you'll

In those days when we Heroku still offered free dynos without exception, deploying applications was a breeze. Well, after you have figured the issue making your app show this:

Heroku allowed a Git-based deployment and only needed a Procfile in your project directory with the right command to deploy your application. Even if you could do continuous deployment when you connect to a Github repository, you'll never encounter Github Actions.

Github Actions can actually help you deploy to a platform like Heroku, or Render, or Vercel, or Azure App Service. It goes beyond this and extends to powering continuous deployment to virtual machines, serverless functions, Kubernetes services, etc. The central idea is that a workflow runs when an event occurs on your Github repository. You can see a demo of such behavior in this Github repository. If you carry out any action such as opening a new issue, making a pull request, or forking the repo, a Github actio

@vicradon
vicradon / create-unix-socket-server.py
Created February 11, 2024 04:11
This script allows you to open a socket connection on port 80 on a unix machine. It requires elevated privileges to run.
import socket
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_socket.bind(('localhost', 80))
server_socket.listen(1)
print('Server listening on port 80...')
@vicradon
vicradon / productivity-tools.md
Created February 9, 2024 07:27
All my productivity tools in one place
@vicradon
vicradon / add-external-user-to-azure-using-powershell.ps1
Created February 6, 2024 19:05
Perform a bulk-invite of external users to an Azure Entra tenant using Powershell commands
#Requires -Modules Microsoft.Graph.Identity.SignIns, Microsoft.Graph.Users
Install-Module -Name Az -Repository PSGallery -Force
Connect-AzAccount
Install-Module -Name Microsoft.Graph
Connect-MgGraph -Scopes 'User.ReadWrite.All'
@vicradon
vicradon / analyze-image.py
Last active February 5, 2024 08:27
Image analysis lab
from dotenv import load_dotenv
import os
from array import array
from PIL import Image, ImageDraw
import sys
import time
from matplotlib import pyplot as plt
import numpy as np
# import namespaces
@vicradon
vicradon / microsoft-partners.txt
Created January 23, 2024 16:03
Microsoft Partners that could hire you for jobs and stuff
https://appsource.microsoft.com/en-us/marketplace/partner-dir