Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"runtime"
"sync"
)
var mutex *sync.Mutex
@akimasa
akimasa / c_cpp_properties.json
Last active January 17, 2019 09:22
.vscode for nRF5 SDK 12.3.0
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/pca10028/s130/config/",
"${workspaceFolder}/pca10028/s130/**",
"${workspaceFolder}/**",
"${workspaceRoot}/../../../components/**",
"${workspaceRoot}/../../../external/**"
@akimasa
akimasa / aacparse.c
Created March 19, 2020 11:55
get digest of aac stream
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/md5.h>
// find /mnt/c/Users/Akimasa/Documents/radikocompare/ -name "*.aac" -print0 | xargs -0 -P1 -I {} ./a.out {}
// gcc main.c -lcrypto
void main(int argc, char *argv[])
{
MD5_CTX c;
char *data = "hoge";
@akimasa
akimasa / main.go
Created August 6, 2020 12:10
ssh-keysearch
package main
import (
"fmt"
"runtime"
"strings"
"time"
"golang.org/x/crypto/ssh"