Skip to content

Instantly share code, notes, and snippets.

https://www.youtube.com/watch?v=0evi-iG-LbY
https://www.youtube.com/watch?v=23btisyx6Sk
https://www.youtube.com/watch?v=28VHypZfCpc
https://www.youtube.com/watch?v=54xVFe-wWKQ
https://www.youtube.com/watch?v=8BB8CTgW7hE
https://www.youtube.com/watch?v=aPba8jFRfCc
https://www.youtube.com/watch?v=bDdy9DqEYzk
https://www.youtube.com/watch?v=cdylLFTyyS0
https://www.youtube.com/watch?v=fMl6Hy4_krU
https://www.youtube.com/watch?v=iEzvR2Y_x8Q
gpg --fingerprint [email protected] :(
pub 4096R/17351899 2016-07-01
Empreinte de la clef = 6CBC 45EB A625 FBF3 513D 1227 749D 8972 1735 1899
uid YunoHost Security <[email protected]>
sub 4096R/446838AF 2016-07-01
@opi
opi / local.settings.php
Last active October 1, 2019 08:06
Drupal local settings
<?php
# Database
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'dbname',
'username' => 'dbuser',
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>GoLeaks</title>
<style type="text/css">
body {
background-color: #00d3e2;
color: #fff;
text-align: center;
@opi
opi / drupal7_view_mode.php
Created August 29, 2016 14:37
Drupal 7 custom view mode
<?php
/**
* Implements hook_entity_info_alter().
*
* Add view modes .
*/
function MYMODULE_entity_info_alter(&$entity_info) {
// Add 'listing' view mode
$entity_info['node']['view modes']['listing'] = array(
@opi
opi / git_log_by_day.sh
Created October 5, 2016 12:11
Git log day-by-day, with hours
#!/bin/bash
# Generates changelog day by day
echo "CHANGELOG"
echo ----------------------
git log --no-merges --format="%cd" --date=short | sort -u -r | while read DATE ; do
echo
echo [$DATE]
GIT_PAGER=cat git log --no-merges --format=" * %aD %s" --date="local" --since="$DATE 00:00:00" --until="$DATE 24:00:00"
done
@opi
opi / gist:ea1d3ddf75c8ec7f544ac886493d41b7
Last active October 27, 2016 09:14
/etc/apache2/conf-available/ssl_common.conf
# From https://mozilla.github.io/server-side-tls/ssl-config-generator/
# intermediate profile
# intermediate configuration, tweak to your needs
SSLProtocol all -SSLv3
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
SSLHonorCipherOrder on
SSLCompression off
# SSLSessionTickets off

Installation d'Apache Solr sur Debian Jessie (pour Drupal 7)

Il semble assez courant d'utiliser le moteur d'indexation Apache Solr pour Drupal via la panoplie de module autour de Search API.

Mais installer Solr n'est pas aussi simple qu'installer un module Drupal. Voici donc un guide d'installation, basé sur Debian Jessie.

Pré-requis

Apache Solr en développé en Java, il nous faut donc installer la plateforme d'execution JRE (Java Runtime Environment).

#!/usr/bin/env python3
import urllib.request
import urllib.error
# Free mobile credentials
free_user = "XXX"
free_pass = "XXX"
# Website to ping
sites = [
pub 4096R/C061B01D 2013-06-20
Empreinte de la clef = A975 C4B7 A021 5442 0D36 0E92 246F 5501 C061 B01D
uid [email protected] <[email protected]>
sub 4096R/9D9BDFDF 2013-06-20