Skip to content

Instantly share code, notes, and snippets.

View qlixed's full-sized avatar

QliXeD - Ezequiel Hector Brizuela qlixed

  • Red Hat
  • Buenos Aires, Argentina
  • 17:55 (UTC -03:00)
  • X @qlixed
View GitHub Profile
@qlixed
qlixed / https_with_syscerts.py
Last active August 19, 2021 19:02
A python requests HTTPS Adapter that load the default system certificates to authenticate connections
import ssl
from requests.adapters import HTTPAdapter
"""
HTTPSWithSysCerts:
Allows the validation of a https connection with the System installed CAs.
This help you to avoid the "verify=False" option and allows to check any
Local installed certificates, including the manually installed ones, like
tipical internal corporate CA.
@qlixed
qlixed / ocp-project-snapshot.sh
Created June 25, 2020 23:12 — forked from eitchugo/ocp-project-snapshot.sh
OpenShift Project Snapshot for Troubleshooting
#!/bin/bash
#
# check oc/login
oc whoami 1> /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "ERROR: You need to be logged in the cluster with 'oc' before running this."
exit 1
fi
@qlixed
qlixed / discord-keep
Created May 26, 2020 06:31
Keep a X / GUI program running in background when it restarts. Check the comment for more info!
#!/bin/bash
# Keep a program running in background when it restart.
# I make a generalization of the script ot use with any binary, but
# initially I use it for Discord as is show here.
# Discord have a know bug of the chromium/electron platform that
# make it go down sometimes.
# If you're using discord to coordinate with your friends a game you
# will be doomed with this issue!.
# This script will keep discord running and minimize it when is
# restarted to avoid any interuption of your game
@qlixed
qlixed / keybase.md
Created October 23, 2019 22:18
Keybase proof

Keybase proof

I hereby claim:

  • I am qlixed on github.
  • I am qlixed (https://keybase.io/qlixed) on keybase.
  • I have a public key ASAhmiA1ZuEAiBBM2T5BhNZvCwkWaDgHjgno15MUVCLnbgo

To claim this, I am signing this object:

@qlixed
qlixed / pyints.py
Created August 25, 2017 20:42
Python integer particularities in CPython
In [1]: a = 1
In [2]: b = 1
In [3]: a is b
Out[3]: True
In [4]: id(a)
Out[4]: 140720033629792