Skip to content

Instantly share code, notes, and snippets.

View davidecavestro's full-sized avatar

Davide Cavestro davidecavestro

View GitHub Profile
@davidecavestro
davidecavestro / docker_build_tf_for_celeron.sh
Last active September 17, 2023 06:11
Use TF SIG Build image to compile Tensorflow without AVX (for Celeron on NAS)
#!/bin/bash
# See https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/tf_sig_build_dockerfiles
TF_TAG=v2.13.0
BUILDER_TAG=2.13-python3.8
# clonse sources
git clone --depth 1 --branch $TF_TAG https://github.com/tensorflow/tensorflow.git
# output folder
mkdir packages
@davidecavestro
davidecavestro / Vagrantfile
Last active October 15, 2022 07:17
Reproduce resolveD integration issues for telepresence on Ubuntu 20.04
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.synced_folder "./", "/vagrant"
# config.vm.box = "generic/ubuntu2004"
# config.vm.provider :libvirt do |domain|
# domain.memory = 4096
# domain.nested = true
@davidecavestro
davidecavestro / docker-fix-snx
Last active April 7, 2022 08:35 — forked from Fahl-Design/tunnelPlumber.sh
fix tunsnx interfaces created with linux kernel 5.9 or later Usage: [dry_run=1] [debug=1] [interface=tunsnx] docker-fix-snx
#!/usr/bin/env bash
#
# Usage: [dry_run=1] [debug=1] [interface=tunsnx] docker-fix-snx
#
# Credits to: https://github.com/docker/for-linux/issues/288#issuecomment-825580160
#
# Env Variables:
# interface - Defaults to tunsnx
# dry_run - Set to 1 to have a dry run, just printing out the iptables command
# debug - Set to 1 to see bash substitutions
@davidecavestro
davidecavestro / keybase.md
Created June 13, 2020 08:47
Keybase proof for user davidecavestro

Keybase proof

I hereby claim:

  • I am davidecavestro on github.
  • I am davidecavestro (https://keybase.io/davidecavestro) on keybase.
  • I have a public key ASDS5u6MkJUx99COb0NlInSiPgkEAEQn7Us6KRPpgfAbzAo

To claim this, I am signing this object:

@davidecavestro
davidecavestro / console.conf
Created October 6, 2019 16:04
docker-compose to play with Concord workflow orchestration engine from walmartlabs (https://concord.walmartlabs.com/docs/getting-started/quickstart.html)
server {
listen 8080;
server_name _;
root /opt/concord/console/dist;
access_log /opt/concord/logs/access.log main;
proxy_read_timeout 1800;
client_max_body_size 32M;
@davidecavestro
davidecavestro / vpn_credentials_check.groovy
Created April 5, 2018 13:10
Validate vpn user credentials using `openconnect` command from groovy
/*
* Uses `openconnect` to validate vpn user credentials
* (tested on Debian GNU/Linux 9, where openconnect must be called as root user)
*/
credentials = [ //TODO set credentials here
user1 : 'pass1',
user2 : 'pass2'
]
@davidecavestro
davidecavestro / openpgp.txt
Created October 1, 2017 05:23
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:2a593a990e0a21ae09bfabf4d8490b88844b4cca]
@davidecavestro
davidecavestro / openpgp.txt
Created October 1, 2017 05:23
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:2a593a990e0a21ae09bfabf4d8490b88844b4cca]
@davidecavestro
davidecavestro / openpgp.txt
Created October 1, 2017 05:23
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:2a593a990e0a21ae09bfabf4d8490b88844b4cca]
@davidecavestro
davidecavestro / code_bar_build.gradle
Created April 1, 2014 10:39
Urlclassloader and proxied annotations in gradle
apply plugin: 'java'
dependencies {
compile project (':foo')
}