This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -up ./toys/posix/uname.c.orig ./toys/posix/uname.c | |
--- ./toys/posix/uname.c.orig 2021-09-27 13:33:30.000000000 +0900 | |
+++ ./toys/posix/uname.c 2021-09-27 13:29:09.000000000 +0900 | |
@@ -69,9 +69,11 @@ void arch_main(void) | |
uname_main(); | |
} | |
+#ifdef PER_LINUX32 | |
#include <sys/personality.h> | |
void linux32_main(void) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import click | |
import requests | |
import functools | |
from logging import getLogger | |
_log = getLogger(__name__) | |
@click.group(invoke_without_command=True) | |
@click.pass_context |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import click | |
import requests | |
import functools | |
import subprocess | |
import re | |
import os | |
import tempfile | |
import tarfile | |
import zipfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Makefile.orig 2015-10-03 00:58:40.000000000 +0900 | |
+++ Makefile 2015-10-03 00:59:13.000000000 +0900 | |
@@ -1,4 +1,4 @@ | |
-CFLAGS = -O | |
+CFLAGS = -O -Wno-implicit-function-declaration -Wno-return-type -Wno-implicit-int | |
DEST = ${HOME}/bin | |
@@ -47,5 +47,3 @@ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import keyword | |
from ply import lex | |
from ply import yacc | |
from logging import getLogger, basicConfig, DEBUG, INFO | |
log = getLogger(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cgotest | |
import ( | |
//#cgo LDFLAGS: -lm | |
//#include <math.h> | |
"C" | |
"math" | |
) | |
func CSin(x float64) float64 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import tempfile | |
import subprocess | |
import csv | |
class singer: | |
VOICE = "Kyoko" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mvnc import mvncapi as mvnc | |
import cv2 | |
import numpy | |
import os | |
import time | |
import subprocess | |
import caffe | |
import click | |
import struct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.box_check_update = false | |
config.vm.network :forwarded_port, guest: 8888, host: 8888 | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "4096" | |
vb.cpus = 2 | |
vb.customize ["modifyvm", :id, "--paravirtprovider", "kvm"] | |
vb.customize ["modifyvm", :id, "--hwvirtex", "on"] | |
vb.customize ["modifyvm", :id, "--ioapic", "on"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
gogs: | |
container_name: gogs | |
image: gogs/gogs | |
ports: | |
- 3000:3000 | |
volumes: | |
- ./gogs:/data |
NewerOlder