Skip to content

Instantly share code, notes, and snippets.

fenrir fenrir-naru

Block or report user

Report or block fenrir-naru

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View RasPi lsusb dump with ninja-sca-light
Bus 001 Device 005: ID 10c4:8912 Cygnal Integrated Products, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x10c4 Cygnal Integrated Products, Inc.
View RasPi dmesg dump with ninja-sca-light
Linux version 3.1.9+ (grayg@dc4-arm-01) (gcc version 4.5.1 (Broadcom-2708) ) #90 Wed Apr 18 18:23:05 BST 2012
CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: BCM2708
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 49152
free_area_init_node: node 0, pgdat c03b5660, node_mem_map c0402000
Normal zone: 384 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 48768 pages, LIFO batch:15
@fenrir-naru
fenrir-naru / How to use NinjaScan-Light with your Raspberry Pi
Last active Aug 29, 2015
How to use NinjaScan-Light with your Raspberry Pi
View How to use NinjaScan-Light with your Raspberry Pi
sudo apt-get update && sudo apt-get install subversion # as you need, anything else such as gmake, g++
svn co https://ninja-scan-light.googlecode.com/svn/trunk ninja-scan-light
cd ninja-scan-light/tool
make
# insert your NinjaScan-Light to RasPi USB port
sudo ./build_GCC/log_CSV.out /dev/ttyACM0 --direct_sylphide=on --page=A --page=G --page=M --page=P
# if you want to run log_CSV.out without sudo, then
# $ sudo usermod -a -G dialout <your username, default is "pi">
# and restart your Pi.
@fenrir-naru
fenrir-naru / How to use NinjaScan-Light with RTKLIB
Last active May 19, 2017
How to use NinjaScan-Light with RTKLIB
View How to use NinjaScan-Light with RTKLIB
1. Make an empty file named "direct.gps" in a MicroSD(HC).
2. Make a file named "gps.cfg" in the MicroSD(HC) with containing the following binary (printed in hex format).
B5 62 09 01 10 00 C8 16 00 00 00 00 00 00 97 69 21 00 00 00 02 10 2B 22
B5 62 09 01 10 00 0C 19 00 00 00 00 00 00 83 69 21 00 00 00 02 11 5F F0
B5 62 06 01 08 00 02 10 00 01 01 01 00 00 24 2F
B5 62 06 01 08 00 02 11 00 01 01 01 00 00 25 36
(This information depends on GPS receiver firmware version. please see http://wiki.openstreetmap.org/wiki/UbloxRAW)
3. Insert the MicroSD(HC) to NinjaScan-Light and power-on. NinjaScan-Light will be recognized as COMx.
4. Configure RTKLIB input; Rover from Serial type via COMx and u-blox format.
View 転職先に訊きたいチェックリスト.md

制度

  • 有休…
  • 病休…
  • 育休…
  • 年収(月給、賞与など)…
  • 住宅補助…
  • 通勤補助…
  • 資格手当…
  • 人事評価…
View spidev_test.c
/*
* SPI testing utility (using spidev driver)
*
* Copyright (c) 2007 MontaVista Software, Inc.
* Copyright (c) 2007 Anton Vorontsov <avorontsov@ru.mvista.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
*
@fenrir-naru
fenrir-naru / gist:95669cb8fcbf14c22e59
Last active Sep 21, 2017
How to install max310x driver for RasPi 3.12.26+
View gist:95669cb8fcbf14c22e59
# modify Kconfig to change to tristate
# make driver
sudo make prepare
sudo make modules_prepare KERNELRELEASE=$(uname -r)
sudo make SUBDIRS=drivers/tty/serial modules
sudo make SUBDIRS=drivers/tty/serial modules_install
sudo mv /lib/modules/3.12.26/extra/* /lib/modules/3.12.26+/extra/
sudo rm -r /lib/modules/3.12.26
sudo depmod
@fenrir-naru
fenrir-naru / mod_rewrite_rules.apacheconf
Last active Sep 2, 2015 — forked from phillipadsmith/mod_rewrite_rules
Mobile site redirection using mod_rewrite
View mod_rewrite_rules.apacheconf
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# If the visit is neither html nor directory, stop
RewriteCond %{LA-U:REQUEST_URI} !\.html?$ [NC]
RewriteRule ^ - [L]
@fenrir-naru
fenrir-naru / check_address.bat
Last active May 8, 2019
Address verifier for emailrelay
View check_address.bat
@C:\path\to\bin\ruby.exe -x "%~f0" %*
@exit /b %ERRORLEVEL%
#!/usr/bin/ruby
# coding: utf-8
address = ARGV[0]
def runner(&b)
if RUBY_PLATFORM =~ /mingw/ then
t = Thread::new{b.call}
@fenrir-naru
fenrir-naru / c_icap-0.4.2.patch
Created Feb 13, 2016
Patch of c_icap-0.4.2 and c_icap_modules-0.4.2 for MacOSX
View c_icap-0.4.2.patch
--- c_icap-0.4.2/os/unix/shared_mem.c.orig 2015-08-27 18:01:51.000000000 +0900
+++ c_icap-0.4.2/os/unix/shared_mem.c 2016-02-13 17:46:21.000000000 +0900
@@ -99,6 +99,9 @@ const ci_shared_mem_scheme_t sysv_scheme
#if defined(USE_POSIX_MAPPED_FILES)
+#if defined(__APPLE__)
+#define MAP_ANONYMOUS MAP_ANON
+#endif
You can’t perform that action at this time.