Skip to content

Instantly share code, notes, and snippets.

View ashphy's full-sized avatar
😃
Happy Coding

Kazuki Hamasaki ashphy

😃
Happy Coding
View GitHub Profile
pipeline:
restore-cache:
image: plugins/s3-cache:1
pull: true
endpoint: http://minio:9000
access_key: DRONE
secret_key: DRONEDRONE
restore: true
build:
restore-cache:
image: plugins/s3-cache:1
pull: true
endpoint: http://minio:9000
access_key: DRONE
secret_key: DRONEDRONE
restore: true
path: '/org-name/repo-name/'
rebuild-cache:
@ashphy
ashphy / .drone.yml
Created December 30, 2017 07:23
docker in docker on drone.io
services:
docker:
image: docker:stable-dind
privileged: true
command: [ "--storage-driver=vfs", "--tls=false" ]
@ashphy
ashphy / .drone.yml
Created December 30, 2017 07:24
Using docker in docker socket from other containers.
pipeline:
build:
image: docker:latest
environment:
- DOCKER_HOST=tcp://docker:2375
commands:
- docker info
@ashphy
ashphy / .kitchen.yml
Created December 30, 2017 07:25
kitchen-docker plugin uses dind socket
driver:
name: docker
socket: tcp://docker:2375
@ashphy
ashphy / .drone.yml
Created December 30, 2017 07:38
KitchenCI Infrastructure Spec on drone.io
pipeline:
build:
image: aberrios85/drone-kitchen
commands:
- kitchen test
services:
docker:
image: plugins/docker
image: docker:1.12-dind
@ashphy
ashphy / docker-compose.yml
Created January 1, 2018 14:08
ARM drone agent
version: '2'
services:
drone-agent:
image: drone/agent:linux-arm
command: agent
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
@ashphy
ashphy / .drone.yml
Created January 1, 2018 14:10
ARM build
platform: linux/arm
pipeline:
build:
image: arm32v7/busybox:latest
commands:
- uname -a
@ashphy
ashphy / mastodon_poll_max_customize.patch
Last active April 18, 2020 08:12
Custom patch for the maximum number of options of mastodon poll. (v3.1.3)
diff --git a/app/javascript/mastodon/features/compose/components/poll_form.js b/app/javascript/mastodon/features/compose/components/poll_form.js
index 01df31d3a..afd0ca2d0 100644
--- a/app/javascript/mastodon/features/compose/components/poll_form.js
+++ b/app/javascript/mastodon/features/compose/components/poll_form.js
@@ -153,7 +153,7 @@ class PollForm extends ImmutablePureComponent {
</ul>
<div className='poll__footer'>
- <button disabled={options.size >= 4} className='button button-secondary' onClick={this.handleAddOption}><Icon id='plus' /> <FormattedMessage {...messages.add_option} /></
+ <button disabled={options.size >= 100} className='button button-secondary' onClick={this.handleAddOption}><Icon id='plus' /> <FormattedMessage {...messages.add_option} />