https://gist.github.com/voluntas/a1d39c2b2a4392956ff69732dc493e39
日時: | 2019-03-17 |
---|---|
作: | 時雨堂 |
バージョン: | 19.3.0 |
url: | https://shiguredo.jp/ |
概要
Generate KEY and CSR:
openssl req -new -newkey rsa:2048 -nodes -keyout DOMAIN.key -out DOMAIN.csr
Echo the KEY in PEM format:
openssl rsa -in DOMAIN.key -outform PEM
Echo the CRT in PEM format:
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
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
日時: | 2024-04-16 |
---|---|
作: | 時雨堂 |
バージョン: | 2024.2 |
url: | https://shiguredo.jp/ |
2024-04 時点で従業員は全員フルリモート勤務中
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 'socket' | |
socket = TCPServer.open('0.0.0.0', 3000) | |
[:INT, :QUIT].each do |signal| | |
Signal.trap(signal) { | |
wpids.each { |wpid| Process.kill(signal.wpid) } | |
} | |
end |
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
Copyright (C) 2012 Yoshimasa Niwa | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
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
# Example MySQL config file for small systems. | |
# | |
# This is for a system with little memory (<= 64M) where MySQL is only used | |
# from time to time and it's important that the mysqld daemon | |
# doesn't use much resources. | |
# | |
# MySQL programs look for option files in a set of | |
# locations which depend on the deployment platform. | |
# You can copy this option file to one of those | |
# locations. For information about these locations, see: |
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 'HTTP' | |
require 'UV' | |
module Sinachiku | |
@routes = { 'GET' => [], 'POST' => [] } | |
def self.route(method, path, opts, &block) | |
@routes[method] << [path, opts, block] | |
end | |
def self.do(r) | |
@routes[r.method].each {|path| |
NewerOlder