Skip to content

Instantly share code, notes, and snippets.

View idubnori's full-sized avatar

idubnori

  • Tokyo, Japan
  • 10:44 (UTC +09:00)
View GitHub Profile
@idubnori
idubnori / hello-playbook-01.yml
Last active April 1, 2021 14:06
hello-playbook-01.yml
---
- name: Playbook Sample
hosts: localhost
become: true
tasks:
- name: install libselinux-python
yum:
name: libselinux-python
state: present
@idubnori
idubnori / docker-compose.yml
Last active November 1, 2018 10:44
Docker compose SonarQube with PostgreSQL
version: "3.5"
services:
sonarqube:
image: sonarqube
ports:
- "9000:9000"
networks:
- sonarnet
environment:
@idubnori
idubnori / docker-compose.yml
Last active April 19, 2018 15:32 — forked from ahromis/docker-compose.yml
Gogs armhf docker-compose.yml
version: '3'
services:
postgres:
image: armhf/postgres:9.6-alpine
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=gogsdb
volumes:
@idubnori
idubnori / UseGitInfoExtensions.cs
Created March 21, 2018 06:50
HTTP Endpoint for GitInfo on ASP.NET Core. Provide all properties of ThisAssembly as "/gitinfo" API.
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
namespace GitInfo
{
public static class UseGitInfoExtensions
@idubnori
idubnori / TestServerExtensions.cs
Last active March 30, 2018 15:35
A functional test example using TestServer and HubConnection on ASP.NET Core SignalR.
using System;
using Microsoft.AspNetCore.SignalR.Client;
using Microsoft.AspNetCore.Sockets;
using Microsoft.AspNetCore.TestHost;
namespace Tests
{
public static class TestServerExtensions
{
public static HubConnection CreateHubConnection(this TestServer testServer, string hubPath, TransportType transportType = TransportType.LongPolling)