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 FmUtils.smali
.class public Lcom/android/fmradio/FmUtils;
.super Ljava/lang/Object;
.source "FmUtils.java"
# static fields
.field private static final CONVERT_RATE:I = 0xa
.field public static final DEFAULT_STATION:I = 0x3e8
View appveyor.yml
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
View 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
View minimal_expect.c
#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 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
@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 / 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 / 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
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.
*
View 転職先に訊きたいチェックリスト.md

制度

  • 有休…
  • 病休…
  • 育休…
  • 年収(月給、賞与など)…
  • 住宅補助…
  • 通勤補助…
  • 資格手当…
  • 人事評価…
You can’t perform that action at this time.