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
@ashphy
ashphy / chromium_inspec.rb
Created June 7, 2014 14:29
Git repository inspection script for chromium
#!/usr/bin/env ruby
# Git repository inspection script for chromium
# See to get the code: http://www.chromium.org/developers/how-tos/get-the-code
# Kazuki Hamasaki <ashphy@ashphy.com>
require 'rugged'
REPO = '.'
REVIEW_COMMIT = /Review URL:/i
BOT_COMMITS = [/Updating trunk VERSION/, /Update .DEPS.git/, /Automated Commit/]
REVERT_COMMIT = /Revert r/
@ashphy
ashphy / changeset_r43481.diff
Created June 26, 2014 11:04
backport r41808(openssl build issue on fedora)
Index: ext/openssl/ossl_pkey_ec.c
===================================================================
--- ext/openssl/ossl_pkey_ec.c
+++ ext/openssl/ossl_pkey_ec.c
@@ -757,8 +757,10 @@
method = EC_GFp_mont_method();
} else if (id == s_GFp_nist) {
method = EC_GFp_nist_method();
+#if !defined(OPENSSL_NO_EC2M)
} else if (id == s_GF2m_simple) {
[root@kvm ashphy]# nc -l 0.0.0.0 6080
13:51:59,176 INFO rsyslogd: [origin software="rsyslogd" swVersion="7.4.7" x-pid="1194" x-info="http://www.rsyslog.com"] start
13:51:59,184 NOTICE kernel:[ 57.422600] type=1400 audit(1416491519.168:10): avc: denied { write } for pid=1075 comm="rsyslogd" name="/" dev="dm-0" ino=2 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:root_t:s0 tclass=dir
13:51:59,184 NOTICE kernel:[ 57.422605] type=1400 audit(1416491519.168:11): avc: denied { add_name } for pid=1075 comm="rsyslogd" name="xserver-statefile" scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:root_t:s0 tclass=dir
13:51:59,179 INFO anaconda: /sbin/anaconda 19.31.79-1
13:51:59,337 INFO anaconda: 1048576 kB (1024 MB) are available
13:51:59,337 INFO anaconda: check_memory(): total:1024, needed:512, graphical:512
13:51:59,341 INFO anaconda: anaconda called with cmdline = ['/sbin/anaconda']
13:51:59,341 INFO anaconda: Default encoding = utf-8
13:51:59,378 WARNING anaconda: Not a
#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
# 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
@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
@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;
<!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>
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- ./node_modules
volumes:
- /tmp/cache:/cache
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"