Skip to content

Instantly share code, notes, and snippets.

View arkenous's full-sized avatar

KOSAKA Kensuke arkenous

View GitHub Profile
package link.k3n.bottom_sheet_behavior_sample
import android.content.Context
import android.support.design.widget.BottomSheetBehavior
import android.support.design.widget.CoordinatorLayout
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
/**
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="link.k3n.bottom_sheet_behavior_sample.MainActivity">
<android.support.design.widget.CoordinatorLayout
android:id="@+id/root_layout"
android:layout_width="match_parent"
@arkenous
arkenous / keybase.md
Last active July 8, 2017 06:43
keybase.md

Keybase proof

I hereby claim:

  • I am k3nsuk3 on github.
  • I am k3nsuk3 (https://keybase.io/k3nsuk3) on keybase.
  • I have a public key ASBsA4AoGILJS_6rfcFzaSkuXt6c2YnS5fn44ky7KBCYTQo

To claim this, I am signing this object:

@arkenous
arkenous / index.html
Created July 10, 2016 14:25
mac-debug-python3-cgi-web
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Test page</title>
</head>
<body>
<h2>It works!</h2>
<h4>CGI Output: <span id="cgi_output"></span></h4>
@arkenous
arkenous / ldap-testserver.service
Created June 18, 2016 11:08
systemd service script for ldap-testserver, Docker image of LDAP test server
[Unit]
Description=LDAP authentication test service
Requires=docker.service
After=docker.service
[Service]
Type=simple
ExecStart=/usr/bin/docker run --rm --name container-ldap-testserver -p 50389:389 ldap-testserver
[Install]
@arkenous
arkenous / index.html
Created April 30, 2016 09:18
Ajax PythonCGI communicate sample using JSON format message
<!DOCTYPE html>
<html lang=ja>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AjaxPythonCGI</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
</head>
@arkenous
arkenous / helloflask.conf
Created April 24, 2016 15:12
Nginx configuration file for HelloFlask based on uWSGI
server {
listen 80;
location / {
include uwsgi_params;
uwsgi_pass unix:///tmp/uwsgi.sock;
}
}
@arkenous
arkenous / helloflask.ini
Created April 24, 2016 15:08
HelloFlask initialization file for uWSGI
[uwsgi]
plugins=python
module=app
callable=app
master=true
processes=1
socket=/tmp/uwsgi.sock
chmod-socket=666
vacuum=true
die-on-term=true
@arkenous
arkenous / ios.ovpn
Created March 13, 2016 01:28
OpenVPN client configuration file
client
dev tun
proto tcp
remote your.openvpn.server 1194
resolv-retry infinite
nobind
persist-key
persist-tun
user nobody
group nobody
@arkenous
arkenous / server.conf
Last active July 16, 2023 17:50
OpenVPN server configuration file
port 1194
proto tcp
dev tun
ca ca.crt
cert openvpnsv.crt
key openvpnsv.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0