This file contains hidden or 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
use strict; | |
use warnings; | |
use utf8; | |
use Data::Dumper; | |
use Furl; | |
use XML::Simple; | |
my $notify_url = 'http://errbit.example.com/notifier_api/v2/notices'; | |
my $api_key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; |
This file contains hidden or 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
<?php | |
function plugin_tag_inline() | |
{ | |
$args = func_get_args(); | |
array_pop($args); | |
return join(',', $args); | |
} | |
?> |
This file contains hidden or 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
<?php | |
function plugin_html_inline() | |
{ | |
$args = func_get_args(); | |
array_pop($args); | |
return join(',', $args); | |
} | |
?> |

This file contains hidden or 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 | |
# | |
# Sidekiq | |
# chkconfig: 2345 82 55 | |
# processname: sidekiq | |
# description: Runs sidekiq | |
# Include RedHat function library | |
. /etc/rc.d/init.d/functions |
This file contains hidden or 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
module Readonlyable | |
extend ActiveSupport::Concern | |
def readonly? | |
return true | |
end | |
def before_destroy | |
raise ActiveRecord::ReadOnlyRecord | |
end |
This file contains hidden or 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
# https://gist.github.com/sue445/5261654 | |
ja: | |
helpers: | |
actions: "Actions" | |
links: | |
back: "戻る" | |
cancel: "キャンセル" | |
confirm: "本当にいいですか?" | |
destroy: "削除" |
This file contains hidden or 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 -*- | |
require 'json' | |
require 'zlib' | |
class Redis | |
class Client | |
def call(command, &block) | |
if write?(command.first) | |
command[command.length - 1] = encode(command.last) |
This file contains hidden or 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
package examples.redis; | |
import java.util.LinkedHashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.SortedMap; | |
import java.util.TreeMap; | |
import java.util.regex.Pattern; | |
import java.util.zip.CRC32; |
This file contains hidden or 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
# -*- encoding: utf-8 -*- | |
require "digest/sha1" | |
# restful-authentication の config/initializers/site_keys.rb に設定されている | |
# REST_AUTH_SITE_KEY の値を持ってきて設定 | |
REST_AUTH_SITE_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
module Sorcery | |
module CryptoProviders | |
class RestfulAuthentication < SHA1 |
NewerOlder