ImageMagick6.2.9から使える関数が必要なため。
rpm -qa | grep -i imagemagick
ImageMagick-6.2.8.0-4.el5_5.3
ImageMagick-devel-6.2.8.0-4.el5_5.3
package pb | |
import ( | |
"fmt" | |
"reflect" | |
st "github.com/golang/protobuf/ptypes/struct" | |
) | |
// ToStruct converts a map[string]interface{} to a ptypes.Struct |
#!/bin/bash | |
set -xe | |
cd $HOME | |
# Remove the build cache and get Glide | |
rm -Rf $GOPATH/src/* | |
go get github.com/Masterminds/glide | |
mkdir -p $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/ | |
cd $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
/root/.pm2/logs/*.log { | |
daily | |
rotate 52 | |
missingok | |
notifempty | |
compress | |
sharedscripts | |
dateext | |
dateformat %Y-%m-%d | |
postrotate |
#https://gorails.com/setup/ubuntu/14.04 | |
sudo apt-get update | |
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
rvm install 2.1.2 | |
rvm use 2.1.2 --default |
## | |
## This nginx.conf servers as the main config file for webflow reverse proxy | |
## | |
## RCS: | |
## https://gist.github.com/sansmischevia/5617402 | |
## | |
## Hardening tips: | |
## http://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver-security.html | |
## |
# | |
# Author:: Christopher Peplin (<[email protected]>) | |
# Copyright:: Copyright (c) 2010 Bueda, Inc. | |
# License:: Apache License, Version 2.0 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type Foo struct { | |
FirstName string `tag_name:"tag 1"` | |
LastName string `tag_name:"tag 2"` |
# Description: | |
# This script receives messages from AWS SNS topic for cloudwatch | |
# | |
# Author: | |
# jasonthomas | |
irc = require('irc') | |
SNSClient = require('aws-snsclient') | |
module.exports = (robot) -> |