Skip to content

Instantly share code, notes, and snippets.

Avatar

KenichiroMATOHARA matoken

View GitHub Profile
View lsusb
Bus 001 Device 002: ID 0bda:0119
Bus 002 Device 002: ID 044e:3017
Bus 004 Device 004: ID 05ca:18b2
Bus 001 Device 001: ID 1d6b:0001
Bus 002 Device 001: ID 1d6b:0001
Bus 003 Device 001: ID 1d6b:0001
Bus 004 Device 001: ID 1d6b:0002
View R_Pi_Console.md

RaspberryPi とモバイルバッテリーの組み合わせで結構長時間利用できます.
手元には更にUSB 給電で動作するモニタがあるのでこの組み合わせで持ち運びパソコンとして使えないかなと少し試してみました.

用意したもの

  • Raspberry Pi modelB(512MB) ** KBD+Network でUSBx2 欲しいのでmodel B
  • Century LCD-10000V(USB給電のD-Sub15Pin入力モニタ)
View loginlockdown.pot
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
View ja.po
# Japanese translations for PACKAGE package
# PACKAGE パッケージに対する英訳.
# Copyright (C) 2014 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# KenichiroMATOHARA <matoken@kagolug.org>, 2014.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
View loginlockdown.php_diff
369a370,371
> load_plugin_textdomain( 'loginlockdown', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
>
390c392
< $error->add('empty_username', __('<strong>ERROR</strong>: The username field is empty.'));
---
> $error->add('empty_username', __('<strong>ERROR</strong>: The username field is empty.', 'loginlockdown') );
393c395
< $error->add('empty_password', __('<strong>ERROR</strong>: The password field is empty.'));
---
View jl-bct.bct.xz.base64
/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4A/vAQtdAFK+WGk31RuD8HmRmmBthRp6nvR6WMNiI9EQ
+TKQ9jc/wrVLLwbT+5e2trMiKE+0un/7tPSrFQG7A57MZQ3iN0eVyq/7ukxZupDjcWG4LpSEt1Tj
qRH35t+oJpEphDCDlGNDJfJ+YYRzy5S3N+yurKwioN+0r4eupoSTFRpWYGzfkjyq/SArins3r0Ls
1FrIv8rFtXdcVxDrUhImr0a1ece1xe1hrkcmVOcOSrF4Nuu596Fp62/3K/ymrgMvePVyVOo8/Sj4
qWRuY7Cxefi1gZPs8vJ10AjHky334Doh+vtpZg2qMc44s+t8g1XbT2Ji/74g2paib05mDWvYVT1X
stYOLJizDYssZtQ1AAAApAR3ERQjCWYAAacC8B8AAAFUkCyxxGf7AgAAAAAEWVo=
View inotyfy-post.pl
#!/usr/bin/perl
use strict;
use warnings;
my $WATCHDIR = '/var/www/owncloud/data/mk/files/InstantUpload/';
my $FLICKR_TOKEN = 'xxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxx';
my $jpg;
open CMD, "/usr/bin/inotifywait -m -e moved_to --format %f $WATCHDIR |";
while($jpg=<CMD>){
View _proc_bus_input_devices
I: Bus=0011 Vendor=0001 Product=0001 Version=ab54
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input0
U: Uniq=
H: Handlers=sysrq kbd event0
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
View lingrbot_web.cgi
#!/usr/bin/perl
use strict;
use warnings;
open my $OUT, ">> /home/mk/public_html/lingr.log";
foreach my $key (keys %ENV) {
print $OUT "$key$ENV{$key}\n";
}
close $OUT;
View foo.perl
#!/usr/bin/perl
use strict;
use warnings;
use Encode;
use Email::MIME;
use Email::MIME::ContentType;
use LWP::Simple;
my $ROOM = 'kagolug';
my $BOT_NAME = 'KagolugML_bot';
You can’t perform that action at this time.