| title | Git config |
|---|---|
| category | Git |
Ne pas oublier : l'aide en ligne de commande.
| http://sed.sourceforge.net/sed1line.txt | |
| ------------------------------------------------------------------------- | |
| USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005 | |
| Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5 | |
| Latest version of this file (in English) is usually at: | |
| http://sed.sourceforge.net/sed1line.txt | |
| http://www.pement.org/sed/sed1line.txt |
| <?php | |
| /** | |
| * Prevent Editing of a specified user | |
| * | |
| * This example shows how you can protect the original admin from being edited or deleted by anyone else | |
| */ | |
| add_filter('map_meta_cap', 'prevent_user_edit', 10, 4 ); | |
| function prevent_user_edit( $required_caps, $cap, $user_id, $args ){ | |
| $protected_user = 1; // ID of user not editable |
| #!/bin/bash | |
| # A bash script to update a Cloudflare DNS A record with the external IP of the source machine | |
| # Used to provide DDNS service for my home | |
| # Needs the DNS record pre-creating on Cloudflare | |
| # Proxy - uncomment and provide details if using a proxy | |
| #export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport> | |
| # Cloudflare zone is the zone which holds the record |
| #!/bin/bash | |
| SENDGRID_API_KEY="" | |
| EMAIL_TO="" | |
| FROM_EMAIL="" | |
| FROM_NAME="" | |
| SUBJECT="" | |
| bodyHTML="<p>Email body goes here</p>" |
| <?php | |
| /** | |
| * Plugin Name: Activate required plugins. | |
| * Description: Programmatically install and activate plugins based on a runtime config. | |
| * Version: 1.0 | |
| * Author: Hans Schuijff | |
| * Author URI: http://dewitteprins.nl | |
| * License: MIT | |
| * License URI: http://www.opensource.org/licenses/mit-license.php | |
| */ |
| # _*_ coding: utf-8 _*° | |
| # Copyright(C) 2021 lobstr | |
| from selenium import webdriver | |
| from selenium.webdriver.support import expected_conditions as EC | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.common.by import By | |
| from selenium.common.exceptions import NoSuchElementException | |
| import time | |
| import csv |
Please note I created that sheet as a personal side note/draft and not everything is fully tested. There could be errors or better things to do. So if you spot something wrong or something that can be improved, feel free to comment below and I will do the changes.
Image path: {{ file_url(content.field_name['#items'].entity.uri.value) }}
| server { | |
| include /var/aegir/config/includes/fastcgi_params.conf; | |
| limit_conn gulag 32; # like mod_evasive - this allows max 32 simultaneous connections from one IP address | |
| listen *:80; | |
| server_name wordpress.domain.name; | |
| root /var/www/siteroot; | |
| # Extra configuration from modules: | |
| include /var/aegir/config/includes/nginx_wp_include.conf; | |
| } |
| ####################################################### | |
| ### nginx.conf site wp vhost include start | |
| ####################################################### | |
| ### | |
| ### deny crawlers without 403 response | |
| ### | |
| if ($http_user_agent ~* (HTTrack|HTMLParser|libwww|wget) ) { | |
| return 444; | |
| } |