Skip to content

Instantly share code, notes, and snippets.

@brunob
brunob / .block
Last active February 1, 2017 22:34
Quotas départementaux grands cormorans
license: mit
border: none
height: 600
@brunob
brunob / phpcs.xml
Created December 8, 2015 19:57
PHP_CodeSniffer pour SPIP
<?xml version="1.0"?>
<ruleset name="SPIP">
<!--
Liens utiles
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
https://github.com/ucfcdl/fuelphp-phpcs/tree/master/Standards/FuelPHP
https://github.com/vanilla/addons/tree/master/standards/Vanilla
-->
<description>Coding rules for SPIP</description>
@brunob
brunob / backup.sh
Created July 22, 2015 17:05
Simple backup
#!/bin/bash
date=$(date +%Y%m%d)
old=$(date +%Y%m%d -d '7 days ago')
###
# Pamrametres du script
###
# Chemin du repertoire de la sauvegarde
@brunob
brunob / eathquake.mml
Created June 1, 2015 15:54
eathquake kosmtik
{
"bounds": [
-180,
-85.0511,
180,
85.0511
],
"center": [
0,
0,
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brunob
brunob / transfert_backup.sh
Last active August 29, 2015 14:10
transfert des fichiers de backup
#!/bin/sh
# generation des dates
date=$(date +%Y%m%d)
old=$(date +%Y%m%d -d '7 days ago')
# parametres
backup="/var/state/"$date
host=ftp.domain.tld
login=login-ftp
@brunob
brunob / backup.sh
Created December 8, 2014 08:59
génération des fichiers de backup
#!/bin/bash
# Generation de la date du jour
date=$(date +%Y%m%d)
###
# Pamrametres du script
###
# Chemin du repertoire de la sauvegarde
#
# https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
# based on the RSnake original http://ha.ckers.org/xss.html
# Retrieved on 2013-11-20
# Much of this wildly obsolete
#
# XSS Locator 2
'';!--"<XSS>=&{()}
@brunob
brunob / prettycss.conf
Last active April 26, 2019 08:42
Personal config file for PrettyCSS https://github.com/fidian/PrettyCSS/
{
"cssLevel": 3,
"autocorrect": "",
"propertiesLowerCase": "",
"valuesLowerCase": "",
"at_pre": "",
"at_whitespace": " ",
"at_post": "\n",
"atblock_pre": " {\n\t",
"atblock_post": "\r}",
@brunob
brunob / main.py
Last active August 29, 2015 14:00
quolibet/browsers/coverlist
# -*- coding: utf-8 -*-
# Copyright 2004-2007 Joe Wreschnig, Michael Urman, Iñigo Serna
# 2009-2010 Steven Robertson
# 2012-2013 Nick Boultbee
# 2009-2014 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation