Skip to content

Instantly share code, notes, and snippets.

View edcote's full-sized avatar
🎯
Googler

Edmond Cote edcote

🎯
Googler
View GitHub Profile
@edcote
edcote / why_throttle.md
Last active February 28, 2023 20:40
Linux CPU throttle and I/O performance tips

CPU performance

My workstation's CPU has been throttling and/or running slow for the past 48 hours. Here are the commands that I used to debug the problem.

First, core temperatues were checked:

$ watch sensors
coretemp-isa-0000
Adapter: ISA adapter
@edcote
edcote / ft232h.md
Last active December 23, 2019 15:05
Adafruit FT232H Breakout Notes

I purchased Adafruit FT232H Breakout - General Purpose USB to GPIO+SPI+I2C from Amazon

Preliminaries

  • First, check if device is detected
$ lsusb
Bus 003 Device 018: ID 0403:6014 Future Technology Devices International, Ltd FT232H Single HS USB-UART/FIFO IC
@edcote
edcote / firrtl.md
Created July 14, 2019 17:36
FIRRTL Notes

FIRRTL

Summary

Link to FIRRTL specification here

All FIRRTL circuits consist of a list of modules. Each module as a name, list of ports, and statements.

Types are used to specify the structure of data. Here are examples:

@edcote
edcote / haskell.md
Last active July 9, 2019 04:04
Haskell Notes

Haskell Notes

Installation

# install Haskell compiler
sudo apt install -y ghc
# manual instally to /usr/local/bin
curl -sSL https://get.haskellstack.org/ | sh
@edcote
edcote / oreilly_hands_on_ml.md
Last active December 18, 2018 01:36
Hands-On Machine Learning with Scikit & Tensor Flow Book Notes

Link to book: https://www.amazon.com/Hands-Machine-Learning-Scikit-Learn-TensorFlow/dp/1491962291

Chapter 1

ML is the field of study that gives computers the ability to learn without being explicitly programmed.

A spam filter based on ML techniques automatically learns which words and phrases are god predictors of spam by blocking unusually frequent pattern of words.

A second example where ML shines is for problems that are either too complex or have no known algorithm; speech recognition, for example.

@edcote
edcote / firewall.md
Last active December 3, 2018 00:37
Firewall

Firewall setup

Ubuntu

Official wiki has excellent documentation.

Example commands:

sudo ufw allow ssh/tcp
@edcote
edcote / llvm.md
Last active November 9, 2018 16:36
LLVM development notes
@edcote
edcote / atom.md
Last active November 1, 2018 20:43
Atom editor
@edcote
edcote / gerrit.md
Created October 24, 2018 01:20
Gerrit
@edcote
edcote / riscvsw.md
Last active October 4, 2018 10:02
RISC-V System Software

RISC-V System Software

Ignore the instructions to build GCC/Newlib toolchain. Consult this Linux/RISC-V installation manual instead.

Setup environment variables

module load riscv-tools/local

# old

export RISCV_SW=$CAD_ROOT/riscv-sw