Skip to content

Instantly share code, notes, and snippets.

cAstraea

  • Digital-Partner
  • Bucharest
Block or report user

Report or block cAstraea

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cAstraea
cAstraea / .block
Last active Oct 18, 2018
Mapbox routing demo (modified)
View .block
license: mit
@cAstraea
cAstraea / ffmpeg_install.md
Created Apr 18, 2018 — forked from jmsaavedra/ffmpeg_install.md
Install FFmpeg on a Linux Box
View ffmpeg_install.md

###Install FFmpeg via CLI on Linux box

These steps walk through installing a static binary of any ffmpeg version on to your linux machine. If you want to compile from source, there are several ways to do so. Here's the official guide. Tested and works on an AWS EC2 Ubuntu instance, but should work on any Linux machine.

#####http://ffmpeg.org

  • SSH into your instance and become root
@cAstraea
cAstraea / ensure-cert-macos.sh
Created Apr 16, 2018 — forked from koop/ensure-cert-macos.sh
Ensures a certificate is in the macOS system keychain.
View ensure-cert-macos.sh
#!/bin/bash
# Usage
# $ ./install-cert-macos.sh "/path/to/cert"
CERT_PATH="$1"
# First, grab the SHA-1 from the provided SSL cert.
CERT_SHA1=$(openssl x509 -in "$CERT_PATH" -sha1 -noout -fingerprint | cut -d "=" -f2 | sed "s/://g")
# Next, grab the SHA-1s of any standard.dev certs in the keychain.
# Don't return an error code if nothing is found.
@cAstraea
cAstraea / ffmpeg
Last active Feb 8, 2018
ffmpeg stream commands
View ffmpeg
//transmux rtmp to hls stream with encoding
./ffmpeg -v verbose -i rtmp://52.197.22.*:1935/live1/nar-4 -c:v libx264 -c:a aac -ac 1 -strict -2 -tune zerolatency -crf 23 -preset veryfast -profile:v baseline -maxrate 1560k -bufsize 1560k -x264opts keyint=30:min-keyint=10:no-scenecut -b:v 500k -threads 0 -g 60 -movflags +faststart -flags -global_header -hls_time 10 -hls_list_size 6 -hls_wrap 10 -start_number 1 /var/www/symfony/nar-4.m3u8
//transmux rtmp to hls stream without encoding
./ffmpeg -v verbose -i rtmp://52.197.22.*:1935/live1/nar-4 -c copy -flags -global_header -hls_time 10 -hls_list_size 6 -hls_wrap 10 -start_number 1 /var/www/symfony/nar-4.m3u8
thumbnail every 2 minutes
@cAstraea
cAstraea / index.html
Created Nov 24, 2017 — forked from PedroGutierrezStratio/index.html
Drawing the MongoDB's data with Chart.js through WebSockets.
View index.html
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<div style="margin: 20px;display: block;">
<canvas style="width: 600px; height: 300px" id="chart"></canvas>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.js"></script>
<script>
var ws = new WebSocket('ws://127.0.0.1:8008/');
@cAstraea
cAstraea / index.html
Created Nov 24, 2017 — forked from PedroGutierrezStratio/index.html
Drawing the MongoDB's data with Chart.js through WebSockets.
View index.html
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<div style="margin: 20px;display: block;">
<canvas style="width: 600px; height: 300px" id="chart"></canvas>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.js"></script>
<script>
var ws = new WebSocket('ws://127.0.0.1:8008/');
View ImageMagick 6.9.7-4 Homebrew Formula.md

Homebrew Formula patching old ImageMagick release 6.9.7-4

Install

$ brew install https://gist.githubusercontent.com/asanchez75/7c3cd4358fb982c4028bfc021424dfbc/raw/62eb3ce49d82b8a5c6033ecb89bdefbec9d00e84/imagemagick.rb

Tested

@cAstraea
cAstraea / auth.js
Last active Aug 15, 2017
for messenger account linking
View auth.js
'use strict';
require('dotenv').config();
const express = require('express');
const router = express.Router();
const bodyParser = require('body-parser');
const LINKED = {};
const question = {};
const http = require('http');
View link_account.js
View express_passport_link_compatible.js
You can’t perform that action at this time.