Skip to content

Instantly share code, notes, and snippets.

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

stefw stefw

🏠
Working from home
View GitHub Profile
https://heaven.paris
https://hopscotchgroupe.com/
https://fr.wikipedia.org/wiki/Hopscotch_Groupe
https://hopscotchgroupe.com/wp-content/uploads/2023/04/hopscotch-due-exercice2022-vdef.pdf
https://hopscotchgroupe.com/wp-content/uploads/2023/07/cp-vdef-hopscotch-x-itg-communique-de-presse-28072023_-002.pdf
https://www.youtube.com/watch?v=ANwE0XJUUrg
@stefw
stefw / gist:9a13546f2a3e52ad6c2f8022b723eda9
Last active June 19, 2016 20:13
failtoban xmlrpc debian apache2
[wordpress-xmlrpc]
enabled = true
filter = xmlrpc
action = iptables[name=WordPressXMLRPC, port=http, protocol=tcp]
logpath = /var/log/apache2/*access.log
bantime = 86400
maxretry = 1
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
cd /opt/letsencrypt
./letsencrypt-auto --apache -d domaine.com -d www.domaine.com
http://geojsonlint.com/
http://tympanus.net/Development/DynamicGrid/index2.html
@stefw
stefw / gist:5795966
Created June 17, 2013 10:15
Paris et métro SVG
http://dataparis.io/img/map-paris.svg
http://dataparis.io/img/metro-paris.svg
@stefw
stefw / gist:5769210
Created June 12, 2013 21:18
chrome bug select multiple onchange scroll triger
$(function () {
var lastVal;
$('#selecttest').change(function () {
var v = $(this).val();
if (v != lastVal) {
fireYourRealOnChangeEventHere();
lastVal = v;
}
});
@stefw
stefw / gist:5379062
Created April 13, 2013 16:22
WP rewrite /post_type/taxo/term
add_action( 'init', 'wprew' );
function wprew()
{
// Remember to flush the rules once manually after you added this code!
add_rewrite_rule(
// The regex to match the incoming URL
'designers/([^/]+)/?',
// The resulting internal URL: `index.php` because we still use WordPress
// `pagename` because we use this WordPress page
// `designer_slug` because we assign the first captured regex part to this variable
@stefw
stefw / gist:5296449
Created April 2, 2013 21:39
Nb de fichiers d'un répertoire
ls -lR | grep ^- | wc -l