Skip to content

Instantly share code, notes, and snippets.

View glidenote's full-sized avatar

Akira Maeda glidenote

View GitHub Profile
[glidenote@all901 ~]$ curl -fsSL https://mackerel.io/file/script/amznlinux/setup-yum.sh | sh
This script requires superuser authority to configure Mackerel yum repository:
++ mktemp
+ gpgkey_path=/tmp/tmp.jDnEzYXiz8
+ curl -fsS -o /tmp/tmp.jDnEzYXiz8 https://mackerel.io/assets/files/GPG-KEY-mackerel
+ rpm --import /tmp/tmp.jDnEzYXiz8
+ rm /tmp/tmp.jDnEzYXiz8
+ rpm -ivh http://yum.mackerel.io/amznlinux/latest/x86_64/mackerel-repo-1-0.noarch.rpm
Retrieving http://yum.mackerel.io/amznlinux/latest/x86_64/mackerel-repo-1-0.noarch.rpm
require 'formula'
HOMEBREW_GHQ_VERSION='0.6'
class Ghq < Formula
homepage 'https://github.com/motemen/ghq'
url "https://github.com/motemen/ghq/releases/download/v#{HOMEBREW_GHQ_VERSION}/ghq_darwin_amd64.zip"
sha1 'eff77abc345fa2c5581875f4e3c8fc4e2b9bf0ac'
version HOMEBREW_GHQ_VERSION
head 'https://github.com/motemen/ghq', :using => :git, :branch => 'master'
#compdef vagrant
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Vagrant (http://vagrantup.com).
#
# Source: https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/vagrant
#
# ------------------------------------------------------------------------------
@glidenote
glidenote / _roadworker
Created July 8, 2014 07:07
Zsh completion script for roadworker
#compdef roadwork
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for roadworker (https://rubygems.org/gems/roadworker)
#
# ------------------------------------------------------------------------------
# Authors
# -------
@glidenote
glidenote / Vagrantfile
Last active August 29, 2015 14:02
build nginx with vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# sensu-server
config.vm.define :build001 do |server|
server.vm.box = "CentOS6.5-x86_64"
server.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box"
server.vm.provision "shell", path: "provision.sh"
+ - - - - - - - - -+ +- - - - - - - - - - - - - - - - -+
' Remote Server: ' ' Mac: '
' ' ' '
' +--------------+ ' ssh(RemoteForward) ' +--------------+ +--------+ '
' | rpbcopy(nc) | ' --------------------> ' | LaunchAgents | --> | pbcopy | '
' +--------------+ ' ' +--------------+ +--------+ '
' ' ' '
+ - - - - - - - - -+ +- - - - - - - - - - - - - - - - -+
[root@log002 conf.d]# diff -u apache.conf.2014-01-15 apache.conf
--- apache.conf.2014-01-15 2014-01-15 15:42:54.560802754 +0900
+++ apache.conf 2014-01-15 15:43:20.226906990 +0900
@@ -38,11 +38,12 @@
capped_size 200000m
flush_interval 1s
- buffer_type memory
+ buffer_type file
buffer_chunk_limit 8m
@glidenote
glidenote / -
Created November 5, 2013 07:59
CONNECTED(00000003)
---
Certificate chain
0 s:/businessCategory=Private Organization/1.3.6.1.4.1.311.60.2.1.3=US/1.3.6.1.4.1.311.60.2.1.2=Delaware/serialNumber=5157550/street=548 4th Street/postalCode=94107/C=US/ST=California/L=San Francisco/O=GitHub, Inc./CN=github.com
i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV CA-1
-----BEGIN CERTIFICATE-----
MIIHOjCCBiKgAwIBAgIQBH++LkveAITSyvjj7P5wWDANBgkqhkiG9w0BAQUFADBp
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
d3cuZGlnaWNlcnQuY29tMSgwJgYDVQQDEx9EaWdpQ2VydCBIaWdoIEFzc3VyYW5j
ZSBFViBDQS0xMB4XDTEzMDYxMDAwMDAwMFoXDTE1MDkwMjEyMDAwMFowgfAxHTAb
#!/bin/bash
#
# ============================================================
#
# @license This program is free software.
#
# @category Script for Percona Server
# @project Gedow Software
# @package Gedow Percona Utils
# @author GedowFather http://blog.father.gedow.net/