Skip to content

Instantly share code, notes, and snippets.

View Terminus-IMRC's full-sized avatar
💭
Doing nothing helpful

Yukimasa Sugizaki Terminus-IMRC

💭
Doing nothing helpful
View GitHub Profile
@tshanks
tshanks / .Xdefaults
Created August 14, 2011 16:57
xterm .Xdefaults for Mac OS X's awkward X11 server
# XDarwin only shares the CLIPBOARD properly with the rest of Mac OS X
# (the PRIMARY options don't work) and doesn't properly handle copying
# to multiple buffers (it manages to lose one of them). We only have
# one mouse button. For now, let's just use the good old menu option
# selectToClipboard, even though it breaks extending with the third
# mouse button we don't have.
xterm*selectToClipboard: true
# The OS X xterm doesn't set t_vb in vim, so we need to make the bells
anonymous
anonymous / make_otp_dumper.py
Created October 29, 2012 10:24
Creates a bootcode.bin for dumping the OTP storage area over serial (gpio 14,15 : http://elinux.org/RPi_Low-level_peripherals#General_Purpose_Input.2FOutput_.28GPIO.29 )
import os
r0 = 0
r1 = 1
r2 = 2
r3 = 3
r4 = 4
r5 = 5
r6 = 6
r7 = 7
//Creation of FBO
glGenFramebuffers(NUM_FBO, fboId);
//fbo texture
glGenTextures(NUM_FBO, fboTextureId);
//Regular first texture
glGenTextures(1, &regularTextureId);
//Bind offscreen texture
GL_CHECK(glBindTexture(GL_TEXTURE_2D, 0));
GL_CHECK(glBindTexture(GL_TEXTURE_2D, fboTextureId[i]));
GL_CHECK(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, inTextureWidth, inTextureHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL));
@tpdn
tpdn / Makefile
Last active April 20, 2018 08:59
情報システム実験:組み込みオペレーティングシステム 非公式マニュアル
optusb: optusb.c
gcc -I /opt/local/include/libusb-legacy -L /opt/local/lib/libusb-legacy -lusb-legacy -Wall -o optusb optusb.c
clean:
rm -rf optusb *.o
@yukirii
yukirii / 01_kumikomiOS.md
Last active April 21, 2018 05:36
情報システム実験 組み込みオペレーティングシステム 環境構築メモ

[K-13] 情報システム実験 : 組み込みオペレーティングシステム 環境構築

Mac OS X 10.9.2 で、主専攻実験の GBA 開発環境を構築した際のメモ。

なにか間違ってたらごめんなさい (╹◡╹ )

ARM 開発環境

TA さんの非公式マニュアルを参考に devkitPro なるものをインストールした。

devkitARMupdate.pl を実行し、指示に従って環境変数を設定。

@jld
jld / bp_test.c
Created August 5, 2014 22:26
Example of using a perf_event breakpoint counter to crash on write to a specific location.
#include <fcntl.h>
#include <linux/hw_breakpoint.h>
#include <linux/perf_event.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>
#include <sys/types.h>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Terminus-IMRC
Terminus-IMRC / README
Last active December 3, 2018 05:48
Outputs of Woodsman
Outputs of Woodsman.
pi@raspberrypi ~/qpuinfo $ git log -1 -p
commit d3d4745808231202a19365458e283d730e3d1a2e
Author: Terminus <[email protected]>
Date: Sun Feb 8 05:06:01 2015 +0900
change to point physical address, not bus address
Special thanks to @KOBA789 !
diff --git a/mapmem.c b/mapmem.c