Article: https://www.huffingtonpost.kr/entry/story_kr_5c207f14e4b0407e907caca4?ncid=other_email_o63gt2jcad4&utm_campaign=share_email

어머니의 집

어머니 집에는 내가 대학시절 차를 마실 때 썼던 그릇이 남아있을 것 같아. 가서 찾아보고 싶다.

그 그릇에는 안에 물고기가 그려져 있었다. 물을 담으면 물고기가 좋아할 것 같은 생각이 들었다.

스플렁크를 도커 위에서 실행할 때 이런 메시지를 보게 되었습니다. guest OS 안에서 파일시스템을 살펴보니 아래와 같네요.


[email protected]:/opt/splunk/var/lib/splunk# df -h
Filesystem                                                                                        Size  Used Avail Use% Mounted on
/dev/mapper/docker-202:2-260827                                                                    99G  1.1G   93G   2% /
tmpfs                                                                                             4.0G     0  4.0G   0% /dev
shm                                                                                                64M     0   64M   0% /dev/shm
tmpfs                                                                                             4.0G     0  4.0G   0% /sys/fs/cgroup
tmpfs                                                                                             4.0G     0  4.0G   0% /run/secrets
/dev/xvdf1                                                                                        100G   24G   77G  24% /opt/data
/dev/xvda2                                                                                         16G   14G  477M  97% /opt/splunk/var

/opt/splunk/var 를 별도의 디스크로 마운트 하고 있었습니다. docker 실행할 때 마운트 옵션을 이렇게 바꾸었습니다.

이전


-v /opt/splunk-new-clean/etc:/opt/splunk/etc \
-v /opt/splunk-new-clean/var/lib/splunk:/opt/splunk/var/lib/splunk

이후


-v /opt/splunk-new-clean/etc:/opt/splunk/etc \
-v /opt/splunk-new-clean/var:/opt/splunk/var

그러고 나서 다시 파일시스템을 살펴보니 아래와 같이 표시되네요.


[email protected]:/$ df -h
Filesystem                                                                                        Size  Used Avail Use% Mounted on
/dev/mapper/docker-202:2-260827                                                                    99G  1.1G   93G   2% /
tmpfs                                                                                             4.0G     0  4.0G   0% /dev
shm                                                                                                64M     0   64M   0% /dev/shm
tmpfs                                                                                             4.0G     0  4.0G   0% /sys/fs/cgroup
tmpfs                                                                                             4.0G     0  4.0G   0% /run/secrets
/dev/xvdf1                                                                                        100G   25G   76G  25% /opt/data
/dev/xvda2                                                                                         16G   14G  846M  95% /etc/hosts

sourcetype은 _json 또는 json_no_timestamp를 써야겠다.
index는 이 데이터가 어느 인덱스에 들어갈지를 정하는데 사용한다. HEC 설정에 기본 인덱스가 미리 정해져있다, 그래서 입력 데이터에 index 필드는 선택사항이다.
event는 꼭 있어야한다.

curl -X POST -H 'Authorization: Splunk 0c04fc3c-a84c-46bf-866c-363907385895' -d '{"sourcetype": "json_no_timestamp", "index":"index_anyweb", "event":{"name":"Guy", "number":"0001"} }' http://splunk-8088.youre.space:55900/services/collector

Payload 참고


[Plack::Sandbox::_2fhome_2fimyaman_2fwebhook_2dgithub_2ddevopskoreaorg_2fapp_2epl:9715] debug @2019-04-10 23:54:51> $VAR1 = {
          'pusher' => {
                        'name' => 'imyaman',
                        'email' => '[email protected]'
                      },
          'deleted' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
          'repository' => {
                            'updated_at' => '2019-04-10T14:52:41Z',
                            'issues_url' => 'https://api.github.com/repos/imyaman/sys5-co/issues{/number}',
                            'created_at' => 1498210322,
                            'tags_url' => 'https://api.github.com/repos/imyaman/sys5-co/tags',
                            'issue_comment_url' => 'https://api.github.com/repos/imyaman/sys5-co/issues/comments{/number}',
                            'contributors_url' => 'https://api.github.com/repos/imyaman/sys5-co/contributors',
                            'comments_url' => 'https://api.github.com/repos/imyaman/sys5-co/comments{/number}',
                            'watchers' => 0,
                            'git_tags_url' => 'https://api.github.com/repos/imyaman/sys5-co/git/tags{/sha}',
                            'compare_url' => 'https://api.github.com/repos/imyaman/sys5-co/compare/{base}...{head}',
                            'id' => 95205676,
                            'assignees_url' => 'https://api.github.com/repos/imyaman/sys5-co/assignees{/user}',
                            'archived' => $VAR1->{'deleted'},
                            'url' => 'https://github.com/imyaman/sys5-co',
                            'collaborators_url' => 'https://api.github.com/repos/imyaman/sys5-co/collaborators{/collaborator}',
                            'html_url' => 'https://github.com/imyaman/sys5-co',
                            'commits_url' => 'https://api.github.com/repos/imyaman/sys5-co/commits{/sha}',
                            'issue_events_url' => 'https://api.github.com/repos/imyaman/sys5-co/issues/events{/number}',
                            'notifications_url' => 'https://api.github.com/repos/imyaman/sys5-co/notifications{?since,all,participating}',
                            'svn_url' => 'https://github.com/imyaman/sys5-co',
                            'fork' => $VAR1->{'deleted'},
                            'git_refs_url' => 'https://api.github.com/repos/imyaman/sys5-co/git/refs{/sha}',
                            'forks_url' => 'https://api.github.com/repos/imyaman/sys5-co/forks',
                            'contents_url' => 'https://api.github.com/repos/imyaman/sys5-co/contents/{+path}',
                            'size' => 1454,
                            'has_downloads' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
                            'node_id' => 'MDEwOlJlcG9zaXRvcnk5NTIwNTY3Ng==',
                            'labels_url' => 'https://api.github.com/repos/imyaman/sys5-co/labels{/name}',
                            'milestones_url' => 'https://api.github.com/repos/imyaman/sys5-co/milestones{/number}',
                            'has_projects' => $VAR1->{'repository'}{'has_downloads'},
                            'ssh_url' => '[email protected]:imyaman/sys5-co.git',
                            'keys_url' => 'https://api.github.com/repos/imyaman/sys5-co/keys{/key_id}',
                            'merges_url' => 'https://api.github.com/repos/imyaman/sys5-co/merges',
                            'watchers_count' => 0,
                            'trees_url' => 'https://api.github.com/repos/imyaman/sys5-co/git/trees{/sha}',
                            'private' => $VAR1->{'deleted'},
                            'statuses_url' => 'https://api.github.com/repos/imyaman/sys5-co/statuses/{sha}',
                            'has_issues' => $VAR1->{'repository'}{'has_downloads'},
                            'downloads_url' => 'https://api.github.com/repos/imyaman/sys5-co/downloads',
                            'deployments_url' => 'https://api.github.com/repos/imyaman/sys5-co/deployments',
                            'full_name' => 'imyaman/sys5-co',
                            'stargazers_url' => 'https://api.github.com/repos/imyaman/sys5-co/stargazers',
                            'blobs_url' => 'https://api.github.com/repos/imyaman/sys5-co/git/blobs{/sha}',
                            'default_branch' => 'master',
                            'languages_url' => 'https://api.github.com/repos/imyaman/sys5-co/languages',
                            'stargazers' => 0,
                            'description' => undef,
                            'teams_url' => 'https://api.github.com/repos/imyaman/sys5-co/teams',
                            'stargazers_count' => 0,
                            'git_commits_url' => 'https://api.github.com/repos/imyaman/sys5-co/git/commits{/sha}',
                            'owner' => {
                                         'organizations_url' => 'https://api.github.com/users/imyaman/orgs',
                                         'avatar_url' => 'https://avatars0.githubusercontent.com/u/1654540?v=4',
                                         'gravatar_id' => '',
                                         'id' => 1654540,
                                         'received_events_url' => 'https://api.github.com/users/imyaman/received_events',
                                         'node_id' => 'MDQ6VXNlcjE2NTQ1NDA=',
                                         'email' => '[email protected]',
                                         'name' => 'imyaman',
                                         'following_url' => 'https://api.github.com/users/imyaman/following{/other_user}',
                                         'html_url' => 'https://github.com/imyaman',
                                         'login' => 'imyaman',
                                         'url' => 'https://api.github.com/users/imyaman',
                                         'site_admin' => $VAR1->{'deleted'},
                                         'subscriptions_url' => 'https://api.github.com/users/imyaman/subscriptions',
                                         'starred_url' => 'https://api.github.com/users/imyaman/starred{/owner}{/repo}',
                                         'type' => 'User',
                                         'repos_url' => 'https://api.github.com/users/imyaman/repos',
                                         'events_url' => 'https://api.github.com/users/imyaman/events{/privacy}',
                                         'gists_url' => 'https://api.github.com/users/imyaman/gists{/gist_id}',
                                         'followers_url' => 'https://api.github.com/users/imyaman/followers'
                                       },
                            'hooks_url' => 'https://api.github.com/repos/imyaman/sys5-co/hooks',
                            'archive_url' => 'https://api.github.com/repos/imyaman/sys5-co/{archive_format}{/ref}',
                            'name' => 'sys5-co',
                            'pulls_url' => 'https://api.github.com/repos/imyaman/sys5-co/pulls{/number}',
                            'subscribers_url' => 'https://api.github.com/repos/imyaman/sys5-co/subscribers',
                            'license' => {
                                           'url' => undef,
                                           'node_id' => 'MDc6TGljZW5zZTA=',
                                           'name' => 'Other',
                                           'key' => 'other',
                                           'spdx_id' => 'NOASSERTION'
                                         },
                            'mirror_url' => undef,
                            'open_issues' => 0,
                            'forks' => 0,
                            'language' => 'HTML',
                            'pushed_at' => 1554908091,
                            'events_url' => 'https://api.github.com/repos/imyaman/sys5-co/events',
                            'master_branch' => 'master',
                            'git_url' => 'git://github.com/imyaman/sys5-co.git',
                            'subscription_url' => 'https://api.github.com/repos/imyaman/sys5-co/subscription',
                            'homepage' => undef,
                            'open_issues_count' => 0,
                            'clone_url' => 'https://github.com/imyaman/sys5-co.git',
                            'branches_url' => 'https://api.github.com/repos/imyaman/sys5-co/branches{/branch}',
                            'releases_url' => 'https://api.github.com/repos/imyaman/sys5-co/releases{/id}',
                            'has_pages' => $VAR1->{'deleted'},
                            'has_wiki' => $VAR1->{'repository'}{'has_downloads'},
                            'forks_count' => 0,
                            'disabled' => $VAR1->{'deleted'}
                          },
          'forced' => $VAR1->{'deleted'},
          'sender' => {
                        'repos_url' => 'https://api.github.com/users/imyaman/repos',
                        'type' => 'User',
                        'followers_url' => 'https://api.github.com/users/imyaman/followers',
                        'events_url' => 'https://api.github.com/users/imyaman/events{/privacy}',
                        'gists_url' => 'https://api.github.com/users/imyaman/gists{/gist_id}',
                        'node_id' => 'MDQ6VXNlcjE2NTQ1NDA=',
                        'received_events_url' => 'https://api.github.com/users/imyaman/received_events',
                        'gravatar_id' => '',
                        'avatar_url' => 'https://avatars0.githubusercontent.com/u/1654540?v=4',
                        'id' => 1654540,
                        'organizations_url' => 'https://api.github.com/users/imyaman/orgs',
                        'starred_url' => 'https://api.github.com/users/imyaman/starred{/owner}{/repo}',
                        'subscriptions_url' => 'https://api.github.com/users/imyaman/subscriptions',
                        'url' => 'https://api.github.com/users/imyaman',
                        'site_admin' => $VAR1->{'deleted'},
                        'login' => 'imyaman',
                        'html_url' => 'https://github.com/imyaman',
                        'following_url' => 'https://api.github.com/users/imyaman/following{/other_user}'
                      },
          'head_commit' => {
                             'distinct' => $VAR1->{'repository'}{'has_downloads'},
                             'message' => 'Update+happytalk.html',
                             'id' => '726ce0521cfc061c0f12d63e5970bee51bdd7d84',
                             'removed' => [],
                             'modified' => [
                                             'happytalk.html'
                                           ],
                             'tree_id' => '4bcb4192c801ad493158abc88606106339bac87d',
                             'author' => {
                                           'name' => 'Sangyong+Gwak',
                                           'email' => '[email protected]',
                                           'username' => 'imyaman'
                                         },
                             'url' => 'https://github.com/imyaman/sys5-co/commit/726ce0521cfc061c0f12d63e5970bee51bdd7d84',
                             'timestamp' => '2019-04-10T23:54:50+09:00',
                             'committer' => {
                                              'email' => '[email protected]',
                                              'name' => 'GitHub',
                                              'username' => 'web-flow'
                                            },
                             'added' => []
                           },
          'base_ref' => undef,
          'compare' => 'https://github.com/imyaman/sys5-co/compare/65342976598d...726ce0521cfc',
          'ref' => 'refs/heads/master',
          'created' => $VAR1->{'deleted'},
          'after' => '726ce0521cfc061c0f12d63e5970bee51bdd7d84',
          'before' => '65342976598dd6f5ed0ec43dccdfb2a8b84a680f',
          'commits' => [
                         {
                           'removed' => [],
                           'id' => '726ce0521cfc061c0f12d63e5970bee51bdd7d84',
                           'message' => 'Update+happytalk.html',
                           'distinct' => $VAR1->{'repository'}{'has_downloads'},
                           'author' => {
                                         'name' => 'Sangyong+Gwak',
                                         'email' => '[email protected]',
                                         'username' => 'imyaman'
                                       },
                           'tree_id' => '4bcb4192c801ad493158abc88606106339bac87d',
                           'modified' => [
                                           'happytalk.html'
                                         ],
                           'url' => 'https://github.com/imyaman/sys5-co/commit/726ce0521cfc061c0f12d63e5970bee51bdd7d84',
                           'committer' => {
                                            'username' => 'web-flow',
                                            'name' => 'GitHub',
                                            'email' => '[email protected]'
                                          },
                           'added' => [],
                           'timestamp' => '2019-04-10T23:54:50+09:00'
                         }
                       ]
        }; in /home/imyaman/webhook-github-devopskoreaorg/app.pl l. 42
[Plack::Sandbox::_2fhome_2fimyaman_2fwebhook_2dgithub_2ddevopskoreaorg_2fapp_2epl:9715] debug @2019-04-10 23:54:51> undef in /home/imyaman/webhook-github-devopskoreaorg/app.pl l. 44

  my ($mybody, $mypayload, $mypayloadjson);
  $mybody = request -> body;
  $mypayload = $mybody;
  $mypayload =~ s/payload=//;
  $mypayload = uri_decode($mypayload);
  $mypayloadjson = from_json($mypayload);
  debug Dumper($mypayloadjson);

PD와 제공사의 문제

향초를 임의로 제작, 배포한 어느 유명인의 문제가 아니라, 이 콘텐츠를 거르지 않고 방송한 PD와 제공사의 문제.
제공사는 콘텐츠에 불법적인 소재가 있으면 걸러주는 시스템이 있을 텐데, 제대로 작동하지 않았을 터.
환경부가 지적했으면, 방송통신심의위원회는 뒷북이라도 치려나. 뒷북도 안 친다면 그들은 밥 먹고 똥만 싸고 있겠...

3월 18일의 역사

✿부산 미 문화원 방화사건 발생

1982년 3월 18일 오후 2시 부산 고신대생들이 광주민주화운동 유혈진압 및 독재정권 비호에 대한 미국측의 책임을 물어 부산 미 문화원 1층에 방화한 사건이 발생했다. 때를 같이해서 주변에는 유인물 700여 장이 뿌려졌다. ‘반미’의 금기를 깬 이 사건은 대담하고 격렬한 투쟁 방식으로 사람들에게 큰 충격을 안겨줬고, 미 문화
원이 1980년대 반미투쟁의 표적이 되는 신호탄 역할을 했다.

방화를 실행한 고신대생 이미옥 등이 3월 30일 잡히면서 사건의 윤곽이 드러났으며, 주범으로 공개수배된 고신대생 문부식과 김은숙은 4월 1일에 자수했다. 이튿날인 2일에는 문부식의 배후로 지목된 광주민주화운동의 수배자 김현장이 검거됐다.

3일 뒤에는 김현장을 은닉한 혐의로 원주교육원장 최기식 신부가 연행되면서 천주교까지 연루되는 사건으로 번졌다.

전두환 정권은 평소 탐탁치 않던 천주교에 대대적인 공세를 가하기 시작했고 천주교

perl open.pm

Fedora 29에서 Perl 관련 "Can't locate open.pm..." 메시지를 보게 된다면 perl-open 패키지를 설치하자.

yum install perl-open

그러면 perl-open-1.11이 설치될 것이다


From: Sangyong Gwak
Sent: Monday, March 18, 09:54
Subject: 오픈그래프 og tag와 저작권
타인의 웹 페이지(저작물)의 og tag를 내 서비스에서 이용해도 될까?


"사실의 수집 따위"에는 저작권을 주장할 수 없다. 게다가, 저작권을 주장하려면 단순노동("이마의 땀" 정도의 노동) 이상의 것이 필요하다.

In Feist Publications, Inc. v. Rural Telephone Service Co. 499 US 340 (1991) the United States Supreme Court held that copyright does not extend to a mere compilation of facts. In this case, it was a telephone directory much the same as the one in ProCD v. Zeidenberg 86 F.3d 1447 (7th Cir. 1996). 

Furthermore, the Court also ruled that something more than simple "sweat of the brow" labor was required before copyright protection would ensue, with some modicum of authorial originality necessary. 

Accordingly, it was held in Feist that copyright did not extend to a telephone directory, no matter how laborious a task its compilation was. The decision in ProCD v. Zeidenberg 86 F. 3d 1447 (7th Cir. 1996) is highly significant, therefore, in that it permits copyright or quasi-copyright protection to be extended to non-copyrightable material through the use of contract.


https://law.stackexchange.com/questions/762/is-it-always-permissible-to-republish-the-metadata-of-a-website