Skip to content

Instantly share code, notes, and snippets.

View kekyo's full-sized avatar
📡
I'm looking for a job

Kouji Matsui kekyo

📡
I'm looking for a job
View GitHub Profile
@kekyo
kekyo / ecma335-iii.1.7.md
Created January 21, 2023 02:21
ecma335-iii.1.7

III.1.7 Restrictions on CIL code sequences

As well as detailed restrictions on CIL code sequences to ensure:

  • Correct CIL
  • Verifiable CIL

There are a few further restrictions, imposed to make it easier to construct a simple CIL-tonative-code compiler. This subclause specifies the general restrictions that apply in addition to this listed for individual instructions.

@kekyo
kekyo / ubuntu-enable-libvirt-bridge.md
Last active June 19, 2022 10:12
Minimal configuration for libvirt environment with bridge interface on ubuntu 22.04 when using nmcli (without netplan)

Example network diagram

Before Configuring

                                    192.168.56.0/24
                                          |
                      192.168.56.1        |        192.168.56.17 (Wired connection 1)
                                |         v         |
The internet --- gateway router *-------------------* (enp1s0) *---- (... app sockets)
@kekyo
kekyo / Creator_CI20.md
Last active January 13, 2025 17:52
How to update latest packages on Imagination Creator CI20 Debian 8 (jessie)

How to update latest packages on Imagination Creator CI20 Debian 8 (jessie)

Imagination Creator CI20 board: A MIPS32 architecture evaluation board.

Imagination Creator CI20 board


@kekyo
kekyo / build.yaml
Created December 22, 2021 03:57
Uses MSBuild on GitHub Actions
name: .NET Framework
on:
push:
# branches:
# - main
# - develop
# pull_request:
# branches:
# - main
# - develop
@kekyo
kekyo / remove-ignore-files.sh
Last active November 19, 2021 06:39
Remove unused dirty nonsense files from Git repository with already committed.
#!/bin/sh
# 1. Put your adjusted genuine .gitignore file.
# 2.
git add .gitignore
git commit -m "Placed genuine .gitignore file."
# 3.
git clean -xfd
netsh http add urlacl url=http://+:12345/ user=everyone
netsh advfirewall firewall add rule name="SendKeySv HTTP" dir=in action=allow
netsh advfirewall firewall set rule name="SendKeySv HTTP" new program=system profile=private protocol=tcp localport=12345
@kekyo
kekyo / 00-installer-config.yaml
Last active June 22, 2021 05:59
Configure cockpit virtual machines on Ubuntu 20.04
# /etc/netplan/00-installer-config.yaml
network:
ethernets:
enp0s1:
dhcp4: false
dhcp6: false
bridges:
br0:
interfaces: [ enp0s1 ]
addresses: [192.168.0.104/24]
@kekyo
kekyo / ValueTypeHashCodeTest.cs
Created October 16, 2020 14:07
ValueTypeHashCodeTest.cs
using System;
namespace ConsoleApp1
{
//.class private sealed sequential ansi beforefieldinit
//ConsoleApp1.Test
//extends [System.Runtime]System.ValueType
//{
// .field public int32 IntValue
// .field public string StringValue
using System;
namespace UnificationPolarity
{
public static class Class1
{
public static IConvertible foo(IConvertible arg) =>
arg;
public static Func<IConvertible, IConvertible> bar(Func<IConvertible, IConvertible> arg) =>
@kekyo
kekyo / Program.cs
Created October 1, 2019 04:55
Generic covariance in C#
using System;
using System.Collections.Generic;
namespace ConsoleApp6
{
class Program
{
public interface IBar
{
// ....