Skip to content

Instantly share code, notes, and snippets.

Isekai-Seikatsu / docker-compose.yml
Last active Jan 6, 2021
GitLab self-host docker-compose example
View docker-compose.yml
# docker-compose.yml
image: 'gitlab/gitlab-ee:latest'
restart: always
hostname: '$GITLAB_HOSTNAME'
external_url 'http://$GITLAB_HOSTNAME'
gitlab_rails['gitlab_shell_ssh_port'] = 2224
# Add any other gitlab.rb configuration here, each on its own line
Isekai-Seikatsu / CV_HW2.html
Last active Apr 8, 2020
College Homework for image processing
View CV_HW2.html
<!DOCTYPE html> <html lang=zh-tw><!--
Page saved with SingleFile
url: http://localhost:8888/notebooks/HW2.ipynb#
saved date: Wed Apr 08 2020 22:33:50 GMT+0800 (台北標準時間)
--><meta charset=utf-8>
<title>HW2 - Jupyter Notebook</title>
<meta http-equiv=X-UA-Compatible content="IE=edge">
<style>.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-n{cursor:n-resize;width:100%;left:0}.ui-slider{text-align:left}.ui-slider .ui-slider-handle{cursor:default;-ms-touch-action:none;touch-action:none}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget-content{color:#222}.ui-widget-content .ui-state-default{background:#e6e6e6 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAGQEAAAAAAao4lEAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0T//xSrMc0AAAAHdElNRQfgCQ4NIgiW7vkhAAAATElEQVQ4y2N4l8fEwDCKRhF1EcOzZwzPjRie32Fi3MvEeIGJ8SsT4zcmRg4mRk4mxm9MjF+ZGB8zfGRmYljF8EmOiUF4wB08ioYEAgDUMBI63vAg
Isekai-Seikatsu /
Last active Dec 29, 2019
docker command to Self-host a Serveo server
sudo docker run --network host -d \
taichunmin/serveo-server serveo \
-port=2222 \ \
Isekai-Seikatsu / main.c
Created Dec 28, 2019
OS - Optimal Page Replacement
View main.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CHUNK_SIZE 10
char *read_pages(size_t *len) {
size_t page_len = 0, pages_size = CHUNK_SIZE;
char *pages = (char *) calloc(pages_size + 1, sizeof(char));
Isekai-Seikatsu / Telegram export msg parser
Last active Dec 11, 2019
A script that transform messages exported from Telegram to CSV file with some config file.
View Telegram export msg parser
just make it be the title
Isekai-Seikatsu / reverse.c
Last active Dec 10, 2019
It's the homework of my college, implementing a function to reverse a simple one-way linked list. And I think this function I came up with was fun.
View reverse.c
typedef struct reg {
int ID;
int score;
struct reg *next;
} tReg;