Skip to content

Instantly share code, notes, and snippets.

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
@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
#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 / 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
@fenrir-naru
fenrir-naru / check_address.bat
Last active May 8, 2019 15:17
Address verifier for emailrelay
@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 / 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 / gist:95669cb8fcbf14c22e59
Last active September 21, 2017 20:21
How to install max310x driver for RasPi 3.12.26+
# 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
/*
* 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 / How to use NinjaScan-Light with RTKLIB
Last active May 19, 2017 02:55
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.