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 / .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 April 25, 2024 03:22
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
@misaelnieto
misaelnieto / gist:954516
Created May 4, 2011 00:19
traceback of gunicorn
../gunicorn_virtualenv/bin/gunicorn simulador:server
2011-05-03 19:08:56 [4763] [INFO] Starting gunicorn 0.12.1
2011-05-03 19:08:56 [4763] [INFO] Listening at: http://127.0.0.1:8000 (4763)
2011-05-03 19:08:56 [4763] [INFO] Using worker: sync
2011-05-03 19:08:56 [4764] [INFO] Booting worker with pid: 4764
2011-05-03 19:09:27 [4764] [ERROR] Error handling request
Traceback (most recent call last):
File "/home/tzicatl/Documentos/Codigo/tesis_gstreamer/gunicorn_virtualenv/lib/python2.7/site-packages/gunicorn-0.12.1-py2.7.egg/gunicorn/workers/sync.py", line 98, in handle_request
resp.write(item)
File "/home/tzicatl/Documentos/Codigo/tesis_gstreamer/gunicorn_virtualenv/lib/python2.7/site-packages/gunicorn-0.12.1-py2.7.egg/gunicorn/http/wsgi.py", line 213, in write