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
@flug
flug / SmokeFunctionalTest.php
Last active October 31, 2019 14:08
[SmokeFunctionalTest] #php #symfony
<?php
namespace App\Tests;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class SmokeFunctionalTest extends WebTestCase
{
@flug
flug / settings.cnf
Last active October 31, 2019 14:12
[CNC settings] #cnc #gcode #grbl
$0=10
$1=25
$2=0
$3=4
$4=0
$5=0
$6=0
$10=3
$11=0.020
$12=0.002
@flug
flug / BookController.php
Last active October 31, 2019 14:16 — forked from silviuvoicu/BookController.php
[Spec tests] Spec with phpspec a symfony2 controller. I know which is the normal work flow: write first the spec, and then the code, but in order to understand better how to spec a symfony2 controller, I first create a simple book entity with just id and name, and then with the help of generators I created a crud system, which I modified a littl…
<?php
namespace Acme\DemoBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Acme\DemoBundle\Entity\Book;
@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;
@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