This file contains hidden or 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
pacakge msgtest | |
import ( | |
"io" | |
"mime" | |
"mime/multipart" | |
"net/mail" | |
"net/textproto" | |
"os" | |
"path/filepath" |
This file contains hidden or 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
# buzz: | |
onboard = Pin(22, Pin.OUT) | |
for i in range(0, 40000): | |
onboard.on() | |
time.sleep(0.025) | |
onboard.off() | |
time.sleep(0.025) | |
# /buzz | |
This file contains hidden or 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 http.server import BaseHTTPRequestHandler, HTTPServer | |
import html2text | |
class Handler(BaseHTTPRequestHandler): | |
def do_POST(self): | |
try: | |
data = self.rfile.read(int(self.headers['Content-Length'])).decode("utf-8") | |
content = h.handle(data.strip()).strip() | |
print(content) |
This file contains hidden or 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
add_executable(blink | |
blink.c | |
) | |
# pull in common dependencies | |
target_link_libraries(blink pico_stdlib pico_cyw43_arch_none ) | |
# create map/bin/hex file etc. | |
pico_add_extra_outputs(blink) |
This file contains hidden or 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
alias: aviso de url actualizado | |
description: >- | |
envía una notificación al cel cuando parece que uno de los URL monitoreados | |
fue actualizado (pág. cambiada). | |
como cuando una pág. de un producto lo cambia a disponible. | |
trigger: | |
- platform: mqtt | |
topic: url_updated | |
condition: [] |
This file contains hidden or 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
#!/bin/bash | |
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
This file contains hidden or 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
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include "Adafruit_LEDBackpack.h" | |
Adafruit_8x8matrix matrix = Adafruit_8x8matrix(); | |
void setup() { | |
Serial.begin(9600); | |
Serial.println("8x8 LED Matrix random pixels"); | |
randomSeed(analogRead(0)); |
This file contains hidden or 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
--- | |
- hosts: all | |
become: true | |
tasks: | |
- name: quitar docker preinstalado | |
yum: | |
name: ['docker-client','docker-client-latest','docker-common','docker-latest','docker-latest-logrotate', 'docker-logrotate', 'docker-engine'] | |
state: removed |
This file contains hidden or 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
2 export BORG_PASSCOMMAND="cat $HOME/.borg-passphrase" | |
3 borg create -v --stats /run/media/blah/internal_backup/repo/::"`dat e --rfc-3339=seconds`" ~/.config/ ~/bin ~/dev ~/.ssh |
NewerOlder