Skip to content

Instantly share code, notes, and snippets.

View nekketsuuu's full-sized avatar
🍑
I like peaches!

Takuma Ishikawa nekketsuuu

🍑
I like peaches!
View GitHub Profile
root@56b234adc7b8:~# cat test.cpp
# include <Siv3D.hpp>
void Main()
{
const Font font(30);
while (System::Update())
{
Circle(Cursor::Pos(), 100).draw();
Release# cmake -DCMAKE_BUILD_TYPE=Release ..
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- The CXX compiler identification is GNU 7.2.0
-- Check for working CXX compiler: /usr/bin/g++-7
-- Check for working CXX compiler: /usr/bin/g++-7 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is GNU 7.2.0
$ sudo ./check-config.sh
warning: /proc/config.gz does not exist, searching other paths for kernel config ...
info: reading kernel config from /boot/config-4.10.0-37-generic ...
Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- apparmor: enabled and tools installed
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
// This script roughly checks if a markdown file contains unescaped angle brackets.
// Usage: go run check-escape.go <file1> [<file2> ...]
package main
import (
"bufio"
"fmt"
"log"
"os"
"regexp"
(function() {
var date = new Date();
var year = date.getFullYear();
var month = date.getMonth() + 1;
var url = 'https://github.com/nekketsuuu/*********/wiki/日記%3A%3A' + year.toString() + '年' + month.toString() + '月' + '/_edit';
var editor = window.open(url, '_self');
})();
$ sudo ./run-test.sh crystal-0.23.1
fe2e6459b8055032f88e8bd4da048f3f71cb769be20f062d0a3b2b87920abc19
wait: kennel port...
opened
crystal-0.23.1: {u'status': u'11', u'program_error': u"\x1b[33mUsing compiled compiler at `.build/crystal'\x1b[0m\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\n
$ sudo ./docker-run.sh kennel
root@nek:/var/work/kennel# ./install.sh
+++ pwd
++ CURRENT_DIR=/var/work/kennel
++++ dirname ./install.sh
+++ cd .
+++ pwd
++ BASE_DIR=/var/work/kennel
+ PREFIX=/opt/wandbox/kennel
+ cd /root/
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Docomoの雑談対話APIを使ってチャットできるスクリプト (Python 3)
# https://ja.stackoverflow.com/q/37648/19110
import sys
import urllib.request
import json
import os
@nekketsuuu
nekketsuuu / SMLsharp-3.3.0-log
Last active August 2, 2017 10:13
SML# 3.3.0 を MassiveThreads がインストールされていない環境において --without-massivethreads オプション付きでコンパイルしたときにリンカのエラーが起こるログです
root@fdd452650efa:~/smlsharp-3.3.0# PATH=/usr/lib/llvm-3.7/bin:$PATH ./configure --without-massivethreads
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
@nekketsuuu
nekketsuuu / Makefile
Last active July 22, 2017 02:27
関数・論理型プログラミング実験第13回リバーシプログラム Haskell サーバーを stack でコンパイルするとき用の Makefile です。
GHC=stack --resolver ghc-8.0.1 --install-ghc ghc --package random --package network -- -XFlexibleContexts
TARGETS=reversi-serv
TARGETC=reversi
SRCS=Play.hs Command.hs
all: $(TARGETS) $(TARGETC)
$(TARGETS): Server.hs $(SRCS)
$(GHC) -O --make -o $(TARGETS) Server.hs