Skip to content

Instantly share code, notes, and snippets.

yasushi abe Yasushi

Block or report user

Report or block Yasushi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pre-commit
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# To enable this hook, rename this file to "pre-commit".
if git rev-parse --verify HEAD >/dev/null 2>&1
View Dockerfile
FROM debian:stretch-slim AS build
RUN apt-get update && apt-get -y --no-install-recommends install wget ca-certificates && wget -O /embulk "https://dl.bintray.com/embulk/maven/embulk-0.9.7.jar"
FROM openjdk:8-slim
COPY --from=build /embulk /usr/local/bin/embulk
RUN chmod 755 /usr/local/bin/embulk
RUN useradd -m -u 1000 user
USER user
View eb.py
#!/usr/bin/env python3
# -*- coding: utf-8; -*-
import sys, os, glob, itertools, re, functools, pprint
from collections import OrderedDict
from lxml import etree
from ebooklib import epub
View keybase.md

Keybase proof

I hereby claim:

  • I am yasushi on github.
  • I am yasushia (https://keybase.io/yasushia) on keybase.
  • I have a public key ASA5vTNYB_jBJ4PtfhUxo_TFM2qkUTIcNiLfn5nnonV_2Qo

To claim this, I am signing this object:

View gist:f2fb056481ef21b74fab5f537469c519
hdiutil makehybrid -iso -joliet -o test.iso ./root
View gpg-agent.conf
pinentry-program /usr/local/bin/pinentry-mac
View main.rs
extern crate zip;
use zip::write::FileOptions;
fn main() {
let path = std::path::Path::new("dummy.zip");
let file = std::fs::File::create(&path).unwrap();
let mut zip = zip::ZipWriter::new(file);
@Yasushi
Yasushi / main.fs
Created Sep 27, 2017
decode chrome login data
View main.fs
module Main
open System
open System.Security.Cryptography
open System.Text.RegularExpressions
let fromHex (s:string) =
s
|> Seq.windowed 2
|> Seq.mapi (fun i j -> (i,j))
View main.scala
import java.io._
import com.googlecode.sardine.SardineFactory
import scala.util.control.Exception._
object Main extends App {
val log = new PrintWriter("output", "UTF-8")
@Yasushi
Yasushi / bootlocal.sh
Last active Mar 28, 2019
boot2docker static ip
View bootlocal.sh
#!/bin/sh
kill `cat /var/run/udhcpc.eth0.pid`
ifconfig eth0 192.168.0.100 netmask 255.255.255.0 up
ip route add default via 172.168.0.1 dev eth0
echo nameserver 8.8.8.8 >> /etc/resolv.conf
#/mnt/sda1/var/lib/boot2docker/bootlocal.sh
You can’t perform that action at this time.