Skip to content

Instantly share code, notes, and snippets.

View soukron's full-sized avatar

Sergio Garcia Martinez soukron

View GitHub Profile
@soukron
soukron / add_action.py
Created August 24, 2022 19:20
Tool for converting Pickle to JSON using this simple Python Command Line program
import requests
from time import time
from uuid import uuid4
import os
from time import time,sleep
embedding_service_host=os.getenv('EMBEDDING_SERVICE_HOST', '127.0.0.1')
embedding_service_port=os.getenv('EMBEDDING_SERVICE_PORT', '999')
nexus_service_host=os.getenv('NEXUS_SERVICE_HOST', '127.0.0.1')
@soukron
soukron / srt2csv.sh
Last active April 29, 2021 10:01
Bash script to convert the DJI Googles SRT file to a CSV which can be used in spreadsheets.
#!/bin/bash
outputFile=${1/.srt/.csv}
# initialize statistics
totalLines=$( cat ${1} |wc -l | sed 's/ //g;' )
# loop over the whole file
echo "timestamp;latency;bitrate;voltage;avg. voltage" > "${outputFile}"
currentLine=0
@soukron
soukron / Dockerfile
Last active April 11, 2020 02:50
Simple application for ZeroTier SDK (libzt)
# Use ZeroTier SDK image to build the binary
FROM quay.io/soukron/zerotier-libzt-sdk:v1.3.1 as sdk
COPY . /tmp/src
RUN cd /tmp/src && \
make build-simple
# Copy the binary to the ZeroTier Runtime image
FROM quay.io/soukron/zerotier-libzt-runtime:v1.3.1
COPY --from=sdk /tmp/src/simple /usr/local/bin/simple

Keybase proof

I hereby claim:

  • I am soukron on github.
  • I am sgarcia (https://keybase.io/sgarcia) on keybase.
  • I have a public key whose fingerprint is 37B9 CB16 C3DA 46E0 9050 D186 C65B 7520 C0A6 5883

To claim this, I am signing this object:

@soukron
soukron / venues.fs.search.js
Last active April 29, 2021 07:34
Simple plugin for Baasbox to act as an API gateway for Foursquare venues API
/* script: venues.fs.search */
/* This script endpoint: /plugin/venues.fs.search */
on('install',function(installEvent){
var success = Box.DB.createCollection('venues-cache-queries');
var success = Box.DB.createCollection('venues-cache-answers');
return true;
});