Skip to content

Instantly share code, notes, and snippets.

View soukron's full-sized avatar

Sergio Garcia Martinez soukron

View GitHub Profile
@soukron
soukron / gist:dcc030fd7851204822d222f030535839
Last active October 8, 2024 16:30
Create blank pattern with latest common / clustergroup
mkdir blank
cd blank/
git init
git remote add origin https://github.com/soukron/blank
git remote add -f upstream-common https://github.com/validatedpatterns/common.git
git read-tree --prefix=common/ -u upstream-common/main
ln -s common/scripts/pattern-util.sh pattern.sh
cat <<EOF>Makefile
.PHONY: default
default: help
@soukron
soukron / ministerio_interior_drones.scpt
Last active August 9, 2024 13:55
Apple Script para rellenar automáticamente el formulario del Ministerio del Interior para vuelo de drones
--
-- Script para rellenar automaticamente los campos estrictamente necesarios de la comuncacion
-- al Ministerio del Interior. Si quieres que rellene más, tienes que modificarlo usando
-- el contenido actual como ejemplo.
--
-- Instrucciones:
-- - ejecutar "Script Editor"
-- - pegar el contenido del script
-- - modifica los valores de operador, pilotos y UAS
-- - abre Safari
@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;
});