Skip to content

Instantly share code, notes, and snippets.

View apoz's full-sized avatar

Andrés Pozo Muñoz apoz

View GitHub Profile
@apoz
apoz / gist:b5e7401dd6b7ab624c34b117d197474c
Created May 5, 2024 17:36
Top asistencias individuales Palencia Baloncesto
MAIO, SEBASTIEN ROBERT N Asistencias: 13 LEB 2 2005-2006 11/02/2006 regular J20 HORMIGONES SALDAÑA 90 - 81 SEDESA LLIRIA
LOPEZ LOPEZ, PEDRO FRANCISCO Asistencias: 12 EBA 2000-2001 11/02/2001 regular J19 C.B. MANA FUENLABRADA 102 - 86 CIUDAD DE PALENCIA
Van der Vuurst Asistencias: 12 ACB 2023-2024 06/04/2024 regular J28 Río Breogán 73 - 65 Zunder Palencia
GALLEGO CASTREJON, ALVARO Asistencias: 11 EBA 2001-2002 25/05/2002 regular J34 CIUDAD DE PALENCIA 84 - 90 REYBOL FUENLABRADA
ROMAN GARCIA, SAMUEL Asistencias: 11 EBA 2002-2003 29/03/2003 regular J26 CIUDAD DE PALENCIA 105 - 57 A.D. MORALEJA C.B.
Van der Vuurst Asistencias: 11 ACB 2023-2024 28/01/2024 regular J20 Barça 102 - 94 Zunder Palencia
GARCIA PEÑA, DAVID Asistencias: 10 EBA
@apoz
apoz / gist:4cc0addf42ca351ff36bf972ceb69326
Created April 30, 2024 09:17
Diferencias al final del tercer cuarto de Zunder Palencia 2023-2024
J Equipo local Pts - Pts Equipo visitante Diferencia al final del 3er cuarto
===========================================================================================================
1 Monbus Obradoiro 74 - 49 Zunder Palencia -25
2 Zunder Palencia 48 - 50 Barça -2
3 MoraBanc Andorra 64 - 63 Zunder Palencia -1
4 Zunder Palencia 48 - 60 Joventut Badalona -12
5 BAXI Manresa 70 - 71 Zunder Palencia +1
6 Zunder Palencia 60 - 45 Río Breogán +15
7 Real Madrid 67 - 43 Zunder Palencia -24
8 Zunder Palencia 61 - 62 Bàsquet Girona -1
{
"Stats": [
{
"measurementType": "cpu",
"measurement": "user_cpu",
"hostname": "telegrafexample1",
"duration": "5m",
"values": [
{
"t": "1611849150",
@apoz
apoz / TVs 55' 02-09-18
Last active September 4, 2018 20:05
Un ojo por las tiendas te tecnología para buscar una tv de 55'
Electroprecio:
* LED SONY 55" KD-55XF8096 -> 909€
* LED SAMSUNG 55" UE55NU7405 -> 744€
* LED PHILIPS 55" 55PUS7303 (Androidtv)-> 639€
pccomponentes:
* Philips 55PUS6501 55" LED 4K UltraHD -> 799€
* LG 55SK7900PLA 55" LED UltraHD 4K -> 729€
* LG 55UK6750PLD 55" LED UltraHD 4K -> 719€
@apoz
apoz / gist:637a75d8c56e40111a8e9899bb1f9218
Created August 24, 2018 06:58
"IPV6 header not found" issue
I am facing some -I think- strange problem with IPV6 and QinQ in a Linux host, and may be someone has faced similar problem (or could provide a hint).
I have some VMs running in a host (KVM), and every time any VM sends an ICMP6 Router Advertisement, we get the following log in syslog:
Aug 10 11:18:36 Hostname kernel: [1722430.045240] IPv6 header not found
For the traffic, I use QinQ (802.1Q in both tags), the inner tag is set with OVS in the tap, and the outer is set with a veth of vlan type, in the following way:
@apoz
apoz / gist:af73ccfcefc5fd21ed9b1c4a34043658
Last active October 11, 2016 21:20
qemu-img convert issue?
#Downloading a Ubuntu Xenial cloud image from official repo
wget https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
#That VM Disk only has 1 partition of 2.2G (I want to extend it to 4G for example)
sudo virt-filesystems --format=qcow2 --long --parts --blkdevs -h -a xenial-server-cloudimg-amd64-disk1.img
Name Type MBR Size Parent
/dev/sda1 partition 83 2.2G /dev/sda
/dev/sda device - 2.2G -
#I create a new raw disk to do the virt-resize
@apoz
apoz / Untitled 3.py
Created November 17, 2013 00:28
Untitled 3
import itertools
mylist = list(itertools.permutations('123456789'))
for (a,b,c,d,e,f,g,h,i) in mylist:
myresul1=float(a+b)/float(c+d+e)
myresul2=float(f+g)/float(h+i)
if myresul1+myresul2==float(7):
print 'Found it ('+a+b+'/'+c+d+e+')+('+f+g+'/'+h+i+')'
break
import itertools
mylist = list(itertools.permutations('123456789'))
for (a,b,c,d,e,f,g,h,i) in mylist:
myresul1=(float(a)*10+float(b))/(float(c)*100+float(d)*10+float(e))
myresul2=(float(f)*10+float(g))/(float(h)*10+float(i))
if myresul1+myresul2==float(7):
print 'Found it'+a+b+c+d+e+f+g+h+i
@apoz
apoz / Untitled 1.py
Created February 25, 2013 22:21
Untitled 1
import unittest
import random
#code length for generation
code_length=4
colours=['R', 'A', 'M', 'V', 'N', 'I']
def generate_security_code(length, dict):
sec_code = []
for i in range(0,length):
<?xml version='1.0' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="NESSMS">
<SOAP-ENV:Body>
<opns:notifySmsEvent xmlns:opns="NESSMS.SmsNotEventManagerPort">
<parameters>
<smsEvent>
<correlator>134642665366929865123-23411</correlator>
<smsId>00000001-000102CC-00001000-167107D9-1346919870418313-1-23411</smsId>
<eventNotified>
<smsEvent>IncomingSms</smsEvent>