Skip to content

Instantly share code, notes, and snippets.

View 173210's full-sized avatar

173210

View GitHub Profile
@173210
173210 / shell.txt
Created April 5, 2017 06:32
Fighting with SELinux
$ sudo less /var/log/audit/audit.log
type=AVC msg=audit(1491373484.821:743): avc: denied { connectto } for pid=1643 comm="nginx" path="/run/tsubonesystem3/tsubonesystem3.sock" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=unix_stream_socket
type=SYSCALL msg=audit(1491373484.821:743): arch=c000003e syscall=42 success=no exit=-13 a0=c a1=7fd3e984f760 a2=6e a3=7ffe30bc59d0 items=0 ppid=1642 pid=1643 auid=4294967295 uid=996 gid=993 euid=996 suid=996 fsuid=996 egid=993 sgid=993 fsgid=993 tty=(none) ses=4294967295 comm="nginx" exe="/usr/sbin/nginx" subj=system_u:system_r:httpd_t:s0 key=(null)
$ sudo ls -Za /run/tsubonesystem3
drwxr-xr-x. tsubonesystem tsubonesystem system_u:object_r:httpd_var_run_t:s0 .
drwxr-xr-x. root root system_u:object_r:var_run_t:s0 ..
srw-rw----. tsubonesystem tsubonesystem system_u:object_r:httpd_var_run_t:s0 tsubonesystem3.sock
$ ps -ZC nginx
LABEL PID TTY TIME CMD
system_u:system_r:httpd_t:s0
提案: 神楽坂一丁目通信局がみらい研究室のWebページを作る
提案者: 173210, celluloce (あとで局長を巻き込むつもり)
課題
* 当該Webページは辞職したyumetodo (つまり未関係の個人) がメンテしている
* 神楽坂一丁目通信局は最近Web部を創設したが, 局のWebページの更新にのみあたっており、活動の拡大を求めている
解決策
* 神楽坂一丁目通信局のWeb部が当該ページをメンテナンスする -> 当該Webページの属人化を阻止, 持続可能なものに
* みらい研究室は神楽坂一丁目通信局の参加を受け入れる -> 様々なサークルの協力によって成り立つみらい研究室の良さを強調
@173210
173210 / poc.html
Last active January 30, 2017 01:54
見せてやりてえよマジ。くだらねえバグでn時間潰す人の顔ってのをさあ!
<!DOCTYPE html>
<html>
<head>
<link crossorigin="anonymous"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css"
integrity="sha384-yzOI+AGOH+8sPS29CtL/lEWNFZ+HKVVyYxU0vjId0pMG6xn7UMDo9waPX5ImV0r6"
rel="stylesheet">
</head>
<body>
<script crossorigin="anonymous"
@173210
173210 / hello.php
Created December 5, 2016 05:55
Fuck OGP
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#">
<head>
<title>Should I have a title?</title>
<meta id="title" property="og:title" content="<?php echo htmlspecialchars($_SERVER["QUERY_STRING"]); ?>">
<meta property="og:type" content="website">
<meta property="og:url" content="https://kagucho.net/">
<meta property="og:image" content="https://kagucho.net/owncloud/core/img/favicon-touch.png">
</head>
<body>
ASSERTION FAILED: fontPlatformData
/home/root3/buildroot/output/build/qt5webengine-5.6.2/src/3rdparty/chromium/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp(162) : WT)
1 0xb3d55c14
2 0xb3d3f960
3 0xb3d3fc3c
4 0xb3d3fd38
5 0xb2ca2a28
6 0xb2ca2ff0
7 0xb2d557f8
8 0xb2d54cd0
@173210
173210 / eslint.js
Created November 19, 2016 00:25
ESLint is insane (in this case)
// eslint indent: ["error", 2 ]
// eslint-env es6
// eslint says this is CORRECT
const o =
{ n:
{ i: 0, // WHAT THE HELL
j: 1 },
k: 2 };

Research has shown that time pressure reduces the operation of controlled, analytical processes while enhancing the use of heuristics and intuitive processing (e.g., Bargh & Thein, 1985; Finkel et al., 2009; Payne, 2001; Yovetich & Rusbult, 1994). In Study 3, we tested how the decision to sacrifice is differentially affected by automatic and controlled cognitive processes, using a time-pressure paradigm.

participants were more likely to sacrifice for a close other when they engaged in automatic rather than controlled processing in decision making.

Franz Joseph I

The young Archduke "Franzl" was brought up by his mother as a future Emperor with emphasis on devotion, responsibility and diligence. -> his traditional policy for Bosnia and Herzegovina

Wilhelm II

In 1863, when he was four-year-old, his 18-year-old uncle Alfred told him to be quiet. Wilhelm II drew his dagger and threatened in the response. He was emotional and often lost his temper. -> He advocated his risky foreign policy.

@173210
173210 / final.md
Last active October 5, 2016 04:00

Before the World War I

The French Revolution and the Quintuple Alliance

  • The Declaration of the Rights of Man and of the Citizen (1789) -> States are owned by people (the start of nationalism)

  • The Quintuple Alliance (1818-) -> States began to maintain balance of power again.

The Unification of Germany

  • Otto von Bismarck - the 'Iron Chancellor' (1862-1890)
@173210
173210 / report.md
Last active October 5, 2016 03:35
Before the World War I

Before the World War I

The Thirty Year's War (1618-1648)

The last extensive religous war. The Peace of Westphalia as the result of the war created a basis for national self-determination. It is the start of the modern regime.

The French Revolution and the First French Empire (1787-1814)

The new thought of freedom spreaded all over the world. People started to recognize states as their own, which was the beginning of the nationalism.