Skip to content

Instantly share code, notes, and snippets.

View shohey1226's full-sized avatar

Shohei Kameda shohey1226

View GitHub Profile
@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",
Keyboard Command Description
Command + Tab Move window
Command + Tab + Shift Move window - Reverse
Command + / Full screen(back from Full screen)
Keyboard Command Description
Command + i Show hints
Command + c Copy
Command + v Paste
Command + r Reload
Control + p Scroll up
Control + n Scroll down
Command + [ Go back
Command + ] Go forward
Keyboard Command Description
Command + s Save file
Command + c Copy
Command + v Paste
Control + Tab Change file
Command + w Close file
Command + n Open new file
Keyboard Command Description
Command + f Search a word
Command + c Copy
Command + v Paste
Command + r Reload *Try when Terminal is hung