Skip to content

Instantly share code, notes, and snippets.

*** bacula.spec 2013-09-17 12:58:53.211497049 +0000
--- bacula.spec.patch 2013-09-17 12:58:40.684052443 +0000
***************
*** 355,360 ****
--- 355,363 ----
%define mdv 0
%{?build_mdv:%define mdv 1}
%{?build_mdv:%define mdk 1}
+ # Amazon Linux AMI
+ %define alami 0
@mistymagich
mistymagich / gist:6864772
Last active June 12, 2018 04:54
自己認証局のルート証明書をCentOSのca-bundle.crtにインストールするレシピ
#
# Cookbook Name:: install-private-CA-certificate
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
# 自己認証局のルート証明書
#!/bin/bash
#
# Init file for daemonized Skype service
#
### BEGIN INIT INFO
# Provides: skype
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
Sample
======
- test1
- test2
SERVICE_ACCOUNT_EMAIL = '<service_account_email>'
SERVICE_ACCOUNT_KEY_FILE = __dirname + '/googleapi-privatekey.pem'
google = require 'googleapis'
moment = require 'moment'
year=2015
month=3 # 月は0始まり (3=4月)
m = moment {'year': year, 'month': month}
FROM ubuntu
RUN apt-get update
RUN apt-get install -y git curl build-essential
RUN apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
ENV HOME /root
ENV ANYENV_HOME $HOME/.anyenv
ENV ANYENV_ENV $ANYENV_HOME/envs
RUN git clone https://github.com/riywo/anyenv $ANYENV_HOME
@mistymagich
mistymagich / docker-compose.yml
Last active September 1, 2015 06:50
Sample to running a custom SQL in "Docker Official MySQL Image"
web:
image: corbinu/docker-phpmyadmin
ports:
- "80:80"
links:
- mysql:mysql
environment:
MYSQL_USERNAME: root
mysql:
FROM httpd:2.4
# prepare
RUN apt-get update
RUN apt-get -y install ruby wget git
# install gyazo
RUN install -d -m 755 -g daemon -o daemon /usr/local/apache2/htdocs/data
RUN install -d -m 755 -g daemon -o daemon /usr/local/apache2/htdocs/db
RUN wget -O /usr/local/apache2/htdocs/upload.cgi https://raw.githubusercontent.com/gyazo/Gyazo/master/Server/upload.cgi
@mistymagich
mistymagich / GmailToChatwork.gs
Last active October 4, 2021 08:09
Gmailに来たメールをChatworkに通知する
const DROPBOX_TOKEN =
PropertiesService.getScriptProperties().getProperty("DROPBOX_TOKEN");
const CHATWORK_TOKEN =
PropertiesService.getScriptProperties().getProperty("CHATWORK_TOKEN");
const ROOM_ID = PropertiesService.getScriptProperties().getProperty("ROOM_ID");
// チャットワークへ送信
function sendChatwork_(record) {
const [title, date, from, subject, plainBody, id, shareURLs] = record;
function doPost(e: GoogleAppsScript.Events.DoPost): void {
// Chatwork APIトークン
const token = "<Chatwork APIトークン>";
// 通知先ルームID
const room_id = "<Chatwork ルームID>";
// チャットワークAPI
const client = ChatWorkClient.factory({ token: token });
// 通知内容データ