Skip to content

Instantly share code, notes, and snippets.

View stijn1989's full-sized avatar
🤖
I hate Python

Stijn Leenknegt stijn1989

🤖
I hate Python
View GitHub Profile
@joseluisq
joseluisq / mysql_query_log.md
Last active May 24, 2024 07:31
How to enable the MySQL/MariaDB general query logs

How to enable the MySQL/MariaDB general query logs

  1. Enter to MySQL/MariaDB server command-line tool (change root with your username and password):
mysql -u root -proot
  1. Set the general log file path:
SET GLOBAL general_log_file='/var/log/mysql/mycustom.log';
@realazthat
realazthat / index.js
Created August 18, 2016 22:04
requirebin sketch
let _ = require('lodash');
let $ = require('jquery-browserify');
let joint = require('jointjs');
let V = joint.V;
@DeadlySystem
DeadlySystem / QR Code Scanner
Created February 11, 2015 10:38
This is code that provides an interface to let you select the camera to be used with jsqrcode ( https://github.com/LazarSoft/jsqrcode ). To make it work, you will have to include said library and have elements with the IDs in the loadCommonHTMLElements method on your page. You may want to provide appropriate styling as well. This source code is …
"use strict";
define(["require", "exports"], function (require, exports) {
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Browser compatibility definitions
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Private state
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var qrcodescanner = null;