- DebProotstrap : https://github.com/gboddin/debprootstrap
- Debproot bundles : https://debproot.siwhine.net/bundles/
- Proot : http://proot.me
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
Package: * | |
Pin: release o=Percona Development Team | |
Pin-Priority: 1001 |
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
<VirtualHost *:80> | |
DocumentRoot ROOT_DIRECTORY | |
<Directory ROOT_DIRECTORY> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny | |
allow from all | |
Require all granted | |
</Directory> | |
</VirtualHost> |
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
composer global require drush/drush:dev-master | |
drush dl drupal-8.0.x | |
cd drupal-8.0.x-dev | |
drush site-install standard --account-name=admin --account-pass=admin --db-url=mysql://boddigr:xxxxxx@localhost/boddigr_d8 | |
drupal_dev_lighttpd #see : https://gist.github.com/gboddin/20a900c2d3c65a3a6615 |
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
<?php | |
// or how to explain to compulsive gamer that ... random is ... not that random ... | |
$number_of_generation = isset($_GET['nb']) ? (int) $_GET['nb'] : 2; | |
header('Content-Type: text/plain'); | |
for ($iteration = 0; $iteration < $number_of_generation ; $iteration++) { | |
echo implode(' - ', getUniqueNumberSequence(5, 1, 50)); | |
echo ' * '; | |
echo implode(' - ', getUniqueNumberSequence(2, 1, 11)); |
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 | |
# will start a multithreaded instance of the local installation | |
# for ubuntu/debian users | |
# apt-get install lighttpd php5-cgi | |
echo "Locating php-cgi :" | |
if which php-cgi; then | |
php_cgi_path=$(readlink -f `which php-cgi`) | |
else | |
exit 1 | |
fi |
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
# this file go in ~/.zshrc | |
# if you use the debian/ubuntu package zsh-antigen : | |
source /usr/share/zsh-antigen/antigen.zsh | |
# otherwise | |
# source path/to/antigen.zsh | |
antigen use oh-my-zsh | |
antigen bundle git |
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
# bootstrap a rpm based distro : | |
yum -y --releasever=19 --nogpg --installroot=/srv/mycontainer --disablerepo='*' --enablerepo=fedora install systemd passwd yum fedora-release vim-minimal | |
systemd-nspawn -bD /srv/mycontainer | |
# bootstrap a deb based distro : | |
debootstrap --arch=amd64 unstable ~/debian-tree/ | |
systemd-nspawn -D ~/debian-tree/ | |
# bootstrap an arch based distro : | |
pacstrap -c -d ~/arch-tree/ base |
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
mkdir ~/.composer/vendor/bin -p | |
wget https://getcomposer.org/composer.phar -O ~/.composer/vendor/bin/composer | |
chmod +x ~/.composer/vendor/bin/composer | |
echo "export PATH=\${PATH}:~/.composer/vendor/bin" >> ~/.bashrc | |
. ~/.bashrc | |
## example : | |
# composer global require "phing/phing" | |
# boddigr@boddigr-laptop-01:~/Projects/CoreCms$ composer global require "phing/phing" |
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
VirtualAddrNetworkIPv4 10.192.0.0/10 | |
AutomapHostsOnResolve 1 | |
TransPort 9040 | |
DNSPort 53535 |