This file contains hidden or 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
| Terminal Commands: | |
| One webcam: | |
| ffmpeg -f alsa -ac 2 -i hw:1,0 -f v4l2 -s 1280x720 -r 10 -i /dev/video1 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -r 25 -g 20 -b:v 2500k -codec:a libmp3lame -ar 44100 -threads 6 -b:a 11025 -bufsize 512k -f flv rtmp://a.rtmp.youtube.com/live2/YOURSTREAMNAMEHERE | |
| Two webcam overlay: | |
| ffmpeg -f alsa -ac 2 -i hw:1,0 -f v4l2 -s 1280x720 -r 10 -i /dev/video1 -f v4l2 -s 320x240 -r 10 -i /dev/video0 -filter_complex "[1:v]setpts=PTS-STARTPTS[bg]; [2:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=shortest=1 [out]" -map "[out]" -map 0:a -vcodec libx264 -pix_fmt yuv420p -preset veryfast -r 25 -g 20 -b:v 2500k -codec:a libmp3lame -ar 44100 -threads 6 -b:a 11025 -bufsize 512k -f flv rtmp://a.rtmp.youtube.com/live2/YOURSTREAMNAMEHERE |
This file contains hidden or 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
| ## Y-Tunnukseen perustuva domainejen haku (.fi) | |
| ## Esimerkki: getdomains 1093944-1 # MTV Oy | |
| # Laita tämä .bashrc tai .zshrc | |
| # Käyttöesimerkkejä: | |
| # Looppaa Y-tunnuksetn kaikki domainit läpi ja tee kysely | |
| # for i in $(getdomains 1093944-1); do echo $i && host -t cname www.$i; done |
This file contains hidden or 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
| # test_camera.py | |
| # | |
| # Open an RTSP stream and feed image frames to 'openalpr' | |
| # for real-time license plate recognition. | |
| import numpy as np | |
| import cv2 | |
| from openalpr import Alpr |
This file contains hidden or 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
| // A proxy for sending/receiving SMS via IRC | |
| // | |
| // This code is part of our family IRC server whose code is available at | |
| // https://gist.github.com/mndrix/7947009178e4a18c247b4bd25821661f | |
| // | |
| // This file won't compile by itself because it's only one file from | |
| // my larger family server (movie hosting, Asterisk dialplan, Git | |
| // hosting, personal assistant, etc). | |
| // | |
| // Copyright 2018 Michael Hendricks |
This file contains hidden or 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 perl | |
| #+ | |
| # Name: | |
| # counter.pl | |
| # Language: | |
| # Perl |
This file contains hidden or 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 perl | |
| #+ | |
| # Name: | |
| # counter.pl | |
| # Language: | |
| # Perl |
This file contains hidden or 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 bash | |
| ########################################################################### | |
| # Originally written by: Henrik Bengtsson, 2014 | |
| # https://github.com/HenrikBengtsson/speedtest-cli-extras | |
| # Modified to use IFTTT by: Alasdair Allan, 2015 | |
| # License: GPL (>= 2.1) [http://www.gnu.org/licenses/gpl.html] | |
| ########################################################################### | |
| # Character for separating values | |
| # (commas are not safe, because some servers return speeds with commas) |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Webcam</title> | |
| <style type="text/css"> | |
| body { | |
| text-align:center; | |
| background-color:#000000; | |
| color: #fff; | |
| } |
This file contains hidden or 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
| // Open form and submit enquire for `rego` | |
| function getInfo(rego) { | |
| horseman | |
| .userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0') | |
| .open(url) | |
| .type('#registration-number-ctrl input[type=text]', rego) | |
| .click('.btn-holder input') | |
| .waitForSelector('.ctrl-holder.ctrl-readonly') | |
| .html() | |
| .then(function(body) { |
This file contains hidden or 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
| ########## | |
| # Win10 Initial Setup Script | |
| # Author: Disassembler <disassembler@dasm.cz> | |
| # Version: 1.7, 2016-08-15 | |
| # dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
| # THIS IS A PERSONALIZED VERSION | |
| # This script leaves more MS defaults on, including MS security features. | |
| # Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1 |