Skip to content

Instantly share code, notes, and snippets.

@haoyayoi
haoyayoi / check_stack_error.sh
Last active April 2, 2020 05:58
Get cfn error status.
#!/bin/sh
function usage() {
echo "./check_stack_error [stackname]"
}
function dump_error() {
stacks=$1
for stackname in $stacks
do
set logininfo to "userid:passwd"
set messages to "を試聴中♪"
tell application "iTunes"
set currentTrack to current track
set currentTitle to name of currentTrack
set status to currentTitle & messages
end tell
set wassr_status to quoted form of ("status=" & status)
>|sh|
sudo gem install xmpp4r-simple
||<
-Could not find xmpp4r-simple (> 0) in the repository
>|sh|
gem env
> GEM PATHS:
sudo rm ($TO_GEM_PATH)/source_cache
//
// CoreDateManager.h
//
// Created by haoyayoi on 09/12/28.
// Copyright 2009 haoyayoi. All rights reserved.
//
#import <Foundation/Foundation.h>
Perl::Tidyで明快コーディング!
markup: Hatena
creator: haoyayoi
date: 2009-12-09T00:00:01+09:00
Perlのコードを書くとき、CPANモジュールを作成するとき、そして就職活動時のエントリーで課題のperlスクリプトを提出する時に超実益的で役立つ、Perl::Tidyを紹介してみます。
* Perl::Tidyとは
ソースコードを解析して美しく麗しいコードにしてくれる、怠け者ばかりなPerl userには欠かせないモジュールです。
//
// SqliteInitialize.h
//
// Created by haoyayoi on 09/05/02.
// Copyright 2009 haoyayoi. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface SqliteInitialize : NSObject {
const WASSR_STATUS_MAXLEN = 255;
CmdUtils.CreateCommand({
name: "wassr",
takes: {status: noun_arb_text},
homepage: "http://wassr.jp",
author: {name: "haoyayoi", homepage: "http://d.hatena.ne.jp/hao_yayoi/"},
license: "MPL",
// ==UserScript==
// @name popIn in GreaseMonkey
// @namespace http://gist.github.com
// @include *
// ==/UserScript==
window.addEventListener("load" , function(){
if(document.getElementById('popInContainer')) { Bpopin_cleanUp(); }
else {
popin=document.body.appendChild(document.createElement('script'));
// ==UserScript==
// @name Wassr via list - count and design
// @namespace http://sl-library.soulfixin.net/
// @description Add vialist(count and design) to wassr site sidemenu-bar top
// @include http://wassr.jp/*
// ==/UserScript==
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html