Skip to content

Instantly share code, notes, and snippets.

View matiasinsaurralde's full-sized avatar

Matias Insaurralde matiasinsaurralde

  • Paraguay
View GitHub Profile
#!/bin/sh
export distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
curl -s -L https://nvidia.github.io/libnvidia-container/experimental/$distribution/libnvidia-container.list | sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
apt-get update
apt-get install nvidia-container-toolkit -y
#!/bin/sh
export distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
curl -s -L https://nvidia.github.io/libnvidia-container/experimental/$distribution/libnvidia-container.list | sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
apt-get update
apt-get install nvidia-container-toolkit -y
[
{
"Id": "f7dd47fc4c0d71e6f181b2f56dad2369ac602aa30fe654b9f687db86abf18cd8",
"Created": "2023-06-19T21:46:50.12506871Z",
"Path": "sh",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
package main
import (
"bytes"
"fmt"
"io"
"io/fs"
"path/filepath"
"strings"
"sync"
package main
import "fmt"
func main() {
input := []int{}
for n := 0; n < 100; n++ {
input = append(input, n)
}
evilFizzBuzz(input)
package main
import (
"fmt"
"runtime"
"github.com/cwarden/souffle-go-example/SwigInterface"
)
var (
% go test -benchmem -run=^$ -bench Bench github.com/matiasinsaurralde/chronomics
goos: darwin
goarch: amd64
pkg: github.com/matiasinsaurralde/chronomics
cpu: VirtualApple @ 2.50GHz
BenchmarkLineByLine-8 4094 262549 ns/op 330682 B/op 1713 allocs/op
BenchmarkFullRead-8 4506 261635 ns/op 330682 B/op 1713 allocs/op
BenchmarkIndexed-8 27243445 43.77 ns/op 16 B/op 1 allocs/op
PASS
ok github.com/matiasinsaurralde/chronomics 3.945s
% git diff gateway/rpc_storage_handler.go
diff --git a/gateway/rpc_storage_handler.go b/gateway/rpc_storage_handler.go
index a4006875..d1cb0c85 100644
--- a/gateway/rpc_storage_handler.go
+++ b/gateway/rpc_storage_handler.go
@@ -786,7 +786,7 @@ func (r *RPCStorageHandler) CheckForKeyspaceChanges(orgId string) {
if len(keys.([]string)) > 0 {
log.Info("Keyspace changes detected, updating local cache")
- go r.ProcessKeySpaceChanges(keys.([]string))
% go test .
time="Oct 09 19:19:28" level=info msg="Rich plugins are disabled" prefix=coprocess
--- FAIL: TestVirtualEndpointBatch (0.70s)
--- FAIL: TestVirtualEndpointBatch/Skip_verification (0.01s)
http.go:270: [0] Expected status code `202` got `500. `.
--- FAIL: TestPublicKeyPinning (2.64s)
--- FAIL: TestPublicKeyPinning/Pub_key_match (0.52s)
http.go:270: [0] Expected status code `200` got `500. {
"error": "There was a problem proxying the request"
}`.
@matiasinsaurralde
matiasinsaurralde / rails_omakase.rb
Created July 21, 2020 08:28 — forked from postmodern/rails_omakase.rb
Proof-of-Concept exploit for the new Rails Remote Code Execution vulnerability (CVE-2013-0333)
#!/usr/bin/env ruby
#
# Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0333)
#
# ## Advisory
#
# https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/1h2DR63ViGo
#
# ## Caveats
#