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 / force-overwrite.sh
Created July 1, 2024 03:51
Force overwrite packages when I got this error "The following packages have unmet dependencies: libgdal30 : Depends: libodbcinst2 (>= 2.3.1) but it is not going to be installed"
sudo apt install -o DPkg::Options::="--force-overwrite" libodbcinst2 unixodbc-common
@vicradon
vicradon / use-vscode-on-browser-from-vm.md
Last active June 18, 2024 15:11
Use VSCode on browser from VM

Use VSCode on browser from a virtual machine

You simply have to install vscode's code CLI on the virtual machine. Use this command:

curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz
tar -xf vscode_cli.tar.gz
cd vscode_cli
./code tunnel
@vicradon
vicradon / petstoreoai.json
Created June 14, 2024 14:05
Petstore OAI Spec
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Petstore",
"description": "The Petstore API but using Express.js",
"license": {
"name": "MIT",
"url": "https://opensource.org/licenses/MIT"
}
@vicradon
vicradon / redirect-to-dev-null.sh
Created June 14, 2024 09:28
Redirect a command to /dev/null
command > /dev/null 2>&1
@vicradon
vicradon / remove-docker-images.md
Created June 14, 2024 07:44
Remove docker images

Remove all dangling images docker image prune -a

Remove all unused images, volumes, and networks

docker system prune --all

@vicradon
vicradon / how-nginx-works.md
Last active June 6, 2024 09:03
How does Nginx Work?

How Nginx Works

Nginx works using configuration files. You define a configuration for a single site or all the sites in a machine and Nginx serves the content of that defined site. In the past, folks defined new sites in the /etc/nginx/sites-available and /etc/nginx/sites-enabled directories. These days, Nginx suggests that you use the conf.d directory. The default Nginx config serves the default Nginx page, i.e. welcome to Nginx. But you can easily replace it with something simple that reverse proxies your requests. Something like this:

http {
    server {
        listen 80;

 location / {
@vicradon
vicradon / python_ip_interfaces.py
Created May 25, 2024 20:05
This gist contains a python script that outputs IP addresses and assigned interfaces from a file generated by the command 'show ip interface brief'
def get_file_content(filelocation):
try:
with open(filelocation, "r") as file:
content = file.read()
return content
except FileNotFoundError:
print("The file was not found.")
except PermissionError:
print("Permission denied.")
except Exception as e:
@vicradon
vicradon / 0000-networking-notes.md
Last active May 30, 2024 07:40
Bunch of networking notes

Networking Notes

A bunch of notes about networking related concepts such as TCP/IP, DNS, BGP, OSPF, etc.

@vicradon
vicradon / 000-bunch-of-algo-solutions.md
Last active May 25, 2024 10:52
A bunch of Algo solutions

Bunch of Algo Solutions

This gist contains a bunch of algo solutions

Cisco IOS Images for GNS3

Working the CCNA exams with GNS3 software is a great way. But, you need Cisco IOS images for GNS3.

You can use many Cisco IOS images on GNS3, but most of them may be problematic.

I would recommend reading the related article to download Cisco IOS images running in GNS3.

Cisco IOS Images for GNS3