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
# Config for WIMAXIT 7 | |
hdmi_force_edit_audio=1 | |
max_usb_current=1 | |
hdmi_force_hotplug=1 | |
config_hdmi_boost=7 | |
hdmi_group=2 | |
hdmi_mode=87 | |
hdmi_drive=2 | |
display_rotate=0 | |
hdmi_cvt 1024 600 60 6 0 0 0 |
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 | |
declare(strict_types=1); | |
namespace Deezer\Legacy\Test\ActivationJourney; | |
use Prophecy\Prophet; | |
class MockHelper | |
{ |
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 timeIt( | |
callable $callable, | |
array $params = [], | |
int $maxLoop = 1000, | |
bool $returnValue = false | |
) { | |
$start = microtime(true); |
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
# CORS | |
Header always set Access-Control-Allow-Origin "*" | |
Header always set Access-Control-Allow-Headers "Content-Type, Authorization" | |
Header always set Access-Control-Request-Methods "POST, GET, OPTIONS" |
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 | |
/** | |
* Unaccent a string | |
* | |
* An example string like ÀØėÿᾜὨζὅБю will be translated to AOeyIOzoBY. | |
* More complete than : | |
* | |
* strtr( | |
* (string)$str, |
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 | |
namespace Mail; | |
/** | |
* Class Mailer | |
* | |
* Class to send email. | |
* | |
*/ |
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 | |
CHANGELOG_FILENAME="CHANGELOG.rst" | |
LASTTAG=$(git tag| sort -V | tail -1) | |
echo "Last tag $LASTTAG" | |
TMPFILE=$(mktemp) | |
TODAY=$(date +%Y-%m-%d) |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Title</title> | |
<link rel="stylesheet" href="style.css"> | |
<script src="script.js"></script> | |
</head> | |
<body> | |
<div id="container"> |
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
set shell=/bin/sh " fish friendly | |
" | |
" Base configuration from https://github.com/tpope/vim-sensible | |
" | |
if has('autocmd') | |
filetype plugin indent on | |
endif | |
if has('syntax') && !exists('g:syntax_on') | |
syntax enable | |
endif |
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
#!/usr/bin/env bash | |
# colorize log thanks to Radu Cotescu (https://radu.cotescu.com/coloured-log-outputs/) | |
TAIL=`which tail` | |
AWK=`which awk` | |
if [[ -z $TAIL ]]; then | |
echo -e "Cannot find tail executable.\n" | |
exit 1 | |
fi |
NewerOlder