Skip to content

Instantly share code, notes, and snippets.

View sdieunidou's full-sized avatar
🏠
Working from home

Seb sdieunidou

🏠
Working from home
View GitHub Profile
@sdieunidou
sdieunidou / mcscan.py
Created January 21, 2021 13:13 — forked from KillerGoldFisch/mcscan.py
Scans a range of IPs for Minecraft Servers
#!/usr/bin/env python
# coding: utf8
"""mcscan.py: Scans an ip range for Minecraft multiplayer server."""
__author__ = "Kevin Gliewe aka KillerGoldFisch"
__copyright__ = "Copyright 2016, Kevin Gliewe"
__credits__ = ["Kevin Gliewe",]
__license__ = "MIT"
__version__ = "1.1.0"
@sdieunidou
sdieunidou / gist:7f4502ed2d8810e7a39317418c9adefb
Created August 9, 2018 13:30 — forked from httpdss/gist:948386
Mysql general log parser
#!/usr/bin/perl
use strict;
use Data::Dumper;
use Getopt::Long;
# author: Gavin Towey, 2008 gtowey@gmail.com
# todo, add "follow thread" capability
# so we can give a process name or thread id & see
# all activity in sequence for each thread
@sdieunidou
sdieunidou / symfony2-pull-requests.md
Created April 12, 2017 08:05 — forked from immutef/symfony2-pull-requests.md
HowTo: clean GitHub pull requests for Symfony2
  1. Fork Fabiens repository: http://github.com/fabpot/symfony.git

  2. Clone your fork and install/update vendors (I use my personal fork for now):

    git clone git@github.com:pminnieur/symfony.git symfony

    cd symfony && sh install_vendors.sh && sh update_vendors.sh

    phpunit

  3. Integrate Fabiens repository into your local clone:

@sdieunidou
sdieunidou / terms-and-conditions-in-label.twig
Created February 10, 2017 13:55 — forked from marijn/terms-and-conditions-in-label.twig
This is how you add a link to a label with Symfony forms, sort of. Cause you'll have a label tag twice...
{% set terms_link %}<a title="{% trans %}Read the General Terms and Conditions{% endtrans %}" href="{{ path('get_general_terms_and_conditions') }}">{% trans %}General Terms and Conditions{% endtrans %}</a>{% endset %}
{% set general_terms_and_conditions %}{{ 'I have read and accept the %general_terms_and_conditions%.'|trans({ '%general_terms_and_conditions%': terms_link })|raw }}{% endset %}
<div>
{{ form_errors(form.acceptGeneralTermsAndConditions) }}
{{ form_widget(form.acceptGeneralTermsAndConditions) }}
<label for="{{ form.acceptGeneralTermsAndConditions.vars.id }}">{{ general_terms_and_conditions|raw }}</label>
</div>