Skip to content

Instantly share code, notes, and snippets.

View samuelloza's full-sized avatar
🏠
Working from home

Samuel Loza samuelloza

🏠
Working from home
View GitHub Profile
@samuelloza
samuelloza / data.json
Created February 13, 2024 03:32
data
data = {
"ID": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
"Nombre": ["Ana", "Luis", "Marta", "Carlos", "Luisa", "Ana", "Pablo", "Carmen", "David", "Elena",
"Sergio", "Raquel", "Berta", "Jorge", "Irene", "Hugo", "Olivia", "Miguel", "Laura", "Fernando"],
"Edad": [28, 34, None, 45, 29, 28, 31, 27, 33, 26, 30, 42, None, 36, 37, 38, 22, 41, 40, 39],
"Email": ["[email protected]", "[email protected]", None, "[email protected]", "[email protected]",
"[email protected]", None, "[email protected]", "[email protected]", "[email protected]",
"[email protected]", "[email protected]", "[email protected]", None, "[email protected]",
"[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]"],
"Ciudad": ["Madrid", "Barcelona", "Valencia", "Madrid", "Sevilla", "Madrid", "Bilbao", "Zaragoza",
{
"Argentina": {
"2023-10-07": {
"confirmed": 510
},
"2023-10-08": {
"confirmed": 639
}
},
"Bolivia": {
@samuelloza
samuelloza / README-setup-tunnel-as-systemd-service.md
Created March 6, 2023 15:25 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@samuelloza
samuelloza / gist:1fe6274eb55cde998a9e613f8a06fdbe
Created February 22, 2023 12:13 — forked from joulgs/terminal.txt
How install libssl1.1 on ubuntu 22.04
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
@samuelloza
samuelloza / cli.js
Created October 11, 2022 02:24 — forked from AnishDe12020/cli.js
Medium - Getting Started with React Ink
#!/usr/bin/env node
'use strict';
const React = require('react');
const importJsx = require('import-jsx');
const {render} = require('ink');
const meow = require('meow');
const ui = importJsx('./ui');
const cli = meow(`
Usage
$ sandbox
version: "3.7"
services:
traefik:
image: traefik:v2.2
command:
- --api.insecure=true
- --providers.docker
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --entrypoints.web.http.redirections.entrypoint.scheme=https
@samuelloza
samuelloza / launch.json
Created August 11, 2021 18:42
Run Multiples Project c# vscode
{
"version": "0.2.0",
"configurations": [
{
"name": "Api",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/src/Api/bin/Debug/net5.0/Api.dll",
"args": [],
@samuelloza
samuelloza / bridged-networking-on-wireless-interface-with-kvm.md
Created June 22, 2021 02:58 — forked from Jiab77/bridged-networking-on-wireless-interface-with-kvm.md
Bridged Networking on Wireless Interface with KVM and more...

Bridged Networking on Wireless Interface with KVM and more...

So I needed to upgrade my home "web hosting" server from a Raspberry Pi 3b to something more flexible where I could even simulate a Raspberry Pi 3b given power. The new server hardware is now an Intel NUC i7 16GB / 250Gb SSD NVME. 😁

I order to accomplish this task I had to find a way to bridge the wireless interface which is the faster one on my actual home network setup.

I've also tried to mix the functionnality from another Rapsberry Pi (3b+ this time) who's acting as WLAN to LAN bridge. More details on this setup. But this was finally a bad idea and I was not able to make it work along the virtual network bridge created by libvirt or manually created... (I will explain why later)

The main difficulty was to use the DMZ IP address given by the router and route the traffic to the guest VM's.

Server / Desktop

@samuelloza
samuelloza / gist:657069610ddb2302784c68e05a399713
Created November 17, 2020 19:17
gradle cucumber-picocontaine
plugins {
id 'java'
id 'application'
}
repositories {
mavenCentral()
}
dependencies {
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
mainClassName = 'Main'
repositories {
mavenCentral()
}