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
# -*- coding: utf-8 -*- | |
# a last.fm now playing script originally written by Brandon Sutton | |
# some modifications by lifning | |
__module_name__ = "last.fm" | |
__module_version__ = "1.0" | |
__module_description__ = "/np for last.fm" | |
try: | |
import hexchat as xchat | |
except ImportError: |
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 python2 | |
import sys, getopt, ctypes, struct | |
import pygame, numpy | |
from snes import core as snes_core | |
# libsnes library to use by default. |
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
#!/bin/bash | |
DEV=$(zenity --file-selection \ | |
--filename=/dev/video0 \ | |
--file-filter='V4L2 loopback devices | video*') | |
echo "Select a window to capture..." | |
XID=$(xwininfo -int | grep 'Window id' | awk '{print $4}') | |
# camera width/height |
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 python3 | |
from pygame import display, joystick, event | |
from pygame import QUIT, JOYAXISMOTION, JOYBALLMOTION, JOYHATMOTION, JOYBUTTONUP, JOYBUTTONDOWN | |
h = { | |
(0,0): 'c', | |
(1,0): 'E', (1,1): 'NE', (0,1): 'N', (-1,1): 'NW', | |
(-1,0): 'W', (-1,-1): 'SW', (0,-1): 'S', (1,-1): 'SE' | |
} |
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
(define (domain n64-zelda-majora) | |
(:requirements :typing :fluents :durative-actions) | |
(:types | |
item cycevt location object | |
) | |
(:constants | |
bow ocarina powder-keg goron-mask eponas-song song-of-time - item |
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
#!/bin/bash | |
mkfifo ${1}.{yuv,wav} | |
glc-play ${1} -y 1 -o ${1}.yuv & | |
glc-play ${1} -a 1 -o ${1}.wav & | |
ffmpeg -i ${1}.yuv -i ${1}.wav ${1}.mkv | |
rm -f ${1}.{yuv,wav} |
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
#!/bin/bash | |
mkfifo fifo.glc | |
glc-capture -o fifo.glc -s "${@}" & | |
glc-play fifo.glc -y 1 -t -o - | yuv4mpeg_to_v4l2 /dev/video1 | |
rm -f fifo.glc |
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
#!/bin/bash | |
mkfifo fifo.{glc,yuv,wav} fifosound.glc | |
glc-capture -o - -s $* | tee -a fifosound.glc > fifo.glc & | |
ffmpeg -i fifo.yuv -i fifo.wav -o recording.mkv & | |
glc-play fifosound.glc -a 1 -t -o fifo.wav & | |
glc-play fifo.glc -y 1 -t -o - | tee -a fifo.yuv | yuv4mpeg_to_v4l2 /dev/video1 |
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
#!/bin/bash | |
dir=$(mktemp -d) | |
cmd="cat \"${1}\" | tee" | |
shift | |
sums="md5 sha1" | |
if [ ! -z "${*}" ] ; then | |
sums="${@}" |
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
#!/bin/bash | |
JTV_STREAM_KEY=$(cat ~/Dropbox/jtv-key) | |
JTV_STREAM_URL=rtmp://live.justin.tv/app/${JTV_STREAM_KEY} | |
exec glc-capture --disable-audio -f 30 -z none -o /dev/stdout -s "${@}" \ | |
| glc-play /dev/stdin -y 1 -o /dev/stdout \ | |
| ffmpeg \ | |
-f yuv4mpegpipe -i /dev/stdin \ | |
-f pulse -itsoffset 0.2 -sample_rate 22050 -i default \ | |
-f flv -vcodec libx264 -vf "scale=-1:360" -r 30 \ |
OlderNewer