Skip to content

Instantly share code, notes, and snippets.

@coulmont
coulmont / deces_polaire_anime.R
Created December 2, 2020 13:02
deces en france, coordonnées polaires, version animée
# ajout des informations pour l'animation
# ---------------------------------------
library(gganimate)
library(broom)
dc <- bind_rows(dc_jour,dc_insee_jour,deces_ecdc,deces_insee_provisoires)
# on démarre du fichier dc utilisé pour le graphique surmortalité
@btopro
btopro / dropback.sh
Last active October 30, 2021 01:22 — forked from deekayen/.sparkleshare
Automate conversion of Drupal modules to Backdrop with bash utilities.
#!/usr/bin/env bash
# Bash 4 required.
# brew install bash
USAGE=$(cat <<EOF_USAGE
USAGE: ${SCRIPT} <options>
The following options are supported:
@SebCorbin
SebCorbin / .gitconfig
Last active May 27, 2020 20:43 — forked from alikins/.gitattributes
po/pot file attributes for textconf and diff (ie, make git diff on gettext files less useless)
# From http://stackoverflow.com/questions/2006351/gettext-po-files-under-version-control/11291001#11291001
[diff "msgcat"]
textconv = msgcat --no-location --no-wrap --sort-output
@azizur
azizur / Creating a static copy of a dynamic website.md
Last active November 7, 2024 17:32
Creating a static copy of a dynamic website

The command line, in short…

wget -k -K -E -r -l 10 -p -N -F --restrict-file-names=windows -nH http://website.com/

…and the options explained

  • -k : convert links to relative
  • -K : keep an original versions of files without the conversions made by wget
  • -E : rename html files to .html (if they don’t already have an htm(l) extension)
  • -r : recursive… of course we want to make a recursive copy
  • -l 10 : the maximum level of recursion. if you have a really big website you may need to put a higher number, but 10 levels should be enough.
@pounard
pounard / gist:6f620cc38063d1a652d1
Created February 3, 2015 11:12
mimemail-7.x-1.0-beta1 -mailsystem
diff -urN mimemail.orig//mimemail.info mimemail//mimemail.info
--- mimemail.orig//mimemail.info 2015-01-12 12:06:10.000000000 +0100
+++ mimemail//mimemail.info 2015-01-12 12:08:23.000000000 +0100
@@ -1,6 +1,5 @@
name = Mime Mail
description = Send MIME-encoded emails with embedded images and attachments.
-dependencies[] = mailsystem
package = Mail
core = 7.x
@AkshayKalose
AkshayKalose / ajax_example.info.yml
Last active November 23, 2022 13:40
Drupal 8 - Ajax Example
name: 'Ajax Example'
description: 'Just an Ajax Example'
core: 8.x
type: module
@DavidHernandez
DavidHernandez / d7-autologin.php
Created October 16, 2014 17:19
This is another PoC for the SA-CORE-2014-005 vulnerability. Instead of updating the users table, activates an anonymous session to change your session into admin.
<?php
/**
* D7 autologin.
* Exploits SA-CORE-2014-005 to change your anonymous session into an uid 1 session.
* In order to work, first you need to have an anonymous session in the sessions table.
* One way to achieve this is to go to the update.php page.
*
* Usage: php d7-autologin.php http://example.com 127.0.0.1
*
@milankragujevic
milankragujevic / drupal_passChange.php
Last active October 4, 2024 15:09
Exploiting Drupal 7's SQL Injection vulnerability to change the admin user's password. http://milankragujevic.com/post/66
<?php
/********************************************************
* Drupal 7 SQL Injection vulnerability demo
* Created by Milan Kragujevic (of milankragujevic.com)
* Read more at http://milankragujevic.com/post/66
* This will change the first user's username to admin
* and their password to admin
* Change $url to the website URL
********************************************************/
$url = '[URL HERE]'; // URL of the website (http://domain.com/)
@fosron
fosron / drupalCoreVuln.txt
Created October 16, 2014 10:54
Drupal <= 7.31 core SQL vulnerability
SektionEins GmbH
www.sektioneins.de
-= Security Advisory =-
Advisory: Drupal - pre-auth SQL Injection Vulnerability
Release Date: 2014/10/15
Last Modified: 2014/10/15
Author: Stefan Horst [stefan.horst[at]sektioneins.de]
@addyosmani
addyosmani / README.md
Last active October 17, 2024 13:41 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version