Url::fromUri('mailto:contact@ows.fr')
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
losetup --partscan --find --show disk.img | |
mount /dev/loop0p1 /mnt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host * | |
Compression yes | |
KeepAlive yes | |
ServerAliveInterval 10 | |
GSSAPIAuthentication no | |
AddKeysToAgent yes | |
AddressFamily inet | |
ServerAliveInterval 300 | |
ServerAliveCountMax 2 | |
ControlPersist 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rule for legitimate ACME Challenge requests (like /.well-known/acme-challenge/xxxxxxxxx) | |
# We use ^~ here, so that we don't check other regexes (for speed-up). We actually MUST cancel | |
# other regex checks, because in our other config files have regex rule that denies access to files with dotted names. | |
location ^~ /.well-known/acme-challenge/ { | |
# Prevent HTTP Auth | |
auth_basic off; | |
allow all; | |
# Separate logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script de déploiement pour un projet Drupal versionné sur un repo Git | |
# avec gestion des releases et des sauvegardes. | |
APP_ENVIRONNEMENT="PROD" | |
APP_PATH="/var/www/www.myproject.com" | |
APP_CURRENT_PATH="current" | |
APP_RELEASES_PATH="releases" | |
APP_BACKUP_PATH="backup" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################### | |
### Deployment script ### | |
######################### | |
APP_PATH="/var/www/myproject/www" | |
APP_URL="www.myproject.com" | |
APP_POST_DEPLOY_SCRIPT="$APP_PATH/scripts/myproject_update.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* [user@fedora-19 ~]$ cat > charged-ghbn.c << EOF */ | |
#include <netdb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#define CANARY "in_the_coal_mine" | |
struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create FreeDOS bootable ISO from FDOS OEM CD builder | |
# @see http://www.fdos.org/bootdisks | |
mkisofs -o fdoem.iso -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -N -J -r -c _$ -hide-joliet _$ -hide _$ CDROOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
label freedos | |
menu label ^FreeDOS | |
kernel path/memdisk | |
initrd path/freedos.iso | |
append iso raw |
NewerOlder