$ mkdir ~/ssl
$ cd ~/ssl
$ openssl genrsa -out localhost.key 2048
$ openssl req -new -x509 -key localhost.key -out localhost.crt -days 3650 -subj /CN=localhost
$ sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain localhost.crt
$ brew install nginx
$ cp ~/ssl/localhost.crt /opt/boxen/homebrew/etc/nginx/cert.pem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'erubis' | |
template = <<'END' | |
<%= Time.now %> | |
<%= ::Time.now %> | |
<%= "string gsub".gsub!(//, '') %> | |
## Hello <%= @user %>! | |
<% for item in @list %> | |
- <%= item %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import SimpleHTTPServer | |
import SocketServer | |
import argparse | |
parser = argparse.ArgumentParser(description='http_server.') | |
parser.add_argument('-p', help='port number', default=8000) | |
parser.add_argument('-b', help='bind address', default="127.0.0.1") |
$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.js
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/numeric.c b/numeric.c | |
index 480ab7e0cb..bdf885cf57 100644 | |
--- a/numeric.c | |
+++ b/numeric.c | |
@@ -186,7 +186,7 @@ VALUE rb_cFixnum; | |
VALUE rb_eZeroDivError; | |
VALUE rb_eFloatDomainError; | |
-static ID id_to, id_by; | |
+static ID id_to, id_by, id_from; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
MAINTAINER yalab <[email protected]> | |
RUN apk --update --no-cache add alpine-sdk ncurses-dev bc linux-headers perl | |
ENV ARCH="x86_64" | |
RUN git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git /linux | |
WORKDIR /linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
スタッフ | |
1, yuukyun | |
2,yamazoeakiyo | |
3, | |
4,morisaki | |
5, higaki | |
6, aki | |
7, kyara | |
8, |
linux kernel process invoke で検索すると http://www.tldp.org/LDP/tlk/kernel/processes.html
Linux の process とは task_struct 構造体の事で、task vector に 512 個まで格納される
process と task の違い?