この記事は 武蔵野 Advent Calendar の12日目の記事です。
この記事を書いた目的は,私の (しょぼい) pull-request (以下「プルリク」) 遍歴を振り返って,「こんなにしょぼくても大丈夫だから,みんな気軽にOSSにプルリクしよう」ということを呼びかけることにある。
| //The global script scope | |
| def ctx = context(scope: scriptScope()) | |
| //What things can be on the script scope | |
| contributor(ctx) { | |
| method(name: 'pipeline', type: 'Object', params: [body: Closure]) | |
| property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable') | |
| property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder') | |
| property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder') | |
| property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar') |
この記事は 武蔵野 Advent Calendar の12日目の記事です。
この記事を書いた目的は,私の (しょぼい) pull-request (以下「プルリク」) 遍歴を振り返って,「こんなにしょぼくても大丈夫だから,みんな気軽にOSSにプルリクしよう」ということを呼びかけることにある。
We are bootstrapping a startup and don't own any retina devices to capture high resolution screenshots. Thankfully, this is possible via Xvfb.
Convenience Node.js script here: https://gist.github.com/twolfson/4f7e7ec7d6969173d6a095f86e2d47c8
Here's how to get started manually:
Xvfb :99 -screen 0 3840x2160x24 -dpi 240:99 as our $DISPLAY but any unused value will do| #!/usr/bin/env ruby | |
| DIRECTORY = '/Users/USERNAME/.check' | |
| def check(file) | |
| File::open(file) do |f| | |
| f.each_line do |line| | |
| puts line | |
| STDIN.gets.chomp | |
| end |
| FROM ruby:alpine | |
| MAINTAINER mizu <mizu.copo@gmail.com> | |
| RUN set -x \ | |
| && apk upgrade --no-cache \ | |
| && apk add --no-cache --virtual build-dependencies \ | |
| build-base \ | |
| && apk add --no-cache \ | |
| libxml2-dev \ | |
| libxslt-dev \ |
| #!/bin/bash | |
| # | |
| BACKUPDEST="$1" | |
| DOMAIN="$2" | |
| MAXBACKUPS="$3" | |
| if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
| echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
| exit 1 |
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
| #!/bin/sh | |
| # | |
| # 2 つのディレクトリ中のパーミッション, 所有者を一覧化し, | |
| # お互いに差分が無いか出力する. | |
| # | |
| # Author: Yuya Takeyama | |
| if [ "$1" = "" -o "$2" = "" ]; then | |
| echo "Usage: `basename $0` file1 file2" | |
| exit 1 |