This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN sed -i 's/archive.ubuntu.com/ftp.kaist.ac.kr/g' /etc/apt/sources.list | |
RUN apt-get update && apt-get install -y build-essential cmake git \ | |
&& git clone --depth 1 https://github.com/google/googletest.git \ | |
&& cd /googletest/googletest && mkdir build && cd build \ | |
&& cmake .. && make && cp libgtest*.a /usr/local/lib \ | |
&& apt-get clean && cd / && rm -rf /googletest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package.path = package.path ..";?.lua;test/?.lua;app/?.lua;" | |
pktgen.screen("off"); | |
-- size 200 causes seg fault | |
sizes = {64, 256, 576, 1500}; | |
rates = {1, 5, 10, 20, 40, 50, 100}; | |
interval = 5000; | |
for s = 1, 4 do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# detecting system time changes via timerfd | |
# https://github.com/tsavola/pytimerfd | |
# | |
# Usage: | |
# $ python3 timerfd.py | |
# $ date -s "2 OCT 2006 18:00:00" | |
import ctypes | |
import ctypes.util | |
import selectors | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as GPIO | |
import time | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(12, GPIO.OUT) | |
p = GPIO.PWM(12, 50) | |
p.start(7.5) |
OlderNewer