You should edit your sources.list , by adding the following line: deb http://ftp.ca.debian.org/debian/ jessie main contrib Then upgrade your package and install git: apt-get update && apt-get upgrade && apt-get dist-upgrade apt-get -f install apt-get install git nJoy 😉
send video from local device to a slave computer with ffmpeg
setup service listener on viewer machine : while : ; do ffplay -i tcp://192.168.xx.xx:1234?listen ; done send video to it : ffmpeg -re -i /dev/video1 -vcodec mpeg2video -f alsa -i hw:2,0 -ac 2 -s 1920×1080 -r 25 -strict -2 -f mpegts tcp://192.168.xx.xx:1234 where 192.168.xx.xx is the IP of the viewer where the ffplay is running….
Sending mp4 to a wowza with ffmpeg
ffmpeg -re -i video.mp4 -vcodec libx264 -vb 1500000 -g 60 -vprofile main -f flv rtmp://ingest.cix.domain.com:1935/live/231232 nJoy 😉
Create windows 10 boot disk on almost any linux host
Mount the ISO: sudo mount -t udf -o loop,ro,unhide /path/to/file.iso /mnt Insert the USB drive. Run fdisk and specify the device name of the USB drive; for example: sudo fdisk /dev/sdc Delete any existing partition table and create a new one. Create a new partition of at least 4.5 GB. Mark it bootable and set…
test Graylog GELF UDP input from Bash
for i in {1..100} ; do echo '{"version": "1.1","host":"david.org","short_message":"A short message that helps you identify what is going on","full_message":"Backtrace here\n\nmore stuff","level":1,"_user_id":9001,"_some_info":"foo","_some_env_var":"bar"}' | nc -w 1 -u graylog.mydomain.com 12201 ; done nJoy 😉
Script to verify that a path is synchronized across multiple machines via ssh
This is a script I wrote for work to look through a number of remote servers via ssh (shared keys or include a .pem (id_rsa) file to compare a paths and all it’s subfolders. The result is a report of which files are out of synch and if duplicates found they are listed separately. #!/bin/bash…
Reviving dead Centos 4 repos
Edit /etc/yum.repos.d/CentOS-Base.repo Comment out the “mirrorlist” entries. Uncomment the “baseurl” entries and change them to http://vault.centos.org/4.9/os/$basearch nJoy 😉
start docker with customer system name and hostname
docker run –name david -h david-01 -it david/c6nodepm2yo /bin/bash nJoy 😉 shows : docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f4da454e156e david/c6nodepm2yo “/bin/bash” 12 seconds ago Exited (0) 3 seconds ago david d5ec5101ba52 david/centos6:node “/bin/bash” 27 hours ago Up 26 hours 0.0.0.0:8000->80/tcp jovial_borg and when connected : [root@david-01 /]#
starting a machine in Docker with ports
docker run -p 800:80 -p 2222:22 -p  4443:443  -it 68715929d32a  /bin/bash If ports do not work check : sysctl net.ipv4.ip_forward if  you get: net.ipv4.ip_forward = 0 then issue : sysctl -w net.ipv4.ip_forward=1 net.ipv4.ip_forward = 1if you get the error : docker: Error response from daemon: driver failed programming external connectivity on endpoint amazing_williams (44e256a6039741b20e4124800702d9794d69fb6be9da71ba25059de4dd527121):…
Centos 7 Firewall open a port
Use this command to find your active zone(s): firewall-cmd –get-active-zones It will say either public, dmz, or something else. You should only apply to the zones required. In the case of dmz try: firewall-cmd –zone=dmz –add-port=2888/tcp –permanent Otherwise, substitute dmz for your zone, for example, if your zone is public: firewall-cmd –zone=public –add-port=2888/tcp –permanent Then…