Skip to content

Instantly share code, notes, and snippets.

View nikolaiianchuk's full-sized avatar
🤪

Nikolai Ianchuk nikolaiianchuk

🤪
  • Copenhagen, Denmark
  • 20:26 (UTC +02:00)
View GitHub Profile
@nikolaiianchuk
nikolaiianchuk / ruby_2_2_10_m1.patch
Created December 6, 2021 19:29
ruby_2_2_10_m1.patch
--- a/configure
+++ b/configure
@@ -25181,7 +25181,7 @@ which seems to be undefined. Please make sure it is defined" >&2;}
rm -f "$ac_tmp/stdin"
case $ac_file in
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
- *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
+ *) mv "$ac_tmp/out" "$ac_file";;
esac \
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
@nikolaiianchuk
nikolaiianchuk / main.go
Last active January 10, 2023 07:43
Fixed memory leaking
package main
import (
"fmt"
"io/ioutil"
"net/http"
"runtime"
"time"
"gocv.io/x/gocv"
@nikolaiianchuk
nikolaiianchuk / main.go
Last active November 12, 2018 08:14
GoCV memory leaking on IMDecode function?
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"time"
"gocv.io/x/gocv"