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 / switching-from-macos-to-debian-may-2018-guide.md
Last active September 4, 2018 12:08
Switching from macOS to Debian 9 (2018)

Switching from macOS to Debian (September 2018 Guide)

I've been an Apple « fanboy » for almost 20 years now, but in the last few years everything Apple seems to take the wrong direction, my admiration for Apple transformed into irritation, sadness and despair. We've all put up with a lot of Apple's dick moves and screwed-up choices, but no more. It is time to leave Apple and take action, switching to what seems to be the most decent alternative for me : Debian. (Altough Elementary OS or Ubuntu would better suit most non power-user. This guide would still apply to them)

In this document (a work in progress) I'm going to list a few of the things that could bother you, switching from MacOS to Debian, and how to circumvent or fix them.

The installation process will not be covered, as it is explained in the official documentation. The gaming aspect will not be covered either, as the most obvious choice for that would be to have a decidated Windows system. I will mostly cover productivity features, and

@AnnoyingTechnology
AnnoyingTechnology / debian-10-post-install-script-first.sh
Last active September 6, 2018 09:49
Debian 10, install lovely software and tools
#!/bin/bash
# Compatible with Debian Buster (10) only (current testing).
# Does not work with Ubuntu 18.04, does not work with Debian 9.5 stretch.
# preliminary tool
apt install dirmngr
# add Flat Remix repo and keys
echo "deb http://ppa.launchpad.net/daniruiz/flat-remix/ubuntu $(lsb_release -sc) main" | tee /etc/apt/sources/list.d/flat-remix.list
@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;
}