Skip to content

Instantly share code, notes, and snippets.

View Reizinixc's full-sized avatar
🗨️
In the place where the internet is limited

Ichi (Reizinixc) Reizinixc

🗨️
In the place where the internet is limited
  • Japan
  • 03:17 (UTC +09:00)
View GitHub Profile
@Reizinixc
Reizinixc / japanese-name-generator.cs
Created April 16, 2018 00:25
Poor man Japanese name generator
private static readonly Random random = new Random();
void Main()
{
GenerateJapaneseName().Dump();
}
private static string GenerateJapaneseName()
{
const string nameGenerableHiraganaCharacters = "あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわ";
@Reizinixc
Reizinixc / fieldMutateProtectedProxyHandler.js
Created June 15, 2018 09:19
fieldMutateProtectedProxyHandler
const fieldMutateProtectedProxyHandler = (() => {
const MemberType = Object.freeze({
PROPERTY: Symbol('PROPERTY'),
METHOD: Symbol('METHOD'),
FIELD: Symbol('FIELD'),
UNKNOWN: Symbol('UNKNOWN')
});
function getMemberType(target, key) {
if (!(key in target)) {
@Reizinixc
Reizinixc / gist:5e653d4c44fd2485c1460983803f6c54
Created December 17, 2019 02:42
Schedule arragement formula for Excel
// Assume that the table looks like
// Participant \ Date | 12/21 | 12/22 | 12/23 | 12/24 |
// ----------------------------------------------------
// A | X | | X | |
// B | O | | 3 | 3 |
// C | O | | | |
// D | | | | |
// = | X | O | X | 3 |
=IF(COUNTIF(B2:B6, "✕") > 0, "✕", IF(COUNTIF(B2:B6, "△") > 0, "△", "〇"))
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import javax.servlet.ReadListener;
import javax.servlet.ServletInputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
@Reizinixc
Reizinixc / pipeline.gdsl
Created May 24, 2020 05:25 — forked from Mazorius/pipeline.gdsl
A GDSL for Jenkins pipelines.
//////////////////////////////////
////// SCRIPT & CLASS SCOPE //////
//////////////////////////////////
final def classContext = context scope: classScope()
final def scriptContext = context scope: scriptScope()
contributor([scriptContext, classContext]) {
property(name: "env", type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl')
property(name: "params", type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl')
@Reizinixc
Reizinixc / Dockerfile
Created February 25, 2021 02:23
Adminer with oci8
FROM donvito/php-oci8
STOPSIGNAL SIGINT
RUN groupadd -g 1000 adminer \
&& useradd -d /var/www/html -u 1000 -g 1000 -M adminer \
&& mkdir -p /var/www/html \
&& chown 1000:1000 /var/www/html
WORKDIR /var/www/html
@Reizinixc
Reizinixc / Dockerfile
Created June 20, 2022 05:16
kubectl-kustomize for manifest build
# syntax=docker/dockerfile:1.4
ARG BASE_IMAGE_REPO=docker.io
ARG USER_ID=1000
ARG USER=runtime
ARG CURL_IMAGE=${BASE_IMAGE_REPO}/curlimages/curl:7.83.1
ARG RUNTIME_IMAGE=${BASE_IMAGE_REPO}/busybox:1.34.1
ARG KUBECTL_VERSION=1.24.0
ARG KUSTOMIZE_VERSION=4.5.5
ARG KUBECTL_NEAT_VERSION=2.0.3
@Reizinixc
Reizinixc / ZnUrl#printAuthorityOn.st
Created May 12, 2023 16:31
ZnBivalentWriteStream did not understand #print
printAuthorityOn: stream
self hasUsername ifTrue: [
self encode: self username on: stream.
self hasPassword ifTrue: [
stream nextPut: $:.
self encode: self password on: stream ].
stream nextPut: $@ ].
self hasHost ifTrue: [
self encode: self host on: stream ].
self hasPort ifTrue: [
0.0.0.0 a.line.me
0.0.0.0 aax-us-pdx.amazom-adsystem.com
0.0.0.0 aax-us.amazom-adsystem.com
0.0.0.0 ad-center.line.me
0.0.0.0 ad.line-scdn.net
0.0.0.0 adns1.line.naver.com
0.0.0.0 adns2.line.naver.com
0.0.0.0 adpon.jp
0.0.0.0 adservice.google.com
0.0.0.0 ch-news.line-apps.com