Skip to content

Instantly share code, notes, and snippets.

Avatar

Mame Medoune DIOP m3doune

  • Dakar, Senegal
View GitHub Profile
@m3doune
m3doune / cloud9-symfony.md
Created Jun 8, 2017 — forked from lelledaniele/cloud9-symfony.md
cloud9 symfony apache config server
View cloud9-symfony.md

Symfony on Cloud9

Install Symfony

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
@m3doune
m3doune / nodejs-rfid.js
Created Sep 8, 2017 — 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 / app.js
Created Nov 1, 2017 — 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 / readme.md
Created Feb 8, 2018 — 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

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 / .gitlab-ci
Created Jun 12, 2018 — 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 / cache-json.php
Created Feb 5, 2019 — 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 / date_util.erl
Created Jan 14, 2020 — 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())
.
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