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
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:
pipeline:
restore-cache:
image: plugins/s3-cache:1
pull: true
endpoint: http://minio:9000
access_key: DRONE
secret_key: DRONEDRONE
restore: true
build:
minio:
image: minio/minio
ports:
- "9000:9000"
volumes:
- /var/lib/minio/data:/data
- /var/lib/minio/config:/root/.minio
command: server /data
environment:
- "MINIO_ACCESS_KEY=DRONE"
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- ./node_modules
volumes:
- /tmp/cache:/cache
build:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="wrapper">
<div id="header">HEADER</div>
@ashphy
ashphy / MailHandler.java
Created October 14, 2013 15:22
Mail Handler for GAE/J using java.util.logging
package com.ashphy.mailhandler;
import java.io.UnsupportedEncodingException;
import java.util.Properties;
import java.util.logging.ErrorManager;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.SimpleFormatter;
@ashphy
ashphy / binarycode
Last active December 14, 2015 15:09
Memo: mystery of binary code in Sherlock
4321 432 4 4 4 43 5431
01111 01110 01000 011110 01100 11110
15 14 8 8 8 12 30
ONHHHL
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Z Y X W V U T S R Q P O N M L K J I H G F E D C B A
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7
# sudo yum install bsdtar qt5-qtwebkit-devel qt5-qtbase-devel xcb-util-keysyms-devel gtk2-devel libappindicator libappindicator-devel qt5-qtlocation-devel qt5-qtsensors-devel
# git clone https://github.com/jkozera/zeal.git
# cd zeal/zeal
# qmake-qt5
# make
# sudo make install
#version=RHEL7
# System authorization information
cmdline
install
auth --enableshadow --passalgo=sha512
ignoredisk --only-use=vda
# Use network installation
url --url="ftp://ftp.iij.ad.jp/pub/linux/centos/7/os/x86_64/"
# Run the Setup Agent on first boot