This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use utf8; | |
use FindBin qw($Bin); | |
use Encode; | |
use YAML; | |
use Net::Twitter::Lite::WithAPIv1_1; | |
use DateTime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/vbash | |
source /opt/vyatta/etc/functions/script-template | |
SET=${SBIN_PATH}/my_set | |
COMMIT=${SBIN_PATH}/my_commit | |
configure | |
current_set_ipaddr=$($API returnValue vpn l2tp remote-access outside-address) | |
current_ext_ipaddr=$(echo -n "$(run show interfaces pppoe pppoe0)" | grep inet | cut -d' ' -f6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use utf8; | |
binmode STDIN, ':encoding(utf8)'; | |
binmode STDOUT, ':encoding(utf8)'; | |
my $path = $ARGV[0] || ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/nf-pw2md.rb b/nf-pw2md.rb | |
index 11862d4..c5581b2 100755 | |
--- a/nf-pw2md.rb | |
+++ b/nf-pw2md.rb | |
@@ -54,7 +54,8 @@ RE_BLINE_PW = "^-{3}" | |
RE_MAP = {} | |
-RE_MAP[RE_COMMENT_PW] = lambda{|x,y| "<!-- #{x} -->" } | |
+#RE_MAP[RE_COMMENT_PW] = lambda{|x,y| "<!-- #{x} -->" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Gollum | |
class Macro | |
class ListTree < Gollum::Macro | |
def render(tree_expr, heading_level = 3) | |
re = Regexp.new("^(" + tree_expr + ")\/"); | |
subtree = {} | |
result = '' | |
if @wiki.pages.size > 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
LIST=`find . -type d -name ".git" -prune -or -type f -print` | |
# lsコマンドのオプションはFreeBSD 10.1のlsコマンドを想定しているので注意 | |
for f in ${LIST}; do | |
FDATE=`LANG=C ls -l -D "%a, %d %b %Y %T %z" "$f" | cut -d " " -f 9-14` | |
FNAME=`basename "$f"` | |
echo "[$FDATE] [$FNAME] [$f]" | |
git add "$f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUBSYSTEM!="tty", GOTO="gpsd_rules_end" | |
# u-blox AG, u-blox 7 [linux module: cdc_acm] | |
ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a7", SYMLINK+="gps%n", TAG+="systemd", ENV{SYSTEMD_WANTS}="gpsdctl@%k.service" | |
ACTION=="remove", TAG+="systemd", ENV{SYSTEMD_WANTS}="gpsdctl@%k.service" | |
LABEL="gpsd_rules_end" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpio_shutdown: gpio_shutdown.o | |
cc -o $@ $^ -lwiringPi | |
.c.o: | |
cc -c $< | |
clean: | |
@rm gpio_shutdown | |
@rm gpio_shutdown.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Nru arib25/b_cas_card.c.orig arib25/b_cas_card.c | |
--- arib25/b_cas_card.c.orig 2013-08-22 00:40:00.740962104 +0900 | |
+++ arib25/b_cas_card.c 2013-08-22 00:42:34.592962106 +0900 | |
@@ -135,6 +135,7 @@ | |
static int init_b_cas_card(void *bcas) | |
{ | |
int m; | |
+ int retry_count; | |
B_CAS_CARD_PRIVATE_DATA *prv; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- BonDriver.cpp Thu Aug 22 19:52:37 2013 | |
+++ BonDriver.cpp Thu Aug 22 19:55:00 2013 | |
@@ -9,10 +9,21 @@ | |
BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) | |
{ | |
+ INT size = 0; | |
+ LPTSTR p = NULL; | |
+ | |
switch(ul_reason_for_call){ |
OlderNewer