Skip to content

Instantly share code, notes, and snippets.

View akbaryahya's full-sized avatar

Akbar Yahya akbaryahya

View GitHub Profile
@luk6xff
luk6xff / ARMonQEMUforDebianUbuntu.md
Last active April 23, 2024 17:11 — forked from bruce30262/ARMDebianUbuntu.md
Emulating ARM with QEMU on Debian/Ubuntu

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

If there's no qemu-arm-static in the package list, install qemu-user-static instead

@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active May 4, 2024 15:47
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@chrisstubbs93
chrisstubbs93 / ffmpeg.sh
Last active April 28, 2024 19:25
auto-restart FFMPEG when it stops sending frames to youtube
#!/bin/sh
sleep 5
ffmpeg -re -f mjpeg -r 10 -i "http://localhost/?action=stream" -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 1k -strict experimental -s 640x360 -vcodec h264 -pix_fmt yuv420p -g 20 -vb 500k -preset ultrafast -crf 31 -r 10 -f flv "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx" 2> /home/pi/ffmpeg.log
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active May 4, 2024 20:35
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@rochmad
rochmad / Netdata windows 10 bash mode
Last active April 25, 2020 07:21
Install firehol/NETDATA into WINDOWS 10 subsystem linux/Ubuntu
first off all, let windows use subsystem of linux, you can go here >>> https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
and then go to firehol netdata https://github.com/firehol/netdata/wiki/Installation#x86_64-pre-built-binary-for-any-linux
and follow this step
1. open windows+R and type bash
2. do at root(optional)
3. lookinto "x86_64 pre-built binary for any Linux"
4. DO this "#bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh)"
@megasaturnv
megasaturnv / mjpeg_Snapshot.php
Last active December 13, 2019 10:33
PHP motion jpeg mjpeg snapshot single frame with or without http auth. No temporary file needed
<?php
//Megasaturnv 2018-01-12
$camurl="http://192.168.1.100:8081/"; // Mjpeg URL
//$camurl="http://username:password@192.168.1.100:8081/" // HTTP Auth mjpeg URL (optional)
$boundary="--BoundaryString"; // $boundary = The boundary string between jpegs in an mjpeg stream
//NOTE: $boundary changes between mjpeg stream providers. For example, https://github.com/Motion-Project/motion uses '--BoundaryString'. https://github.com/ZoneMinder/ZoneMinder uses '--ZoneMinderFrame'. To find out $boundary for your stream you will need to save 1 or more frames of the mjpeg and open it with a text editor. --<boundary string> should be visible on the first line
$f = fopen($camurl, "r"); // Open mjpeg url as $f in readonly mode
$r = ""; // Set $r to blank variable
if($f) {
@keiya
keiya / README.md
Last active April 22, 2024 06:43
How to broadcast to Icecast2 by using ffmpeg (FLAC,Opus,Vorbis,AAC,MP3/Windows, Mac)

FFMpeg to Icecast2 Streaming Samples

Examples usage of various codecs with FFMpeg.

Samples

  • flac.sh : An Icecast Source Client
    • for Windows (Cygwin is required)
    • and macOS (brew install ffmpeg)
  • another_examples.sh : Samples
  • FFMpeg can push to Icecast2 in various formats: Opus/Vorbis/AAC/MP3
@moeiscool
moeiscool / ffmpegToWeb.js
Last active May 1, 2024 12:39
FFMPEG to Web Browser with Express, Socket.IO and JSMPEG
// Shinobi (http://shinobi.video) - FFMPEG H.264 over HTTP Test
// How to Use raw H.264 (Simulated RTSP)
// 1. Start with `node ffmpegToWeb.js`
// 2. Get the IP address of the computer where you did step 1. Example : 127.0.0.1
// 3. Open VLC and "Open Network Stream".
// 4. Input the following without quotes : `http://127.0.0.1:8001/h264` and start.
var child = require('child_process');
var io = require('socket.io');
var events = require('events');
@rnagarajanmca
rnagarajanmca / emulate_rpi_on_windows.md
Last active March 24, 2024 14:34
Raspberry pi emulator for windows

Emulate Raspberry pi on windows

Following files required to emulate raspberry pi on windows

  • QEMU Emulator
  • Raspberry pi kernel
  • Raspberry pi OS image

QEMU emulator

  • QEMU is an emulator
@tosbourn
tosbourn / facebook_warning.html
Created February 4, 2017 23:37
How to recreate Facebook's console warning
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script type="text/javascript">
const warningTitleCSS = 'color:red; font-size:60px; font-weight: bold; -webkit-text-stroke: 1px black;';
const warningDescCSS = 'font-size: 18px;';