Skip to content

Instantly share code, notes, and snippets.

#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
exec userconfig.cfg
@takaya030
takaya030 / WelcomeController.php
Last active June 26, 2016 04:30
Welcome Page for Lumen 5.2
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class WelcomeController extends Controller
{
public function index( Request $request )
{
@takaya030
takaya030 / Dockerfile_for_gcloud
Last active May 22, 2016 14:36
Docker ubuntu image with Google Cloud SDK
# gcloud shell
#
FROM python:2.7
MAINTAINER takaya030
RUN apt-get update && apt-get install -y openssh-server sudo
RUN mkdir /var/run/sshd
RUN echo 'root:root' | chpasswd
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
@takaya030
takaya030 / Dockerfile
Last active March 5, 2017 06:50
Docker CentOS6 image with Python 2.7.11
#
# 2016/08/26
# CentOS 6.7 + epel,remi
# Python 2.7
#
FROM centos:6
MAINTAINER takaya030
# update yum
@takaya030
takaya030 / vimrc
Last active December 8, 2016 12:57
My vimrc
" vim:set ts=8 sts=2 sw=2 tw=0: (この行に関しては:help modelineを参照)
"
" An example for a Japanese version vimrc file.
" 日本語版のデフォルト設定ファイル(vimrc) - Vim7用試作
"
" Last Change: 19-Nov-2015.
" Maintainer: MURAOKA Taro <koron@tka.att.ne.jp>
"
" 参考:
" :help vimrc
@takaya030
takaya030 / AppController.php
Last active November 23, 2015 11:52
Smarty 3.1 on CakePHP 2.4
class AppController extends Controller {
public $viewClass = 'Smarty';
}
<?php
class BlogController extends BaseController {
const consumerKey = 'Your Consumer Key';
const consumerSecret = 'Your Consumer Secret';
public function getIndex()
{
$param = Input::get();
@takaya030
takaya030 / pit_set.pl
Last active August 29, 2015 14:05
Perl script sending from Twitter to FriendFeed.
#!/usr/bin/perl
use strict;
use warnings;
use Config::Pit;
Config::Pit::set( "twitter.com", data => {
"consumer_key" => "your consumer key on api.twitter.com",
"consumer_select" => "your consumer select on api.twitter.com"
});