Skip to content

Instantly share code, notes, and snippets.

View gnuos's full-sized avatar

Kevin gnuos

View GitHub Profile
@leiless
leiless / ipv4_ipv6_doh_doq.md
Last active December 25, 2025 10:43
List of direct IPv4/IPv6 DoH/DoQ

dns.google / 8888.google

8.8.4.4
8.8.8.8
2001:4860:4860:0:0:0:0:64
2001:4860:4860:0:0:0:0:6464
2001:4860:4860:0:0:0:0:8844
2001:4860:4860:0:0:0:0:8888
@samukasmk
samukasmk / pandas-read_sql-from-sqlalchemy-models.py
Last active February 21, 2020 11:05
Pandas: read_sql from SQLAlchemy Models
# Example of read_sql loading dataframe from database, using SQLAlchemy Models (possibily from flask app)
# import pandas lib
import pandas as pd
# import sqlalchemy libs
from flask_app.db import express_session
from flask_app.models import SalesRegistry
from flask_app.app import create_app, db
@arusso
arusso / make-san-cert.rb
Last active June 1, 2021 21:20
Generating a SAN Certificate in Ruby
require 'openssl'
require 'openssl-extensions/all'
keyfile = '/tmp/mycert.key'
csrfile = '/tmp/mycert.csr'
file = File.new(keyfile,'w',0400)
key = OpenSSL::PKey::RSA.new 2048
file.write(key)