Skip to content

Instantly share code, notes, and snippets.

😇
ズイ₍₍(ง˘ω˘)ว⁾⁾ズイ

Yoshiyuki Ieyama 44uk

😇
ズイ₍₍(ง˘ω˘)ว⁾⁾ズイ
Block or report user

Report or block 44uk

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
@44uk
44uk / get_all_nem_namespace.sh
Created Sep 23, 2018
Get all nem namespace from Node
View get_all_nem_namespace.sh
#!/bin/bash
nodeUrl=http://88.99.192.82:7890 # huge alice
# nodeUrl=http://176.9.68.110:7890 # huge alice 2
# nodeUrl=http://176.9.20.180:7890 # huge alice 3
tempDir=/tmp/_get_all_nem_namespace
lastId=99999
[ -d $tempDir ] || mkdir -p $tempDir
while [ "$lastId" != "null" ]; do
result=$(curl -s "$nodeUrl/namespace/root/page?pageSize=100&id=$lastId")
firstId=$(echo $result | jq .data[0].meta.id)
@44uk
44uk / nem2-cli-bash-completion
Last active Feb 1, 2019
nem2-cli-bash-completion
View nem2-cli-bash-completion
###-begin-nem2-cli-bash-completion-###
#
# nem2-cli completion script
#
# Installation: cat nem2-cli-bash-completion >> ~/.bashrc
# Or, maybe: mv nem2-cli-bash-completion /etc/bash_completion.d/nem2-cli
#
_nem2-cli-completion() {
local opts curr prev
curr="${COMP_WORDS[COMP_CWORD]}"
View silver_j.md

問題1. 選択肢の中からRubyの予約語ではないものを2つ選択してください。

  • A.super
  • B.begin
  • C.try
  • D.goto

問題2. 以下のコードを実行した出力として正しいものを1つ選択してください。

def foo (a, *b)
 p a
View gist:233ca283f7f0bd264d5b3b3be826ae20
<html>
<head>
<script src="verify.js"></script>
</head>
<body>
<img src="http://dummyimage.com/300x800" />
</body>
</html>
View mecab-install-script.sh
#!/bin/sh -x
PREFIX=/opt/mecab
MECAB=mecab-0.996
IPADIC=mecab-ipadic-2.7.0-20070801
JUMANDIC=mecab-jumandic-7.0-20130310
NAISTDIC=mecab-naist-jdic-0.6.3b-20111013
[[ ! -e $MECAB.tar.gz ]] && wget https://mecab.googlecode.com/files/$MECAB.tar.gz
# [[ ! -e $IPADIC.tar.gz ]] && wget https://mecab.googlecode.com/files/$IPADIC.tar.gz
View nem_snippets.js
var props = {
divisibility: '0',
initialSupply: '21000000',
supplyMutable: 'true',
transferable: 'true'
}
// no need parse prop value
props.reduce(function (obj, el) { obj[el.name] = el.value; return obj }, {})
@44uk
44uk / nem_cheatsheet.md
Last active Aug 31, 2018
nem cheatsheet
View nem_cheatsheet.md

nem cheatsheet

Type

Code Desc
1 The result is a validation result.
2 The result is a heart beat result.
4 The result indicates a status.
@44uk
44uk / Dockerfile
Last active Jan 7, 2018
Dockerfile for koto minerd
View Dockerfile
FROM alpine:latest
MAINTAINER Yoshiyuki Ieyama <44uk@github.com>
ENV SRCURL=https://github.com/koto-dev/cpuminer-yescrypt/archive/master.tar.gz
RUN apk add --update --no-cache automake autoconf gawk build-base curl curl-dev gcc tar make \
&& mkdir __workdir && cd $_ \
&& curl -kL $SRCURL | tar xz --strip=1 \
&& ./autogen.sh \
&& ./configure CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer" \
&& make && make install && make clean \
&& cd ../ && rm -rf __workdir
@44uk
44uk / Dockerfile
Last active Jan 7, 2018
Dockerfile for bitzeny minerd
View Dockerfile
FROM alpine:latest
MAINTAINER Yoshiyuki Ieyama <44uk@github.com>
ENV SRCURL=https://github.com/bitzeny/cpuminer/archive/master.tar.gz
RUN apk add --update --no-cache automake autoconf gawk build-base curl curl-dev gcc tar make \
&& mkdir __workdir && cd $_ \
&& curl -kL $SRCURL | tar xz --strip=1 \
&& ./autogen.sh \
&& ./configure CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer" \
&& make && make install && make clean \
&& cd ../ && rm -rf __workdir
@44uk
44uk / nis_https_setup.sh
Last active Oct 16, 2018
nis_https_setup.sh
View nis_https_setup.sh
#!/bin/bash
echo setting up your domain
echo "domain => $1"
echo " email => $2"
echo "are you really? (y/n)"
read input
if [ -z $1 ] || [ -z $2 ]; then
echo "pass me: {domain} {email}"
exit 1
You can’t perform that action at this time.