Skip to content

Instantly share code, notes, and snippets.

View matthijskooijman's full-sized avatar

Matthijs Kooijman matthijskooijman

View GitHub Profile
23:35:56 Clear Settings
23:35:56
-----------------------------------------------------------
Check Connection ...
D:\Documents and Settings\Matthijs\Desktop\GS_Flashprogram_plus_8_0_5_GA\DOS_V7.16\gs_flashprogram.exe -v -S3
23:35:57 gs_flashprogram Ver 7.16
23:35:57 Connection to the board OK!
23:35:57 -------- Completed with ExitCode (8) --------
23:35:57
# grub-install /dev/sda
grub-install: info: executing modprobe efivars 2>/dev/null.
grub-install: info: Looking for /sys/firmware/efi ...
grub-install: info: ... not found. Looking for /proc/device-tree ...
grub-install: info: ... not found.
Installing for i386-pc platform.
grub-install: info: cannot open `/boot/grub/device.map': No such file or directory.
grub-install: info: copying `/usr/lib/grub/i386-pc/ata.mod' -> `/boot/grub/i386-pc/ata.mod'.
grub-install: info: copying `/usr/lib/grub/i386-pc/cpio.mod' -> `/boot/grub/i386-pc/cpio.mod'.
grub-install: info: copying `/usr/lib/grub/i386-pc/echo.mod' -> `/boot/grub/i386-pc/echo.mod'.
@matthijskooijman
matthijskooijman / gist:ef646a0a6f6fa0a2585b
Last active August 29, 2015 14:23
Intel graphics package versions to compare with https://01.org/linuxgraphics/downloads
root@grubby:/# dpkg -l xserver-xorg-video-intel libdrm2 libgl1-mesa-dri libgl1-mesa-glx linux-image-\* libva1 i965-va-driver libcairo2 xserver-xorg-core intel-
gpu-tools
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=================================-=====================-=====================-========================================================================
ii libcairo2:i386 1.14.0-2.1 i386 Cairo 2D vector graphics library
ii libdrm2:i386 2.4.58-2 i386 Userspace interface to kernel DRM services -- runtime
ii libgl1-mesa-dri:i386
@matthijskooijman
matthijskooijman / gist:7aee77e94b47ab254341
Last active August 29, 2015 14:26
Arduino USB->Serial adapter with DTR, RTS and break support
// Works on Leonardo. Does not seem to work for Due. See https://github.com/arduino/Arduino/pull/3343
uint32_t brkStart = 0;
uint16_t brkLength = 0;
uint32_t baud = 9600;
uint8_t DTR_PIN = A0;
uint8_t RTS_PIN = A1;
#if defined(ARDUINO_ARCH_AVR)
void dump(decode_results *results) {
int count = results->rawlen;
for (int i = 0; i * 2 + 4 < count; i++) {
int ibyte = i / 8;
int ibit = 7 - i % 8;
Serial.print(results->rawbuf[(ibyte * 8 + ibit)*2 + 4]*USECPERTICK > 600 ? "1" : "0");
if (i % 8 == 7)
Serial.print(" ");
}
Serial.println();
matthijs@grubby:~$ cat check.py
line = "10001000 10001000 10001000 10001000 10001000 00100100 11000000 01110000 01000000 00000000 00000000 00000000 00000000 00110001"
summed = 0
for byte in line.split(" "):
reversed = byte[::-1]
b = int(reversed, 2)
summed += b
print ("B: " + hex(b))
print ("S: " + hex(summed))
matthijs@grubby:~$ mtr tika.stderr.nl --report
Start: Sat Aug 8 16:59:00 2015
HOST: grubby Loss% Snt Last Avg Best Wrst StDev
1.|-- registerlafonera.fon.com 0.0% 10 0.7 0.7 0.5 0.8 0.0
2.|-- 82-197-222-1.dsl.cambrium 0.0% 10 4.8 4.8 4.7 5.0 0.0
3.|-- 217.19.17.121 0.0% 10 11.9 6.1 4.8 11.9 2.4
4.|-- p2p1.eunetworks-2.router. 50.0% 10 6.7 9.5 6.4 20.8 6.3
5.|-- amsix-501.xe-0-0-0.jun1.b 30.0% 10 8.2 11.5 7.9 20.3 5.7
6.|-- no-reverse-yet-please-set 60.0% 10 10.1 13.2 10.1 22.5 6.2
7.|-- tikatika.nl 90.0% 10 10.1 10.1 10.1 10.1 0.0
// Copyright 2015, Matthijs Kooijman <[email protected]>
//
// Permission is hereby granted, free of charge, to anyone
// obtaining a copy of this document and accompanying files, to do
// whatever they want with them without any restriction, including, but
// not limited to, copying, modification and redistribution.
//
// NO WARRANTY OF ANY KIND IS PROVIDED.
//
//
void printByte(uint8_t b) {
if (b < 0x10) Serial.print("0");
Serial.print(b, HEX);
}
void dump(uint8_t *p, size_t len) {
for (size_t i = 0; i < len; ++i) {
if (i % 32 == 0) {
if (i != 0)
2015/09/25 18:14:55 {
2015/09/25 18:14:55 "class": "thread-group-added",
2015/09/25 18:14:55 "payload": {
2015/09/25 18:14:55 "id": "i1"
2015/09/25 18:14:55 },
2015/09/25 18:14:55 "type": "notify"
2015/09/25 18:14:55 }
2015/09/25 18:14:55 Open On-Chip Debugger 0.9.0-gd4b7679 (2014-10-03-00:26)
2015/09/25 18:14:55 Licensed under GNU GPL v2
2015/09/25 18:14:55 For bug reports, read