Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy Shevchenko andy-shev

View GitHub Profile
@andy-shev
andy-shev / sfi-dump
Last active Nov 25, 2020
Dumb SFI table dumper
View sfi-dump
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ts=4 sw=4 et ai si
from __future__ import print_function
import operator
import os
import struct
import sys
@andy-shev
andy-shev / fdcalcpwm.py
Last active Jun 24, 2016
Fractional divider for LPSS PWM
View fdcalcpwm.py
#!/usr/bin/python -tt
# -*- coding: UTF-8 -*-
# vim: ts=4 sw=4 et ai si
import sys
import os
import operator
import math
import fractions
@andy-shev
andy-shev / fdcalcspi.py
Last active Jul 1, 2021
Quark SoC SPI baudrate calculator
View fdcalcspi.py
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# vim: ts=4 sw=4 et ai si
import sys
import os
import operator
import math
import fractions
@andy-shev
andy-shev / fdcalc.py
Last active Aug 29, 2015
Fractional divider calculator
View fdcalc.py
#!/usr/bin/python -tt
# -*- coding: UTF-8 -*-
# vim: ts=4 sw=4 et ai si
import sys
import os
import operator
import math
import fractions
View keybase.md

Keybase proof

I hereby claim:

  • I am andy-shev on github.
  • I am 0andriy (https://keybase.io/0andriy) on keybase.
  • I have a public key whose fingerprint is 8626 4E52 59C2 F682 8DDE 7DC0 993D FFF3 7739 4B2D

To claim this, I am signing this object: