Skip to content

Instantly share code, notes, and snippets.

View jyuch's full-sized avatar

jyuch jyuch

View GitHub Profile
@jyuch
jyuch / build.sh
Last active August 6, 2023 11:23
PostgresをLLVMサポート付きでビルドするアレ
$HOME/src/postgresql-15.3/configure \
--prefix=$HOME/.local/pg15 \
--with-icu \
--with-lz4 \
--with-zstd \
--with-llvm \
LLVM_CONFIG='/usr/bin/llvm-config-15' \
CLANG='/usr/bin/clang-15' \
CC='/usr/bin/clang-15' \
CXX='/usr/bin/clang-15'
@jyuch
jyuch / use.ps1
Created September 24, 2022 06:53
PowerShell用簡易Javaバージョンセレクタ
Param([parameter(mandatory=$true)][String]$Version)
$java8 = Join-Path $PSScriptRoot 'jdk8u322-b06'
$java11 = Join-Path $PSScriptRoot 'jdk-11.0.14.1+1'
$tools = @('gradle', 'sbt')
$env:JAVA_HOME = switch ($Version)
{
8 { $java8 }
@jyuch
jyuch / TreeDsl.cs
Created April 6, 2022 10:44
C#でDSLをでっち上げるアレ
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
namespace ConsoleApp1
{
using IO = System.IO;
@jyuch
jyuch / docker-compose.yml
Last active January 2, 2020 14:53
DockerでElastiFlowをブチ上げるアレ
#------------------------------------------------------------------------------
# Portions of this file are Copyright (C)2019 Robert Cowart
#
# Portions of this file are subject to the Robert Cowart Public License (the
# "License") and may not be used or distributed except in compliance with the
# License. You may obtain a copy of the License at:
#
# http://www.koiossian.com/public/robert_cowart_public_license.txt
#
# Software distributed under the License is distributed on an "AS IS" basis,
@jyuch
jyuch / Dockerfile
Created October 2, 2016 09:21
Dockerでio環境をブチ上げるアレ
FROM ubuntu:16.04
RUN set -x \
&& apt-get update \
&& apt-get install -y wget unzip emacs \
&& rm -rf /var/lib/apt/lists/*
RUN set -x \
&& cd tmp \
&& wget http://iobin.suspended-chord.info/linux/iobin-linux-x64-deb-current.zip \
@jyuch
jyuch / Dockerfile
Last active September 29, 2016 14:26
Dockerでpsqlをサクッとブチ上げるアレ
FROM ubuntu:16.04
RUN set -x \
&& apt-get update \
&& apt-get install -y postgresql-client \
&& rm -rf /var/lib/apt/lists/*
@jyuch
jyuch / Dockerfile
Last active September 4, 2016 12:47
DockerでAZ-Prolog環境をブチ上げるアレ
FROM ubuntu:14.04
RUN set -x \
&& apt-get update \
&& apt-get install -y build-essential libncursesw5-dev wget \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://www.az-prolog.com/?ddownload=52585 -O /tmp/azprolog9.24-ubuntu14.04x64.tgz
RUN set -x \
Module Module1
Sub Main()
Dim f = New Fixed()
Dim d = New Delimiter()
Dim fa = f.GetType().GetCustomAttributes(GetType(BaseRecordAttribute), True)
For Each it As BaseRecordAttribute In fa
Console.WriteLine(it.GetType().FullName)
@jyuch
jyuch / MainClass.cs
Last active March 16, 2016 13:21
別のソフトウェアをホストして異常終了したらJenkinsに通知しようとしたもの
using System;
using System.Diagnostics;
using System.Text;
using System.Xml;
using System.Xml.Linq;
using System.Net.Http;
using System.Net;
using System.IO;
namespace Watchdoc
@jyuch
jyuch / hexdump.py
Created January 13, 2015 11:50
16進数で出力します
# -*- coding: utf-8 -*-
import sys
import os.path
import io
from binascii import hexlify
from itertools import count
def main(argv):
if len(argv) == 1: