This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## source : https://www.youtube.com/watch?v=ABrO2kdXCWE | |
## but I fixed some bugs | |
## this installs dependancies used to get the dependancies and some sources + build tools | |
sudo apt-get update | |
sudo apt-get install g++ | |
sudo apt-get update -y | |
sudo apt-get install -y beignet-opencl-icd | |
sudo apt-get install mediainfo | |
sudo apt-get install libqt5concurrent5 libqt5svg5 libqt5qml5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function doFlush() | |
{ | |
if (!headers_sent()) { | |
// Disable gzip in PHP. | |
ini_set('zlib.output_compression', 0); | |
// Force disable compression in a header. | |
// Required for flush in some cases (Apache + mod_proxy, nginx, php-fpm). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal EnableDelayedExpansion | |
ver | find "10." > nul | |
if errorlevel 1 ( | |
echo Your Windows version is not Windows 10... yet. Brace yourself, Windows 10 is coming^^! | |
pause | |
exit | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Bash `flock` example. | |
# Works on: Linux, BSD | |
# Doesn't work on: MacOS | |
# The file which represent the lock. | |
LOCKFILE="`basename $0`.lock" | |
# Timeout in seconds. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* $status = { | |
* "status": "online" | "offline", | |
* "cover": "open" | "closed", (opt) | |
* "feeding": "feeding" | "not", (opt) | |
* "autocutterError": "error" | "not", (opt) | |
* "unrecoverableError": "error" | "not", (opt) | |
* "recoverableError": "error" | "not", (opt) | |
* "paper": "paperEnd" | "paperPresent" (opt) | |
* } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// String utils | |
// | |
// resources: | |
// -- mout, https://github.com/mout/mout/tree/master/src/string | |
/** | |
* "Safer" String.toLowerCase() | |
*/ | |
function lowerCase(str) { | |
return str.toLowerCase(); |