Skip to content

Instantly share code, notes, and snippets.

@jampajeen
jampajeen / go-call-c-lib
Created February 13, 2021 08:10
Golang call C function in dynamic library using dlopen
package cv
import "C"
import (
"log"
"github.com/rainycape/dl"
)
// Capture ...
@jampajeen
jampajeen / git-pushing-multiple.rst
Created February 20, 2021 13:13 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@jampajeen
jampajeen / index.html
Created March 21, 2021 10:44 — forked from hpcslag/index.html
Image Recognize in Golang
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form action="/recognize" method="post" enctype="multipart/form-data">
@jampajeen
jampajeen / nvidia-gt710-arm-pi-setup.sh
Created July 4, 2021 07:56 — forked from geerlingguy/nvidia-gt710-arm-pi-setup.sh
Set up the Nvidia GeForce GT 710 on Raspberry Pi Compute Module 4
#!/bin/bash
# Attempt to set up the Nvidia GeForce GT 710 on a Pi CM4.
#
# I have tried both armv7l and aarch64 versions of the proprietary driver, in
# addition to the nouveau open source driver (which needs to be compiled into
# a custom Raspberry Pi kernel).
#
# tl;dr - None of the drivers worked :P
@jampajeen
jampajeen / delete_unused_docker_images.sh
Created June 3, 2023 16:20
Delete unused docker images
docker rmi $(docker images -f "dangling=true" -q)