forked from yuki-kimoto/gitprep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug that dispaly blog image line number
- Loading branch information
1 parent
5f3ab9d
commit f60788c
Showing
2 changed files
with
50 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use warnings; | ||
use utf8; | ||
use FindBin; | ||
use lib "$FindBin::Bin/../mojo/lib"; | ||
use lib "$FindBin::Bin/../lib"; | ||
use lib "$FindBin::Bin/../extlib/lib/perl5"; | ||
use Gitprep; | ||
|
||
my $user = shift; | ||
|
||
die "User not specifed" unless defined $user; | ||
|
||
my $app = Gitprep->new; | ||
my $dbi = $app->dbi; | ||
|
||
my $public_key = $dbi->model('user')->select('public_keys', id => $user)->value || ''; | ||
|
||
print $public_key; | ||
|
||
=head1 NAME | ||
authorized_keys_command - AuthorizedKeysCommand for sshd | ||
=head1 USAGE | ||
./authorized_keys_command kimoto | ||
This command return user public_key | ||
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