Skip to content

Instantly share code, notes, and snippets.

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.
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 August 29, 2015 14:00
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.

制度

  • 有休…
  • 病休…
  • 育休…
  • 年収(月給、賞与など)…
  • 住宅補助…
  • 通勤補助…
  • 資格手当…
  • 人事評価…
/*
* 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 / mod_rewrite_rules.apacheconf
Last active September 2, 2015 13:04 — forked from phillipadsmith/mod_rewrite_rules
Mobile site redirection using mod_rewrite
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 / c_icap-0.4.2.patch
Created February 13, 2016 14:16
Patch of c_icap-0.4.2 and c_icap_modules-0.4.2 for MacOSX
--- 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
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
char cmd_str[] = \
"$ te\\x4Ast\\r\\n\r\n"
"> OK\r\n"
"$ hoge\\r\\n\r\n"
"> ERROR\r\n"
"$ error\\r\\n\r\n";
@fenrir-naru
fenrir-naru / ffmpeg_build.sh
Created July 11, 2016 09:31
ffmpeg_build.sh
#!/usr/bin/bash -ex
# original: http://romgrammer.blog.fc2.com/blog-entry-4.html
ffmpeg_dir=`pwd`
srcdir="$ffmpeg_dir/ffmpeg_sources"
prefix="$ffmpeg_dir/ffmpeg_build"
bindir="$ffmpeg_dir/bin"
cpus=$(( (`cat /proc/cpuinfo | awk '/^processor/{print $3}' | tail -1` + 1) / 2 ))
if [ ! -d ffmpeg_sources ]; then mkdir ffmpeg_sources; fi
version: 1.0.{build}.{branch}
configuration: Release
build:
project: tool\NinjaScanLight_tools.sln
verbosity: minimal
after_build:
- cmd: 7z a windows.%APPVEYOR_REPO_BRANCH%.zip %APPVEYOR_BUILD_FOLDER%\tool\build_VC\%CONFIGURATION%\*.exe
artifacts:
- path: windows.*.zip
name: x86 binary