Skip to content

Instantly share code, notes, and snippets.

@orinocoz
orinocoz / counter_serial.pl
Created October 26, 2017 10:27 — forked from aallan/counter_serial.pl
Script uses an ARP scan to counter the number of devices on the network and saves this information to an SQLite3 database. Outputs the current number of devices to /dev/ttyUSB0.
#!/usr/bin/env perl
#+
# Name:
# counter.pl
# Language:
# Perl
@orinocoz
orinocoz / counter.pl
Created October 26, 2017 10:27 — forked from aallan/counter.pl
Script uses an ARP scan to counter the number of devices on the network and saves this information to an SQLite3 database.
#!/usr/bin/env perl
#+
# Name:
# counter.pl
# Language:
# Perl
@orinocoz
orinocoz / sms.go
Created July 1, 2018 09:45 — forked from mndrix/sms.go
SMS over IRC
// 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
@orinocoz
orinocoz / openalpr_camera.py
Created July 9, 2018 22:00 — forked from jkjung-avt/openalpr_camera.py
Real-time license plate recognition with 'openalpr' using a video file as input
# 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
@orinocoz
orinocoz / getdomains.sh
Created July 20, 2018 06:42 — forked from woltage/getdomains.sh
Skripti jolla saa Y-tunnukella kaikki firman omistamat .fi -verkkotunnukset
## 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
@orinocoz
orinocoz / livestreamingyoutube
Created October 15, 2018 08:17 — forked from laurenarcher/livestreamingyoutube
Livestreaming to Youtube Live, Ubuntu, Linux FFMPEG
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
@orinocoz
orinocoz / huawei-fw-list.txt
Created March 27, 2020 15:34 — forked from ValdikSS/huawei-fw-list.txt
Huawei firmware files found on update server
==========================================================================
DO NOT WRITE ANY QUESTIONS IN COMMENTS
==========================================================================
This is not appropriate place for discussions. Keep this list FW-only.
I do NOT have any firmware files apart from published here or on 4pda. Please do not contact me for firmware files requests.
This is a list of files found on Huawei update server by brute-forcing URL parameters.
Some firmware files have changelogs. Just change file name to "changelog.xml" in the end of the URL.
@orinocoz
orinocoz / deauthall.md
Created August 19, 2020 16:42 — forked from spacehuhn/deauthall.md
Deauth-All-Button

Replace cli with serialInterface if you're using an older version of esp8266_deauther!

In the end of setup():

  pinMode(D5, INPUT_PULLUP); // enable button pin
  pinMode(D4, OUTPUT);       // enable LED pin

In the beginning of loop():

@orinocoz
orinocoz / ESP_RELAY_MQTT.ino
Created September 2, 2020 19:58 — forked from jamesabruce/ESP_RELAY_MQTT.ino
Simple MQTT controlled relay running on NodeMCU dev board on pin d2/gpio4
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <PubSubClient.h>
#define RELAY 4 // pin labelled d2
// Update these with values suitable for your network.
const char* ssid = "YOURWIFI";
@orinocoz
orinocoz / mysubaru.py
Created December 14, 2020 23:26 — forked from nbonfire/mysubaru.py
MySubaru python samples
import requests, json
from subarucreds import username,password,pin # just a "subarucreds.py" that has some variables i didn't want to share
import datetime
#login
s=requests.Session()
loginr=s.post('https://www.mysubaru.com/login', data = {'username':username,'password':password})
#should return a response 200
#Where's my subaru?