Skip to content

Instantly share code, notes, and snippets.

View smarky7CD's full-sized avatar

Sam A. Markelon smarky7CD

View GitHub Profile
@smarky7CD
smarky7CD / UOV.py
Created July 31, 2023 20:11
Implements an educational version of the Unbalanced Oil and Vinegar Scheme. This is not cryptographically secure code, do not use for anything beyond learning purposes.
# Sam A. Markelon
# 6/21/23
# Implements an educational version of the Unbalanced Oil and Vinegar Scheme
# This version sets linear and constant terms always to 0, only leaving random homogenous terms of degree 2
# See:
# http://www.goubin.fr/papers/OILLONG.PDF Section 10 Remark
# https://researchspace.auckland.ac.nz/bitstream/handle/2292/62095/Cherkashin-2022-thesis.pdf?sequence=1&isAllowed=y Remark 1
# pip3 install numpy
@smarky7CD
smarky7CD / .emacs
Last active September 2, 2020 22:23
My emacs config
;;; package --- Summary
;; Sam A. Markelon (smarky)
;; 08-24-20
;;; Code:
(setq package-enable-at-startup nil)
(setq package-archives '(("org" . "http://orgmode.org/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
@smarky7CD
smarky7CD / test_ARM_asm_with_QEMU_and_gdb.md
Created July 29, 2019 14:26
Short guide on how to test ARM assembly with QEMU and gdb

Using QEMU and gdb-multiarch to test ARM assembly

Install Packages

It is assumed you are running some version of Linux.

Install the necessary packages. The snippet assumes you are using Ubuntu, package names may be different on other distributions.

sudo apt install qemu qemu-user gdb-multiarch gcc-arm-none-eabi
@smarky7CD
smarky7CD / how_to_install_CERN_ROOT.md
Last active June 21, 2018 12:38
A brief guide with no explanations (mostly for myself) on how to install CERN ROOT on Ubuntu. It works for Ubuntu 18.04, may work for other versions and distributions but this is untested.

Install Dependencies

sudo apt install git cmake dpkg-dev python-dev make g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev

# the following are optional but needed for all of the features of ROOT
sudo apt install gfortran libssl-dev libpcre3-dev xlibmesa-glu-dev libglew1.5-dev libftgl-dev libmysqlclient-dev libfftw3-dev graphviz-dev libavahi-compat-libdnssd-dev libldap2-dev libxml2-dev libkrb5-dev libgsl0-dev libqt4-dev

Download ROOT

@smarky7CD
smarky7CD / kaybase.md
Created December 29, 2017 03:01
My Keybase proof for GitHub

Keybase proof

I hereby claim:

  • I am smarky7CD on github.
  • I am smarky (https://keybase.io/smarky) on keybase.
  • I have a public key whose fingerprint is 0A3A 0E80 AB38 595B ACDA 2416 7832 8989 3CBC 0B32

To claim this, I am signing this object: