Skip to content

Instantly share code, notes, and snippets.

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

Noe Nieto misaelnieto

🏠
Working from home
View GitHub Profile
@misaelnieto
misaelnieto / leyes.py
Created August 1, 2026 22:38
Scriptpara descargar leyes de mexico
import typer
import httpx
from bs4 import BeautifulSoup
from rich.console import Console
from rich.table import Table
from rich.progress import Progress, SpinnerColumn, TextColumn
from typing import List, Dict
from pydantic import BaseModel, HttpUrl
import asyncio
import os
@misaelnieto
misaelnieto / .screenrc
Created March 16, 2021 20:24
Mi configuracion de GNU screen
# Turn off that annoying start up message
startup_message off
# Turn the even more annoying whole-screen-flash-on-tab-complete "feature"
vbell off
terminfo xterm-color hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
term xterm-color
# Window list at the bottom. hostname, centered tabs and redmarked active windows:
hardstatus alwayslastline
@misaelnieto
misaelnieto / A-Pen-by-Noe-Misael-Nieto-Arroyo.markdown
Created November 23, 2013 00:14
A Pen by Noe Misael Nieto Arroyo.
@misaelnieto
misaelnieto / kill-minecraft.sh
Created June 19, 2013 20:25
Kill minecraft
#!/bin/bash
#Set it to run with cron every 5 minutes or so
# 5 * * * * /path/to/kill-minecraft.sh
#Do this under your own risk.
ps -e --format pid,command | grep minecraft.LauncherFrame | cut -f1 -d ' ' | xargs kill -9
@misaelnieto
misaelnieto / django-trunk.sublime-project
Created February 23, 2013 15:01
Project configuration for django trunk in Subllime Text 2
{
"folders":
[
{
"path": "/home/tzicatl/Aplicaciones/Codigo/Django/django-trunk",
"file_exclude_patterns": [".git*", "*.sublime-*", ".hgignore"],
"folder_exclude_patterns": [".tx", "*.egg-info"]
}
]
}
@misaelnieto
misaelnieto / estela.html
Created February 4, 2013 01:58
Fun with HTML, bootstrap, CSS and some jQuery
<!DOCTYPE html>
<html>
<head>
<title>Click effect</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet"/>
<link href="http://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css" rel="stylesheet">
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
<style type="text/css">
@misaelnieto
misaelnieto / stats.json
Created November 29, 2012 19:34
Stupid json file
{
"total": 2314
}
@misaelnieto
misaelnieto / live-mjpeg-stream.py
Created April 17, 2012 23:18
Streaming MJPEG over HTTP with gstreamr and python - WSGI version, No need for external process
#!/usr/bin/env python
#Works nicely, but wsgiserver times out aftr some time
#Python imports
import sys
import signal
from wsgiref.simple_server import make_server
@misaelnieto
misaelnieto / live-mjpeg-stream.py
Last active July 27, 2026 00:19
Streaming MJPEG over HTTP with gstreamr and python - WSGI version
#!/usr/bin/python
#based on the ideas from http://synack.me/blog/implementing-http-live-streaming
# Updates:
# - 2024-04-24: Apply suggestions from @Pin80
# Run this script and then launch the following pipeline:
# gst-launch videotestsrc pattern=ball ! video/x-raw-rgb, framerate=15/1, width=640, height=480 ! jpegenc ! multipartmux boundary=spionisto ! tcpclientsink port=9999
#updated command line
#gst-launch-1.0 videotestsrc pattern=ball ! videoconvert ! video/x-raw, framerate=15/1, width=640, height=480 ! jpegenc ! multipartmux boundary=spionisto ! #tcpclientsink port=9999
from multiprocessing import Queue
@misaelnieto
misaelnieto / kazam.spec
Created December 27, 2011 06:55
.spec file for kazam screen recorder
%define name kazam
%define version 0.11
%define unmangled_version 0.11
%define release 1
Summary: A screencasting program created with design in mind.
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{unmangled_version}.tar.gz