その名の通り、backupを取るための便利なgem https://github.com/meskyanichi/backup
- データのdump
- ローカルファイルやディレクトリだけでなく、MySQL、Postgres、MongoDB、Redis、RiakからDumpできる
- データの圧縮
width = ARGV[0].to_i | |
height = 6 | |
margin = 3 | |
goal = rand(100) % width.to_i | |
header_list = %w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) | |
spacer = '' | |
#fixme! | |
margin.times do |s| | |
spacer = spacer + ' ' |
require "timeout" | |
pid = fork do | |
require "fileutils" | |
filepath = "/mnt/nfs/test1/test.txt" | |
begin | |
File::open(filepath, | |
File::Constants::WRONLY | | |
File::Constants::CREAT | | |
File::Constants::TRUNC | |
09:37 kei: bu使うぶー | |
10:04 kei: 恋人ウマい | |
11:32 kei: 仕様ならしようがない | |
11:50 kei: わかりました、はぁはぁ | |
11:26 kei: (「ぼくのことをプレミアムサポートして下さい!」 | |
11:52 kei: ニャーン | |
12:17 kei: 私はカレーになりたい | |
12:37 kei: 快適なベッドライフ | |
12:52 kei: 仏滅戦隊、jinja!! | |
13:36 kei: まじだぶる |
id_rsa = data_bag_item('id_rsa', 'id_rsa')['value'] | |
template "id_rsa" do | |
path "#{home_dir}/.ssh/id_rsa" | |
source "id_rsa.erb" | |
owner node[:yuno][:user] | |
mode "600" | |
variables( | |
:id_rsa => id_rsa | |
) | |
end |
その名の通り、backupを取るための便利なgem https://github.com/meskyanichi/backup
require 'yajl' | |
require 'json' | |
require 'oj' | |
def digit_pattern | |
digit_pattern ||= rand(10000).to_s | |
end | |
def integer_part | |
digit_pattern |
<source> | |
type tail | |
path /home/jacopen/minecraft/data/vanilla/logs/latest.log | |
format /^\[.*\]\s\[.*\]:\s(?<log>.*)$/ | |
time_format %d/%b/%Y:%H:%M:%S %z | |
tag minecraft.log | |
pos_file /var/log/td-agent/minecraft.pos | |
</source> | |
<match minecraft.log> |
package basic | |
import io.gatling.core.Predef._ | |
import io.gatling.http.Predef._ | |
import io.gatling.jdbc.Predef._ | |
import io.gatling.http.Headers.Names._ | |
import scala.concurrent.duration._ | |
import bootstrap._ | |
import assertions._ |
module.exports = function(grunt) { | |
var moment = require('moment'); | |
var repo_dir = "/home/jacopen/Project/node_modules/node-red/config" | |
var files = ["king_cred.json", "king.json"] | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
flow: { | |
files: 'config/*.json', | |
tasks: ['gitcommit:task'] |
# Ubuntu preseed file - preseed.cfg | |
# Works for Ubuntu 10.x, 11.x & 12.x | |
# | |
# For more information on preseed syntax and commands, refer to: | |
# https://help.ubuntu.com/12.04/installation-guide/i386/appendix-preseed.html | |
# | |
# For testing, you can fire up a local http server temporary. | |
# Download the preseed.cfg file locally, cd to the directory where the | |
# preseed.cfg resides and run hte following command: | |
# $ python -m SimpleHTTPServer |