Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

David Demonchy fusco

🎯
Focusing
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
fusco / phishing
Created Mar 19, 2014
phishing la banque postale
View phishing
Delivered-To: xxxxxxx@gmail.com
Received: by 10.64.236.1 with SMTP id uq1csp233795iec;
Tue, 18 Mar 2014 23:48:03 -0700 (PDT)
X-Received: by 10.14.127.4 with SMTP id c4mr1900895eei.86.1395211682794;
Tue, 18 Mar 2014 23:48:02 -0700 (PDT)
Return-Path: <postmaster@ilic.cz>
Received: from uvirt1.active24.cz (ipv6.uvirt1.active24.cz. [2a02:4a8:ac24:102::96:66])
by mx.google.com with ESMTP id u5si25398721een.53.2014.03.18.23.48.01
for <xxxxxxxx@gmail.com>;
@fusco
fusco / vsftp.sh
Created Mar 4, 2014
gestion vsftp
View vsftp.sh
#!/bin/sh
# =============================================================================
#
# File .....: vsftp_am.sh - 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
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>
core.run()
File "/usr/lib/pymodules/python2.7/ajenti/core.py", line 147, in run
Inflater.get(manager.context).precache()
File "/usr/lib/pymodules/python2.7/ajenti/ui/inflater.py", line 36, in precache
self.inflate(temp_ui, layout)
File "/usr/lib/pymodules/python2.7/ajenti/ui/inflater.py", line 71, in inflate
self.cache[layout] = self.inflate_rec(ui, xml)
File "/usr/lib/pymodules/python2.7/ajenti/ui/inflater.py", 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,
"file_exclude_patterns":
[
".DS_Store",
".tags*",
"*.pyc",
View routes.rb
authenticated :user do
root to: "agendas#show"
end
unauthenticated :user do
devise_scope :user do
root to: "devise/sessions#new"
end
end
View totals.phtml
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* 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:
* http://opensource.org/licenses/osl-3.0.php
View Cart.php
<?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
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; ?>
</div>
<?php endif; ?>
View cms.xml
<block type="catalog/product_list" name="home" template="catalog/product/home.phtml">
<action method="setCategoryId">
<category_id>53</category_id>
</action>
<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"/>
</block>
<action method="setToolbarBlockName">
<name>product_list_toolbar</name>
</action>
View gist:3021639
public function updatefile($merchant_id,$BankServer,$nom_logo){
// fonction qui va écrire/réécrire le fichier /param/pathfile et /param/parmcom........
$pathfile=dirname(__FILE__)."/param/pathfile";
$comfile =dirname(__FILE__)."/param/parmcom.".$merchant_id;
@unlink($pathfile);
$fp=fopen($pathfile, "w");
$return = true;
if($fp){
fwrite($fp,"DEBUG!NO!\n");
fwrite($fp,"D_LOGO!".__PS_BASE_URI__."modules/".$this->name."/logo/!\n");
You can’t perform that action at this time.