Skip to content

Instantly share code, notes, and snippets.

View arkenous's full-sized avatar

KOSAKA Kensuke arkenous

View GitHub Profile
@arkenous
arkenous / default.json
Created September 13, 2015 09:09
My ~/.config/powerline/themes/tmux/default.json file
{
"segments": {
"right": [
{
"function": "powerline.segments.common.vcs.branch"
},
{
"function": "powerline.segments.common.bat.battery"
},
{
@arkenous
arkenous / powerline.json
Created September 13, 2015 09:11
My ~/.config/powerline/themes/powerline.json file
{
"dividers": {
"left": {
"hard": " ",
"soft": " "
},
"right": {
"hard": " ",
"soft": " "
}
@arkenous
arkenous / zabbixslack.sh
Last active October 22, 2016 06:04
Zabbix alertscript for Slack
#!/usr/bin/bash
# Current time
time="$1"
# Host name
host="$2"
# Current trigger value. PROBLEM or OK
status="$3"
@arkenous
arkenous / owncloud.conf
Created November 24, 2015 11:58
Apache extra configuration file for ownCloud
<IfModule mod_alias.c>
Alias /owncloud /usr/share/webapps/owncloud/
</IfModule>
<Directory /usr/share/webapps/owncloud/>
Options FollowSymlinks
AllowOverride all
Require all granted
php_admin_value open_basedir "/srv/http/:/home/:/var/tmp/:/tmp/:/usr/share/pear/:/usr/share/webapps/owncloud/:/etc/webapps/owncloud:/dev/urandom"
</Directory>
@arkenous
arkenous / zabbix.conf
Created November 24, 2015 12:00
Apache extra configuration file for zabbix
NameVirtualHost *:443
<IfModule mod_alias.c>
Alias /zabbix /usr/share/webapps/zabbix/
</IfModule>
<Directory /usr/share/webapps/zabbix>
Options -Indexes +FollowSymlinks +ExecCGI
AllowOverride all
Require all granted
</Directory>
@arkenous
arkenous / wercker.yml
Created January 3, 2016 04:17
wercker.yml for Python 3.x based Twitter bot application.
# This references the default Python container from
# the Docker Hub with the 2.7 tag:
# https://registry.hub.docker.com/_/python/
# If you want to use a slim Python container with
# version 3.4.3 you would use: python:3.4-slim
# If you want Google's container you would reference google/python
# Read more about containers on our dev center
# http://devcenter.wercker.com/docs/containers/index.html
box: python:3.4-slim
# You can also use services such as databases. Read more on our dev center:
@arkenous
arkenous / Procfile
Created January 3, 2016 06:03
Procfile for Python 3.x based Twitter bot application.
bot: python brain.py
@arkenous
arkenous / design.css
Created January 3, 2016 12:35
Design css for darkroom theme of hatena blog.
/* <system section="theme" selected="darkroom"> */
@import url("/css/theme/darkroom/darkroom.css");
/* </system> */
#main {
max-width: none;
}
.entry {
max-width: none;
margin-left: 100px;
margin-right: 100px;
@arkenous
arkenous / config.js
Created January 13, 2016 10:41
Ghost configuration file
/ # Ghost Configuration
// Setup your Ghost install for various [environments](http://support.ghost.org/config/#about-environments).
// Ghost runs in `development` mode by default. Full documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
@arkenous
arkenous / package.json
Created January 13, 2016 12:36
Ghost package.json file
{
"name": "ghost",
"version": "0.7.1",
"description": "Just a blogging platform.",
"author": "Ghost Foundation",
"homepage": "http://ghost.org",
"keywords": [
"ghost",
"blog",
"cms"