Skip to content

Instantly share code, notes, and snippets.

Avatar
😃
Happy Coding

Kazuki Hamasaki ashphy

😃
Happy Coding
View GitHub Profile
@ashphy
ashphy / mastodon_poll_max_customize.patch
Last active Apr 18, 2020
Custom patch for the maximum number of options of mastodon poll. (v3.1.3)
View mastodon_poll_max_customize.patch
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} />
View .drone.yml
platform: linux/arm
pipeline:
build:
image: arm32v7/busybox:latest
commands:
- uname -a
View docker-compose.yml
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 Dec 30, 2017
KitchenCI Infrastructure Spec on drone.io
View .drone.yml
pipeline:
build:
image: aberrios85/drone-kitchen
commands:
- kitchen test
services:
docker:
image: plugins/docker
image: docker:1.12-dind
@ashphy
ashphy / .kitchen.yml
Created Dec 30, 2017
kitchen-docker plugin uses dind socket
View .kitchen.yml
driver:
name: docker
socket: tcp://docker:2375
@ashphy
ashphy / .drone.yml
Created Dec 30, 2017
Using docker in docker socket from other containers.
View .drone.yml
pipeline:
build:
image: docker:latest
environment:
- DOCKER_HOST=tcp://docker:2375
commands:
- docker info
@ashphy
ashphy / .drone.yml
Created Dec 30, 2017
docker in docker on drone.io
View .drone.yml
services:
docker:
image: docker:stable-dind
privileged: true
command: [ "--storage-driver=vfs", "--tls=false" ]
View s3-path.yml
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:
View s3-cache.yml
pipeline:
restore-cache:
image: plugins/s3-cache:1
pull: true
endpoint: http://minio:9000
access_key: DRONE
secret_key: DRONEDRONE
restore: true
build: