Skip to content

Instantly share code, notes, and snippets.

View flug's full-sized avatar
:octocat:
yeah yeah yeah

Flug flug

:octocat:
yeah yeah yeah
View GitHub Profile

==== FRANCAIS VERSION ====

Ceci est le test technique .

composant et outils à utiliser :

Composer

Symfony/console

[DoS Attack: ACK Scan] from source: 104.244.42.193, port 443, Monday, May 17, 2021 11:35:59
[DoS Attack: ACK Scan] from source: 5.62.54.29, port 443, Monday, May 17, 2021 11:35:42
[DoS Attack: ACK Scan] from source: 5.62.54.29, port 443, Monday, May 17, 2021 11:35:28
[DoS Attack: ACK Scan] from source: 5.62.54.29, port 443, Monday, May 17, 2021 11:35:14
[DoS Attack: ACK Scan] from source: 18.195.145.6, port 443, Monday, May 17, 2021 11:34:53
[DoS Attack: ACK Scan] from source: 18.195.145.6, port 443, Monday, May 17, 2021 11:34:22
[DoS Attack: ACK Scan] from source: 18.215.229.38, port 443, Monday, May 17, 2021 11:33:57
[DoS Attack: ACK Scan] from source: 18.215.229.38, port 443, Monday, May 17, 2021 11:33:52
[DoS Attack: ACK Scan] from source: 18.195.145.6, port 443, Monday, May 17, 2021 11:33:52
[DoS Attack: ACK Scan] from source: 18.215.229.38, port 443, Monday, May 17, 2021 11:33:47
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
<?php
namespace spec\Clooder\Console;
use Clooder\Console\Application;
use Clooder\Kernel;
use PhpSpec\ObjectBehavior;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\NullOutput;
showcases:
name: Showcases
slug: showcases
singular_name: Showcase
singular_slug: showcase
description: The 'Showcases' is not particularly useful in most cases, but it does a good job of showcasing most of the available fieldtypes.
fields:
title:
type: text
class: large
### Keybase proof
I hereby claim:
* I am flug on github.
* I am flug (https://keybase.io/flug) on keybase.
* I have a public key whose fingerprint is 4738 2F00 6DF1 4683 C534 CA40 6265 72F4 4ADA 0689
To claim this, I am signing this object:
@flug
flug / Copy.dockerfile
Last active December 4, 2019 22:25
[php docker] #docker #php
FROM composer/composer:1.1 as composer
ARG version=dev-master
ARG http_version=dev-master
RUN mkdir /ppm && cd /ppm && composer require php-pm/php-pm:${version} && composer require php-pm/httpkernel-adapter:${http_version}
FROM alpine:3.7
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
@flug
flug / distance.php
Last active October 31, 2019 14:28
[distance map] #php #googleMap
<?php
$provenance = '26200 MONTELIMAR';
$destination = '13001 MARSEILLE';
$dom = new DOMDocument();
$dom->validateOnParse = true;
$APIMAP = 'http://maps.googleapis.com/maps/api/distancematrix/xml?origins='.$provenance.'&destinations='.$destination.'&sensor=false';
$dom->load($APIMAP);
<?php
$pays = array(
"AD" => "Andorre",
"AE" => "Emirats arabes unis",
"AF" => "Afghanistan",
"AG" => "Antigua-et-barbuda",
"AI" => "Anguilla",
"AL" => "Albanie",
"AM" => "Arménie",
"AN" => "Antilles",
@flug
flug / gist:78713cda69bfb8126fb308bc716d1cc8
Last active October 31, 2019 14:16 — forked from jpetitcolas/gist:5967887
[PostGreSQL JSON field] Encode/decode a base64 encoded string in PostGreSQL #PostGreSQL
-- Decoding
SELECT CONVERT_FROM(DECODE(field, 'BASE64'), 'UTF-8') FROM table;
-- Encoding
SELECT ENCODE(CONVERT_TO(field, 'UTF-8'), 'base64') FROM table;