a.k.a. what to do when your ISP starts blocking sites :(
Set the SOCKS proxy to local SSH tunnel
networksetup -setsocksfirewallproxy "Ethernet" localhost 8080
To clear the domain and port
| # 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 |
| 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, ®ularTextureId); | |
| //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)); |
| 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 |
Mac OS X 10.9.2 で、主専攻実験の GBA 開発環境を構築した際のメモ。
なにか間違ってたらごめんなさい (╹◡╹ )
TA さんの非公式マニュアルを参考に devkitPro なるものをインストールした。
devkitARMupdate.pl を実行し、指示に従って環境変数を設定。
| #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> |
| Outputs of Woodsman. |