Skip to content

Instantly share code, notes, and snippets.

View m3doune's full-sized avatar

Mame Medoune DIOP m3doune

  • Dakar, Senegal
View GitHub Profile
View beinsport.m3u
#EXTM3U
#EXTINF:-1,beINSports-fr1
http://iptv.am000.tv:8000/live/add17/add17/16.ts
#EXTINF:-1,beINSports-fr2
http://iptv.am000.tv:8000/live/add17/add17/17.ts
#EXTINF:-1,BEINSPORTS-FR3
http://iptv.am000.tv:8000/live/add17/add17/566.ts
#EXTINF:-1,Alkas-1
http://iptv.am000.tv:8000/live/add17/add17/73.ts
#EXTINF:-1,Alkas-2
@m3doune
m3doune / date_util.erl
Created January 14, 2020 16:15 — forked from zaphar/date_util.erl
set of utility functions that wrap the calendar module and erlangs now() date() and time() functions
View date_util.erl
-module(date_util).
-compile(export_all).
epoch() ->
now_to_seconds(now())
.
epoch_hires() ->
now_to_seconds_hires(now())
.
@m3doune
m3doune / cache-json.php
Created February 5, 2019 10:55 — forked from ScottPhillips/cache-json.php
Cache Remote JSON Feed
View cache-json.php
<?php
/**
* API Request Caching
*
* Use server-side caching to store API request's as JSON at a set
* interval, rather than each pageload.
*
* @arg Argument description and usage info
*/
@m3doune
m3doune / .gitlab-ci
Created June 12, 2018 13:35 — forked from Slauta/.gitlab-ci
electron-updater from private repo gitlab.com
View .gitlab-ci
variables:
VERSION_ID: '1.0.$CI_PIPELINE_ID'
stages:
- build
build:
image: slauta93/electron-builder-win
stage: build
artifacts:
@m3doune
m3doune / 1.How to easily implement a REST API with oAuth2 presentation.md Symfony2 : How to easily implement a REST API with oAuth2 (for normal guys)
View 1.How to easily implement a REST API with oAuth2 presentation.md

It's still a work in progress...

Intro

As William Durand was recently explaining in his SOS, he "didn't see any other interesting blog post about REST with Symfony recently unfortunately". After spending some long hours to implement an API strongly secured with oAuth, I thought it was time for me to purpose my simple explanation of how to do it.

Ok, you know the bundles

You might have already seen some good explanation of how to easily create a REST API with Symfony2. There are famous really good bundles a.k.a. :

@m3doune
m3doune / readme.md
Created February 8, 2018 11:48 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM
View readme.md

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

@m3doune
m3doune / app.js
Created November 1, 2017 19:47 — forked from dskanth/app.js
Server file for Private chat using node.js and socket.io
View app.js
var app = require('express').createServer()
var io = require('socket.io').listen(app);
var fs = require('fs');
app.listen(8008);
// routing
app.get('/', function (req, res) {
res.sendfile(__dirname + '/chat.html');
});
@m3doune
m3doune / nodejs-rfid.js
Created September 8, 2017 12:32 — forked from basham/nodejs-rfid.js
Use NodeJS to read RFID ids through the USB serial stream.
View nodejs-rfid.js
/*
DESCRIPTION
-----------
Use NodeJS to read RFID ids through the USB serial stream. Code derived from this forum:
http://groups.google.com/group/nodejs/browse_thread/thread/e2b071b6a70a6eb1/086ec7fcb5036699
CODE REPOSITORY
---------------
https://gist.github.com/806605
@m3doune
m3doune / cloud9-symfony.md
Created June 8, 2017 10:00 — forked from lelledaniele/cloud9-symfony.md
cloud9 symfony apache config server
View cloud9-symfony.md

Symfony on Cloud9

Configuration

  • DB Host: 0.0.0.0 or '' empty string. Result of function getenv('IP')
  • DB Password: YOUR_PASSWORD
  • DB Name: c9
  • DB User: YOUR_USERNAME