BASED on:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.sun.jna.Library; | |
import com.sun.jna.Native; | |
import com.sun.jna.Pointer; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.sql.Time; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Dump environment variables, system information and other useful information""" | |
import os | |
import contextlib | |
import platform | |
import psutil | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import importlib | |
import os.path | |
import pkgutil | |
def import_all_modules(path, package): | |
# import all modules from this directory (recursively) to register endpoints in api_blueprint | |
# print("++importing all modules from: " + path) | |
pkgs = [] | |
for (_, module_name, ispkg) in pkgutil.iter_modules([path]): | |
# print(f"importing module {module_name!r} in path {path!r} (ispkg={ispkg})") |
See https://github.com/gavinwahl/postgres-json-schema
Command used to convert:
perl -lape 's/\@extschema\@\.//g' validate_json_schema.orig.sql > validate_json_schema.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# curl -k https://gist.githubusercontent.com/iuridiniz/1562fb3f708535d78995d66877727c9c/raw/install_ena_2_5_0.sh | sh | |
set -x -e | |
apt-get install -y \ | |
linux-headers-`uname -r` \ | |
wget \ | |
curl \ | |
build-essential \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from base64 import urlsafe_b64decode, urlsafe_b64encode | |
from uuid import UUID, uuid4 | |
from binascii import Error as BinasciiError | |
def slug(): | |
uuid_ = uuid4() | |
return uuid2slug(uuid_) | |
# https://stackoverflow.com/a/53543324/1522342 | |
def uuid2slug(uuid_): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Description: This script manages routes by adding or removing them. | |
# | |
# Author: Iuri Diniz <iuri @ evolux dooot net dot br> | |
# License: GNU General Public License (GPL) | |
# Support: suporte at evolux dooot net dot br | |
# Copyright: (C) 2019 Evolux Sistemas LTDA. | |
# | |
# This script manages Routes |
NewerOlder