Skip to content

Instantly share code, notes, and snippets.

@hshimamoto
hshimamoto / parse.pl
Created December 9, 2012 16:15
Parse key={p1,p2}
#!/usr/bin/env perl
# vim:set sw=2 sts=2:
# parse
# key = params
# KEY = { P1, P2, {P3} }
sub parse_param {
my $param = shift;
my $s = '';
my $out = '';
package main
import (
"os"
"log"
"crypto/tls"
"crypto/x509"
)
func vpc(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error {
all:
gcc -Wall `pkg-config fuse --cflags --libs` -DFUSE_USE_VERSION=26 elfs.c -o elfs
clean:
rm -f elfs
.*
!.gitignore
*.o
test_dft
test_fft
// uskbdxrdp
// MIT License Copyright(c) 2020 Hiroshi Shimamoto
// vim:set sw=4 sts=4:
package main
import (
"log"
"net"
@hshimamoto
hshimamoto / memo.md
Last active September 24, 2020 21:55
memo
@hshimamoto
hshimamoto / main.go
Created August 8, 2020 10:39
golang buffer reuse test
// vim:set sw=4 sts=4:
package main
import (
"fmt"
"net"
"os"
"time"
"github.com/hshimamoto/go-session"
@hshimamoto
hshimamoto / cam.py
Last active October 27, 2020 23:20
Python OpenCV Multiple process
#!/usr/bin/env python3
# vim: set sw=2 sts=2 expandtab:
# ref https://qiita.com/kakinaguru_zo/items/eda129635816ad871e9d
import cv2
import sys
import time
import numpy
import socket
@hshimamoto
hshimamoto / ubuntu.conf
Created March 12, 2021 21:55
Download cloudimage
focal https://cloud-images.ubuntu.com/focal/current/ focal-server-cloudimg-amd64.img MD5SUMS
bionic https://cloud-images.ubuntu.com/bionic/current/ bionic-server-cloudimg-amd64.img MD5SUMS
xenial https://cloud-images.ubuntu.com/xenial/current/ xenial-server-cloudimg-amd64-disk1.img MD5SUMS