Using python:
python -m SimpleHTTPServer 8000
Using nc (while testing a bad content length header):
while true; do { echo -e 'HTTP/1.1 200 OK\r\nContent-Length: 666\r\n'; cat index.html; } | nc -l 8000; done
Create screenshots selecting only I frames that differ:
ffmpeg -i <input_filename>.ts -f image2 -vf "select='eq(pict_type,I)'" -vsync 2 out%02d.png
Create single screenshot 1 second in:
ffmpeg -ss 1 -i .ts -f image2 -vf "select='eq(pict_type,I)'" -vframes 1 -vsync 2 .png
#!/bin/bash | |
# counter for current run number | |
if [ ! -e "${HOME}/.counter" ] | |
then | |
echo "creating counter file" | |
echo "1" > ~/.counter | |
fi | |
while read line | |
do |
""" | |
Class to represent a iteration number as a tuple | |
ie, it-39.1-130956 is represented as (39,1,130956) | |
""" | |
import re | |
import collections | |
def cast_parts(parts): | |
for part in parts: |
---Summary | |
---Environment Details | |
Environment: | |
Version: | |
Hostname: | |
---Reproduction steps |
section: screens | |
172.18.35.212: | |
172.18.0.106: | |
end | |
section: aliases | |
172.18.35.212: | |
dhcp-212 | |
172.18.0.106: | |
mac-client |
# From Sam | |
ord = lambda n: "%d%s" %(n ,"tsnrhtdd" [(n/10%10!=1)*(n%10<4)*n%10::4]) |
List all devices:
$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Macintosh mouse button emulation id=10 [slave pointer (2)]
⎜ ↳ Microsoft Microsoft 3-Button Mouse with IntelliEye(TM) id=8 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
# Kill previous synergy session | |
killall -q ssh | |
killall -q synergyc | |
# Create ssh connection to tunnel synergy over | |
ssh -f -N -L localhost:24800:server-hostname:24800 server-hostname | |
./synergyc -f localhost |