x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env pytho2 | |
# -*- coding: utf-8 -2- | |
# vim:fenc=utf-8 | |
# | |
# Copyright © 2022 adrian <adrian@arco> | |
# | |
# Distributed under terms of the MIT license. | |
""" | |
Representamos en 2d y 3d un número de puntos que entre ellos siempre están |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 | |
""" | |
Leer la topologia de un fichero JSON y cargarlo en skydive | |
""" | |
import json | |
from tqdm import tqdm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ble_monitor.ble_parser import BleParser | |
import struct | |
class TestXiaomi: | |
"""Tests for the Xiaomi parser""" | |
def test_Xiaomi_RTCGQ02LM(self): | |
"""Simulando el dispositivo y añadiendo algún sensor adicional (switch)""" | |
data_string = "02" # ext_packet=True si 0x0D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Get services, characteristics and descriptors for a BLE device | |
""" | |
import sys | |
import asyncio | |
import platform | |
from bleak import BleakClient | |
ADDRESS = ( "20:C3:8F:8A:5B:EA") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
pyserial = "*" | |
requests = "*" | |
[dev-packages] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Execute a command under a different network namespace | |
*/ | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: build playbook | |
build: | |
cd library && go build -o helloworld helloworld_src.go && cd .. | |
playbook: | |
DEFAULT_MODULE_PATH=~/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:./modules/ ansible-playbook play.yaml | |
# vim:ft=make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script id="MathJax-script" async | |
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"> | |
</script> | |
</head> | |
<body> | |
\begin{gather*} J(\Theta) = - \frac{1}{m} \sum_{i=1}^m \sum_{k=1}^K \left[y^{(i)}_k \log ((h_\Theta (x^{(i)}))_k) + (1 - y^{(i)}_k)\log (1 - (h_\Theta(x^{(i)}))_k)\right] + \frac{\lambda}{2m}\sum_{l=1}^{L-1} \sum_{i=1}^{s_l} \sum_{j=1}^{s_{l+1}} ( \Theta_{j,i}^{(l)})^2\end{gather*} |
- http://478h5m1yrfsa3bbe262u7muv-wpengine.netdna-ssl.com/wp-content/uploads/2017/01/Sysdig_cheat_sheet_2017_download_version-2.pdf
- http://sysdig.org
Capture & write every system event to standard output