Skip to content

Instantly share code, notes, and snippets.

View kevin-bowers's full-sized avatar

Kevin Bowers kevin-bowers

View GitHub Profile
@kevin-bowers
kevin-bowers / mariadb.sources
Created July 29, 2023 22:04
mariadb.sources
# MariaDB 10.11 repository list - created 2023-07-29 22:02 UTC
# https://mariadb.org/download/
X-Repolib-Name: MariaDB
Types: deb
# deb.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details.
# URIs: https://deb.mariadb.org/10.11/ubuntu
URIs: https://mirror.rackspace.com/mariadb/repo/10.11/ubuntu
Suites: jammy
Components: main main/debug
Signed-By: /etc/apt/keyrings/mariadb-keyring.pgp
@kevin-bowers
kevin-bowers / cve_scan.py
Created March 26, 2019 20:26
Checks if a CentOS/RHEL system is vulnerable to a supplied list of CVEs
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import argparse
import os
import re
import requests
from tqdm import tqdm
import yum
'''
#!/usr/bin/env python
import argparse
import configparser
import os
import pyotp
def create_config(account_name):
config = configparser.ConfigParser()
config.add_section(account_name)
import requests
import json
def download(file_id):
url = 'https://send.firefox.com/assets/download/{}'.format(file_id)
r = requests.get(url, stream=True)
meta_data = json.loads(r.headers['X-File-Metadata'])
file_name = meta_data['filename']
local_file = '/tmp/{}'.format(file_name)
if r.status_code == 200:
import binascii
import json
import random
import requests
import sys
def sha256sum(filename):
import hashlib
from functools import partial
with open(filename, mode='rb') as f:
@kevin-bowers
kevin-bowers / keybase.md
Created March 24, 2016 01:52
keybase.md

Keybase proof

I hereby claim:

  • I am kevin-bowers on github.
  • I am bowers (https://keybase.io/bowers) on keybase.
  • I have a public key whose fingerprint is 6178 BFCD F8D1 E874 C1BB 3C82 56E1 825F 53BF 4AD9

To claim this, I am signing this object:

@kevin-bowers
kevin-bowers / tmux-cheatsheet.markdown
Created February 23, 2016 17:02 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
+ EBML head
|+ EBML version: 1
|+ EBML read version: 1
|+ EBML maximum ID length: 4
|+ EBML maximum size length: 8
|+ Doc type: matroska
|+ Doc type version: 4
|+ Doc type read version: 2
+ Segment, size 3154860255
|+ Seek head (subentries will be skipped)
@kevin-bowers
kevin-bowers / fastcgi settings
Created May 21, 2015 05:58
fastcgi settings
fastcgi_cache_path /dev/shm/nginx/cache levels=1:2 keys_zone=KBME:100m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header http_500;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;