Skip to content

Instantly share code, notes, and snippets.


David Demonchy fusco

Block or report user

Report or block fusco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fusco / phishing
Created Mar 19, 2014
phishing la banque postale
View phishing
Received: by with SMTP id uq1csp233795iec;
Tue, 18 Mar 2014 23:48:03 -0700 (PDT)
X-Received: by with SMTP id c4mr1900895eei.86.1395211682794;
Tue, 18 Mar 2014 23:48:02 -0700 (PDT)
Return-Path: <>
Received: from ( [2a02:4a8:ac24:102::96:66])
by with ESMTP id u5si25398721een.53.2014.
for <>;
fusco /
Created Mar 4, 2014
gestion vsftp
# =============================================================================
# File .....: - Manage virtual user accounts for vsftp
# Date .....: 23/06/2007
# -------------------------------
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
fusco / ajenti.err.log
Created Jan 21, 2014
Logs for Ajenti 1.2.15 - debian package. ajenti don't start
View ajenti.err.log
Traceback (most recent call last):
File "/usr/bin/ajenti-panel", line 88, in <module>
File "/usr/lib/pymodules/python2.7/ajenti/", line 147, in run
File "/usr/lib/pymodules/python2.7/ajenti/ui/", line 36, in precache
self.inflate(temp_ui, layout)
File "/usr/lib/pymodules/python2.7/ajenti/ui/", line 71, in inflate
self.cache[layout] = self.inflate_rec(ui, xml)
File "/usr/lib/pymodules/python2.7/ajenti/ui/", line 106, in inflate_rec
View Preferences.sublime-settings
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"create_window_at_startup": false,
"dictionary": "Packages/Dictionaries/French.dic",
"ensure_newline_at_eof_on_save": true,
View routes.rb
authenticated :user do
root to: "agendas#show"
unauthenticated :user do
devise_scope :user do
root to: "devise/sessions#new"
View totals.phtml
* Magento
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
View Cart.php
class Cart extends CartCore
public function __construct($id = NULL, $id_lang = NULL)
parent::__construct($id, $id_lang);
/* Oleacorner : Optimization of producst cache management in case several cart objects with same IDs are created */
fusco / new_store.phtml
Created Jul 13, 2012
remplace dropdown store menu by flag
View new_store.phtml
<?php if(count($this->getGroups())>1): ?>
<div class="store-switcher">
<?php foreach ($this->getGroups() as $_group): ?>
<a href="<?php echo $_group->getHomeUrl() ?>"><img
src="<?php echo $this->getSkinUrl('images/store/store_' . strtolower(str_replace(' ', '_',$this->htmlEscape($_group->getName()))) . '.png') ?>" width="30" height="20"
alt="<?php echo $this->htmlEscape($_group->getName()) ?>"/></a>
<?php endforeach; ?>
<?php endif; ?>
View cms.xml
<block type="catalog/product_list" name="home" template="catalog/product/home.phtml">
<action method="setCategoryId">
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager"/>
<action method="setToolbarBlockName">
View gist:3021639
public function updatefile($merchant_id,$BankServer,$nom_logo){
// fonction qui va écrire/réécrire le fichier /param/pathfile et /param/parmcom........
$comfile =dirname(__FILE__)."/param/parmcom.".$merchant_id;
$fp=fopen($pathfile, "w");
$return = true;
You can’t perform that action at this time.