Skip to content

Instantly share code, notes, and snippets.

@AnnoyingTechnology
AnnoyingTechnology / lighttpd.conf
Created February 23, 2015 19:47
lighttpd.conf development for Phalcon & Polyfony
server.modules = ( "mod_cgi", "mod_fastcgi", "mod_accesslog", "mod_rewrite" )
server.port = 80
server.document-root = "/opt/local/www/"
server.errorlog = "/opt/local/var/log/lighttpd.error.log"
server.follow-symlink = "enable"
dir-listing.hide-dotfiles = "enable"
dir-listing.activate = "enable"
index-file.names = ( "index.html", "index.php" )
static-file.exclude-extensions = ( ".php" )
#cgi.assign = ( ".php" => "/opt/local/bin/php-cgi56" )
@AnnoyingTechnology
AnnoyingTechnology / php-fpm.conf
Last active August 29, 2015 14:16
php-fpm.conf development for Phalcon & Polyfony
[global]
error_log = log/php56/php-fpm.log
syslog.ident = php56-fpm
daemonize = yes
[www]
user = nobody
group = nobody
listen = 127.0.0.1:9000
pm = dynamic
@AnnoyingTechnology
AnnoyingTechnology / php.ini
Last active August 29, 2015 14:16
PHP.ini development for Phalcon & Polyfony
short_open_tag = Off
date.timezone = Europe/Paris
error_reporting = E_ALL
error_log = /opt/local/var/log/php.log
display_errors = On
html_errors = On
log_errors = On
max_execution_time = 60
@AnnoyingTechnology
AnnoyingTechnology / gist:f718a079513eeb7b548b
Last active August 29, 2015 14:16
PHP + lighttpd via Mac ports
sudo port install lighttpd php56 php56-cgi php56-curl php56-exif \
php56-fpm php56-gd php56-http2 php56-iconv php56-lzf php56-mbstring \
php56-mcrypt php56-memcache php56-opcache php56-phalcon php56-soap \
php56-sqlite php56-suhosin php56-xdebug php56-zip
@AnnoyingTechnology
AnnoyingTechnology / debian9-post-install-script-second.sh
Last active August 3, 2017 15:59
A post installation script (second part, that is run as a normal user)
#!/bin/bash
# This script NOT be run as root, but rather with your normal user
# Next step would be to customize shortcuts for the system and the terminal
# Next step would be to add installed software to plank and make plank autostart at boot
# autostart plank at boot time
mkdir ~/.config/autostart/
- les cartes graphiques extra bas de gamme installées par défaut sur des machines hors de prix,
- les prix de la RAM et des disques dur/SDD à deux ou trois fois leurs prix de vente habituel
- Les limitations arbitraires en tout genre,
- L'absence de sortie combinée analogique + optique sur les entrées de gamme
- suppression de la sortie optique sur les derniers modèles
- la suppression du jack sur le dernier iPhone
- la présence d'un seul port sur certains ordinateurs portables qui auraient pu en recevoir 3 ou 4 sans réaliser de compromis
- les batteries inamovibles
- l'abandon du MagSafe
- les vis propriétaires
Software
Apple destroys and dumbs down critical softwares.
Recently the Disk Utility got shot by Apple dumbing down strategy. RAID capabilities removes, window not resizable anymore…
Apple stopped developing their desktop/laptop OS, dumbing it down and getting it more like iOS.
Apple removed (hide) the possibility to run any application that didn't come from the AppStore on MacOS
Installing a software, or running a simple update requires you to have an internet connexion and an Apple ID (account).
MacOS, in 2017 still can't play half the video codecs without using third party software like VLC.
/************
*** label ***
************/
.label-dark-orange, .label-orange, .label-dark-yellow, .label-yellow, .label-lime-green,
.label-green, .label-dark-green, .label-cyan, .label-blue, .label-dark-blue, .label-blue-green,
.label-purple, .label-fushia, .label-red, .label-dark-red, .label-light-grey, .label-carmin-red,
.label-grey, .label-dark-grey, .label-black {
color: #ffffff;
}
@AnnoyingTechnology
AnnoyingTechnology / etc issue
Created January 17, 2018 11:54
OVH reboot serveur malgré banner
```
___ _____ _____ _____ _ _ _____ _____ _____ _ _
/ _ \_ _|_ _| ___| \ | |_ _|_ _| _ | \ | |
/ /_\ \| | | | | |__ | \| | | | | | | | | | \| |
| _ || | | | | __|| . ` | | | | | | | | | . ` |
| | | || | | | | |___| |\ | | | _| |_\ \_/ / |\ |
\_| |_/\_/ \_/ \____/\_| \_/ \_/ \___/ \___/\_| \_/
______ _ _ _
@AnnoyingTechnology
AnnoyingTechnology / Comparison of UNIX-based Email solutions.md
Last active March 28, 2018 09:27
Comparison of UNIX-based Email solutions as of 2018

Having to migrate two email servers this year, here's a summary of my options (might not be relevent to your needs) :

A) Custom

Distro : Debian 9 (raw)
MTA : Postfix + Dovecot
Antispam : Spamassassin
Antivirus : Amavis
Webmail : After Logic's WebMail Lite + Lighttpd + SQLite
Monitoring : Munin
Signing & such : SPF, DKIM, DMARC