Skip to content

Instantly share code, notes, and snippets.

View s-wool's full-sized avatar

Norikazu Kato s-wool

View GitHub Profile
@s-wool
s-wool / pyenv_install.sh
Created February 10, 2016 14:05
vagrant pyenv
#!/bin/bash
sudo yum clean all
sudo yum groupinstall -y "Development Tools"
sudo yum install -y bzip2-devel openssl-devel readline-devel sqlite-devel
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
#!/usr/bin/env python
import requests
import json
headers = {
'Content-Type': 'application/octet-stream',
'Ocp-Apim-Subscription-Key': 'xxx',
}
params = {
@s-wool
s-wool / Rakefile
Created February 27, 2018 13:31 — forked from kyanny/Rakefile
Qiita::Team お引越しスクリプト
require 'json'
require 'yaml'
require 'nokogiri'
require 'uri'
require 'faraday'
require 'ostruct'
require 'pry'
def y data
puts YAML.dump data
#!/usr/bin/env perl
use strict;
use warnings;
use Image::Magick;
use Data::Dumper;
my ($filename, $outputname, $size, $span, $delay) = @ARGV;
my $gifanime = Image::Magick->new;