Skip to content

Instantly share code, notes, and snippets.

View shohey1226's full-sized avatar

Shohei Kameda shohey1226

View GitHub Profile
<div class="content wrap">
<div class="about">
<table>
<tr>
<td>
<div class="portrait" style="padding:20px;margin-top:17px">
<img src="{PortraitURL-96}">
</div>
</td>
<td>
---
- hosts: servers
user: root
tasks:
- name: get jenkins repo
command: wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
- name: install jenkins
command: rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
- name: install Jenkins by yum
yum: name=jenkins state=latest
@shohey1226
shohey1226 / doman.pl
Last active August 29, 2015 13:56
Perl script: doman.pl - DigitalOcean manipulator using Module, DigitalOcean
#!/usr/bin/env perl
use strict;
use warnings;
use Data::Dumper;
use Getopt::Long;
use Pod::Usage;
use DigitalOcean;
my $client_id = $ENV{DIGITALOCEAN_CLIENT_ID};
@shohey1226
shohey1226 / main.yml
Created March 6, 2014 22:57
Ansible playbook to install system wide Perl5.18 and its module using cpanm and cpanfile
---
- name: install perl with perlenv
script: perlenv.sh
- name: copy cpanfile to /tmp/
copy: src=cpanfile dest=/tmp/cpanfile
- name: install modules
script: install_with_cpanm.sh
requires 'DigitalOcean', 0.08;
#!/bin/bash
export PLENV_ROOT=/opt/perl5
export PATH="$PLENV_ROOT/bin:$PATH"
eval "$(plenv init -)"
cd /tmp
if [[ -e 'cpanfile' ]]
then
cpanm --installdeps .
#!/bin/bash
export PLENV_ROOT=/opt/perl5
if [[ ! -e $PLENV_ROOT ]];then
mkdir -p /opt/perl5
git clone git://github.com/tokuhirom/plenv.git $PLENV_ROOT
git clone git://github.com/tokuhirom/Perl-Build.git $PLENV_ROOT/plugins/perl-build/
$PLENV_ROOT/bin/plenv install 5.18.2
$PLENV_ROOT/bin/plenv rehash
@shohey1226
shohey1226 / .babelrc
Created November 25, 2015 03:28 — forked from joshblack/.babelrc
Whitelist transformers in `.babelrc` for projects
{
"retainLines": true,
"compact": true,
"comments": false,
"whitelist": [
"es6.arrowFunctions",
"es6.blockScoping",
"es6.classes",
"es6.constants",
"es6.destructuring",
#!/bin/env perl
use strict;
use warnings;
use AnyEvent::Twitter::Stream;
use EV;
use utf8;
use YAML;
use FindBin qw($Bin);
use Data::Dumper;
package Homenotes;
use Mojo::Base 'Mojolicious';
use Mojolicious::Plugin::Web::Auth;
use Plack::Session;
use Data::Dumper;
use FindBin qw($Bin);
sub startup {
my $self = shift;