This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'yaml' | |
require 'nokogiri' | |
require 'uri' | |
require 'faraday' | |
require 'ostruct' | |
require 'pry' | |
def y data | |
puts YAML.dump data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import requests | |
import json | |
headers = { | |
'Content-Type': 'application/octet-stream', | |
'Ocp-Apim-Subscription-Key': 'xxx', | |
} | |
params = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r -u hue.orig/apps/jobsub/src/jobsub/migrations/0003_convertCharFieldtoTextField.py hue/apps/jobsub/src/jobsub/migrations/0003_convertCharFieldtoTextField.py | |
--- hue.orig/apps/jobsub/src/jobsub/migrations/0003_convertCharFieldtoTextField.py 2013-12-09 16:06:58.518311322 +0000 | |
+++ hue/apps/jobsub/src/jobsub/migrations/0003_convertCharFieldtoTextField.py 2013-12-14 13:10:27.126396795 +0000 | |
@@ -9,13 +9,14 @@ | |
def forwards(self, orm): | |
# Changing field 'OozieStreamingAction.job_properties' | |
- db.alter_column('jobsub_ooziestreamingaction', 'job_properties', self.gf('django.db.models.fields.TextField')()) | |
+ #db.alter_column('jobsub_ooziestreamingaction', 'job_properties', self.gf('django.db.models.fields.TextField')()) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -u -r rpmbuild.bak/SOURCES/hue-2.5.0-cdh4.4.0/desktop/conf/hue.ini rpmbuild/SOURCES/hue-2.5.0-cdh4.4.0/desktop/conf/hue.ini | |
--- rpmbuild.bak/SOURCES/hue-2.5.0-cdh4.4.0/desktop/conf/hue.ini 2013-09-04 12:36:56.000000000 +0900 | |
+++ rpmbuild/SOURCES/hue-2.5.0-cdh4.4.0/desktop/conf/hue.ini 2013-12-14 15:15:16.000000000 +0900 | |
@@ -178,6 +178,10 @@ | |
## password= | |
## name=desktop/desktop.db | |
+ [[cache]] | |
+ # backend=locmem:// | |
+ # key_prefix= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Imager; | |
use File::Basename; | |
use constant SIZE => 20; | |
my @emoticons = glob "/Applications/Skype.app/Contents/Resources/*_anim.png"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import eyed3 | |
audio_file = eyed3.load("radiko_file.mp3") | |
audio_file.tag.artist = (u"Artist Name") | |
audio_file.tag.album = (u"Album Name") | |
audio_file.tag.title = (u"Title") | |
audio_file.tag.images.set(eyed3.id3.frames.ImageFrame.FRONT_COVER, "cover.jpg", "image/jpeg") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from gmusicapi import Musicmanager | |
>>> mm = Musicmanager() | |
>>> mm.perform_oauth() | |
No handlers could be found for logger "oauth2client.util" | |
Visit the following url: | |
https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fmusicmanager&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&client_id=652850857958.apps.googleusercontent.com&access_type=offline | |
#URLコピペしてブラウザから認証するとコードが表示されるので、↓にコピペします | |
Follow the prompts, then paste the auth code here and hit enter: your_auth_code | |
<oauth2client.client.OAuth2Credentials object at 0xf4e6d0> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- apt-cyg.orig 2010-04-28 03:55:43.000000000 +0900 | |
+++ apt-cyg 2013-11-18 03:31:25.034070400 +0900 | |
@@ -95,14 +95,14 @@ function getsetup() | |
then | |
touch setup.ini | |
mv setup.ini setup.ini-save | |
- wget -N $mirror/setup.bz2 | |
+ wget -N $mirror/x86_64/setup.bz2 | |
if test -e setup.bz2 && test $? -eq 0 | |
then |
NewerOlder