Skip to content

Instantly share code, notes, and snippets.

Avatar
🦁
ROAR!

Mohamed IBRIHEN sangimed

🦁
ROAR!
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am sangimed on github.
  • I am sangimed (https://keybase.io/sangimed) on keybase.
  • I have a public key ASBYe3rKpVLDp3--0IEpuJIyKtRRO85ZFAxzdcaDaGPUSgo

To claim this, I am signing this object:

@sangimed
sangimed / capture_device.txt
Created Apr 20, 2021
Read Capture Device into VLC in 1080p60
View capture_device.txt
# Change dshow-adev and dshow-vdev values according to your Capture device name.
"C:\Program Files\VideoLAN\VLC\vlc.exe" dshow:// :dshow-size="1920x1080" :dshow-vdev="USB3.0 HD Video Capture" :dshow-adev="Microphone (USB3.0 HD Audio Capture)" :dshow-aspect-ratio="16:9" :dshow-audio-samplerate=48000 :dshow-audio-channels=2 :live-caching=0 :dshow-fps=60
View Mirror of pixeltris' gist
# https://github.com/uBlockOrigin/uAssets/pull/3517
twitch-videoad.js application/javascript
(function() {
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; }
var realFetch = window.fetch;
window.fetch = function(input, init) {
if ( arguments.length >= 2 && typeof input === 'string' && input.includes('/access_token') ) {
var url = new URL(arguments[0]);
url.searchParams.forEach(function(value, key) {
url.searchParams.delete(key);
@sangimed
sangimed / Z Command example
Last active Mar 27, 2019
Z command example
View Z Command example
# Accessing to some directories for the first time.
cd Repositories/watc/src/main/java/com/mohamedibrihen/watc/service
cd ../endpoint
cd ../utils
# Accessing quickly via the Z command
sangimed@ubuntu ~ z watc service
sangimed@ubuntu ~ /Repositories/watc/src/main/java/com/mohamedibrihen/watc/service
sangimed@ubuntu ~ z endpoint
@sangimed
sangimed / ProcedureQueries.java
Created Oct 4, 2018
Call a plsql procedure with JPA in Spring
View ProcedureQueries.java
package mypackage;
import javax.persistence.EntityManager;
import javax.persistence.ParameterMode;
import javax.persistence.PersistenceContext;
import javax.persistence.StoredProcedureQuery;
import org.springframework.stereotype.Component;
@Component
@sangimed
sangimed / contentscriptUtils.js
Created Apr 13, 2018
Utils of my chrome extension before refactoring it
View contentscriptUtils.js
'use strict';
// ----- utils.js -----
// CONSTANTS
/**
* Defines the tags on which the extension will be triggered.
*/
const EDITABLE_TAGS = ['INPUT', 'TEXTAREA'];
View popup.js
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Get the current URL.
*
* @param {function(string)} callback called when the URL of the current tab
* is found.
*/
@sangimed
sangimed / insertDummyDataset.rq
Last active Feb 24, 2017
dataset for the Travel's triplestore project
View insertDummyDataset.rq
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX users: <http://travel.univ-rouen.fr/ontologies/users/>
PREFIX trips: <http://travel.univ-rouen.fr/ontologies/trips/>
PREFIX travelers: <http://travel.univ-rouen.fr/ontologies/travelers/>
PREFIX global: <http://travel.univ-rouen.fr/ontologies/global/>
PREFIX travel: <http://travel.univ-rouen.fr/>
PREFIX text: <http://jena.apache.org/text#>
PREFIX tr: <http://www.thomsonreuters.com/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
View add_trips_and_diaries
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX users: <http://travel.univ-rouen.fr/ontologies/users/>
PREFIX trips: <http://travel.univ-rouen.fr/ontologies/trips/>
PREFIX travelers: <http://travel.univ-rouen.fr/ontologies/travelers/>
PREFIX global: <http://travel.univ-rouen.fr/ontologies/global/>
PREFIX travel: <http://travel.univ-rouen.fr/>
PREFIX text: <http://jena.apache.org/text#>
PREFIX tr: <http://www.thomsonreuters.com/>
View find My diaries by trip testing sparql query
PREFIX trips: <http://travel.univ-rouen.fr/ontologies/trips/>
SELECT * WHERE {
?diary trips:associatedTrip <http://travel.univ-rouen.fr/triamh21667rza6r>;
trips:isCollaborative ?diary_isCollaborative;
trips:public ?diary_public;
trips:ownerId "ow4557de".
}