Skip to content

Instantly share code, notes, and snippets.

View GoMino's full-sized avatar

Amine Bezzarga GoMino

View GitHub Profile
@GoMino
GoMino / install_ffmpeg.sh
Created July 22, 2019 18:10 — forked from Piasy/install_ffmpeg.sh
brew install ffmpeg with all options
brew options ffmpeg
brew install ffmpeg \
--with-chromaprint \
--with-fdk-aac \
--with-fontconfig \
--with-freetype \
--with-frei0r \
--with-game-music-emu \
--with-libass \
@GoMino
GoMino / ffmpeg-over-ssh.sh
Created July 22, 2019 16:37 — forked from yuvadm/ffmpeg-over-ssh.sh
Media stream pipe ffmpeg over SSH
ssh [email protected] "ffmpeg -i $URL -c copy -f nut pipe:1" | ffplay -i pipe:0
@GoMino
GoMino / macFFmpeg.md
Created July 22, 2019 11:47 — forked from docPhil99/macFFmpeg.md
Mac webcam FFmpeg

#Capture and stream a webcam To capture using the iSight camera on a Mac, or infact any other webcam connected to the Mac, we can use FFmpeg. First get a list of the devices installed.

ffmpeg -f avfoundation -list_devices true -i "" 

This will list the aviable video and audio devices.

The below will capture at 30fps and the set video size to a file. fmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "0:none" out.avi

This file has been truncated, but you can view the full file.
[19:37:39] Requiring external module babel-register
[19:37:43] Using gulpfile ~/git/X-Squad/Ppollit/Ppollit-fullstack/gulpfile.babel.js
[19:37:43] Starting 'serve'...
[19:37:43] Starting 'clean:tmp'...
[19:37:43] Starting 'lint:scripts'...
[19:37:43] Starting 'lint:scripts:client'...
[19:37:43] Starting 'lint:scripts:server'...
[19:37:43] Starting 'inject'...
[19:37:43] Starting 'inject:scss'...
[19:37:43] Starting 'copy:fonts:dev'...
@GoMino
GoMino / web-servers.md
Created March 6, 2018 18:02 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
[
{"id":1, "title": "Gradient #1", "description": "Suggested for you"},
{"id":2, "title": "Gradient #2", "description": "Suggested for you"},
{"id":3, "title": "Gradient #3", "description": "Suggested for you"},
{"id":4, "title": "Gradient #4", "description": "Suggested for you"},
{"id":5, "title": "Gradient #5", "description": "Suggested for you"},
{"id":6, "title": "Gradient #6", "description": "Suggested for you"},
{"id":7, "title": "Gradient #7", "description": "Suggested for you"},
{"id":8, "title": "Gradient #8", "description": "Suggested for you"},
{"id":9, "title": "Gradient #9", "description": "Suggested for you"},
@GoMino
GoMino / The Technical Interview Cheat Sheet.md
Created May 15, 2017 12:35 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@GoMino
GoMino / EnvConfig.swift
Created May 3, 2017 16:12 — forked from drunknbass/EnvConfig.swift
Firebase stage + Prod config
import Foundation
@objc(EnvConfig)
class EnvConfig: NSObject {
#if ENVConfigStaging
class var isProduction:Bool {
return false
}
@GoMino
GoMino / SO_Endpoint
Created February 21, 2014 03:37
Retrieving Entity from Google App Engine backend to Android App
public class EndpointsTask extends AsyncTask<Context, Integer, User> {
protected User doInBackground(Context... contexts) {
Userendpoint.Builder endpointBuilder = new Userendpoint.Builder(
AndroidHttp.newCompatibleTransport(),
new JacksonFactory(),
new HttpRequestInitializer() {
public void initialize(HttpRequest httpRequest) { }
});
Userendpoint endpoint = CloudEndpointUtils.updateBuilder(