Skip to content

Instantly share code, notes, and snippets.

View dtarcz's full-sized avatar

David TARCZEWSKI dtarcz

View GitHub Profile
@dtarcz
dtarcz / artistes.php
Created November 16, 2015 09:46
mon code avec un peu de mise en forme pour l'exo des artistes...
<?php
$prenommoins = [];
$prenomplus = [];
$tableau_artistes = array('Michel'=>'520', 'Johnny'=>'100000', 'Tarrus'=>'230', 'Bob'=>'14444', 'Kurt'=>'2700', 'Queen'=>'20000');
foreach ($tableau_artistes as $key => $value) {
if ($value < 10000) {
echo "$key a vendu $value albums, donc moins de 10.000 albums, <br>";
$prenommoins[$key] = $value;
//$prenommoins = ($prenommoins++);
@dtarcz
dtarcz / git-go.sh
Created February 2, 2016 13:47
automate git create repo
#! /bin/bash
# Un script bash pour automatiser la creation de repository git
echo "On va demarrer git"
# Le nom du repo sera l'argument de la commande :
mkdir $1
# On va se placer dans le repo :
@dtarcz
dtarcz / gist:ceb5e4061a9b11ac75e8
Last active February 17, 2016 11:54
installer-spip
#! /bin/bash
#sudo apt-get install subversion
#sudo apt-get install subversion-tools
#cd /var/www/html/
#mkdir simplon-sem16
#cd simplon-sem16
mkdir spip
cd spip/
svn checkout svn://trac.rezo.net/spip/branches/spip-3-stable
@dtarcz
dtarcz / tuto-installer-simple-machine-forum.md
Last active March 24, 2016 16:00
tuto installer SMF (simple machine forum)

#Comment installer Simple Machine FORUM ##en ligne de commande

téléchargement de l'archive du CMS :

wget http://download.simplemachines.org/index.php/smf_2-0-11_install.tar.bz2

on vérifie que c'est bien installé :

ll

@dtarcz
dtarcz / liste-mods.txt
Created February 10, 2017 15:11
liste_mods_Minaventure_2017-02-10
ambience clone: from https://github.com/tenplus1/ambience.git
areas clone: from [email protected]:ShadowNinja/areas.git
awards clone: from https://github.com/minetest-mods/awards.git
bakedclay clone: from https://github.com/tenplus1/bakedclay.git
channels clone: from https://github.com/SmallJoker/channels.git
clean >> créé avec l'aide de fhwcat, récupéré le document de base sur https://forum.minetest.net/viewtopic.php?t=2777
email clone: from https://github.com/rubenwardy/email.git
farming clone: from https://github.com/tenplus1/farming.git
hopper clone: from https://github.com/tenplus1/hopper.git
irc clone: from https://github.com/minetest-mods/irc.git