Skip to content

Instantly share code, notes, and snippets.

View marcosricardoss's full-sized avatar
:octocat:
committing...

Marcos Ricardo marcosricardoss

:octocat:
committing...
View GitHub Profile
@marcosricardoss
marcosricardoss / dummy-web-server.py
Created March 22, 2018 19:10 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
@marcosricardoss
marcosricardoss / get-latest-tag-on-git.sh
Created March 4, 2021 15:06 — forked from rponte/get-latest-tag-on-git.sh
Getting latest tag on git repository
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples
@marcosricardoss
marcosricardoss / README.md
Created March 3, 2023 15:44 — forked from magnetikonline/README.md
Install VirtualBox 6.1/6.0/5.2/5.1 guest additions on Ubuntu server guest.
# install_certifi.py
#
# sample script to install or update a set of default Root Certificates
# for the ssl module. Uses the certificates provided by the certifi package:
# https://pypi.python.org/pypi/certifi
import os
import os.path
import ssl
import stat