echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
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
This method also works with wireless doorbells and other similar systems. | |
We're gonna need a RTL-SDR, which is basically a radio dongle and a cheap radio transmitter. | |
We will also need a microcontroller to interface with the transmitter, any Arduino would do it. | |
You can get one for less than 8$ on Ebay, a 433MHz radio transmitter for less than 1$ and any kind of arduino clone for less than 3$. | |
Let's start... | |
First you need to install the drivers for the RTL-SDR, the Arduino IDE if you don't already have it, | |
the Audacity Audio Analyser/Editor and finally a spectrum analyzer, you can use http://airspy.com/?ddownload=3130 SDR# or https://github.com/pothosware/pothos/wiki/Downloads GQRX in Windows and https://github.com/pothosware/pothos/wiki/Downloads GQRX on linux. |
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
import { useState, useEffect, useCallback } from 'react'; | |
import { AppState, AppStateStatus } from 'react-native'; | |
const useAppState = () => { | |
const [appState, setAppState] = useState(AppState.currentState); | |
const handleAppStateChange = useCallback( | |
(nextAppState: AppStateStatus) => { | |
setAppState(nextAppState); | |
}, | |
[setAppState], |
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
version: "3.3" | |
services: | |
server01: | |
image: containous/whoami | |
container_name: service | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https" | |
- "traefik.http.routers.whoami-http.rule=Host(`service.server.com`)" |
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
version: "3.3" | |
services: | |
traefik: | |
image: traefik:2.1 | |
container_name: reverse-proxy | |
command: | |
- "--api.insecure=true" | |
- "--providers.docker=true" | |
- "--providers.docker.exposedbydefault=false" |
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
version: "3.3" | |
services: | |
traefik: | |
image: traefik:2.1 | |
container_name: reverse-proxy | |
command: | |
- "--api.insecure=true" | |
- "--providers.docker=true" |
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
# login | |
ssh root@server | |
# install updates | |
sudo apt-get update && sudo apt-get upgrade -y | |
# install some utils | |
sudo apt-get install -y git zsh wget curl htop | |
# firewall |
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
ENV PHANTOMJS_VERSION 2.1.1 | |
RUN apk add --update --no-cache curl && \ | |
curl -Ls https://github.com/dustinblackman/phantomized/releases/download/${PHANTOMJS_VERSION}/dockerized-phantomjs.tar.gz | tar xz -C / && \ | |
curl -k -Ls https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 | tar -jxvf - -C . && \ | |
cp phantomjs-${PHANTOMJS_VERSION}-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs && \ | |
rm -fR phantomjs-${PHANTOMJS_VERSION}-linux-x86_64 && \ | |
apk del curl |
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
CREATE TABLE IF NOT EXISTS `samples` ( | |
`id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, | |
`value` float(8,2) NOT NULL, | |
`createdAt` datetime NOT NULL, | |
PRIMARY KEY (`id`), | |
KEY `samples_created_at` (`createdAt`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | |
INSERT INTO `samples` (`id`, `value`, `createdAt`) | |
VALUES |
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
CREATE USER 'user'@'host' IDENTIFIED BY 'pass'; | |
GRANT ALL PRIVILEGES ON `db`.* TO 'user'@'host' IDENTIFIED BY 'pass'; | |
FLUSH PRIVILEGES; |