Skip to content

Instantly share code, notes, and snippets.

View notFloran's full-sized avatar

Floran Brutel notFloran

View GitHub Profile
@notFloran
notFloran / Homebrew.md
Last active December 23, 2015 04:39 — forked from alanivey/Homebrew.md
Correct command

Prerequisites

Xcode

Go to http://developer.apple.com/downloads, log in with your Apple ID (free) and download the newest version of either Command Line Tools (OS X Lion) for Xcode or Command Line Tools (OS X Mountain Lion) for Xcode. Run the installer in the dmg and you'll have the LLVM compiler, make, and other build tools.

XQuartz

Install XQuarts to satisfy a library dependency for PHP.

@notFloran
notFloran / reboot_nb6.sh
Last active March 29, 2024 09:22
Script pour redémarrer une Neufbox v6 Infos : NB6-SER-r2 NB6-MAIN-R3.2.12
#!/bin/bash
WEBLOGIN=admin
WEBPASS=
IP=192.168.1.1
wget -qO- http://$IP/login --referer="http://$IP/login?page_ref=/reboot" "http://$IP/reboot" --post-data="method=passwd&zsid=&login=$WEBLOGIN&password=$WEBPASS&submit=" &> /dev/null
@notFloran
notFloran / neufbox_api.php
Created June 15, 2013 14:19
Connexion à l'API Neufbox
<?php
#Config
$apiUrl = "http://192.168.1.1/api/1.0/";
$user = "admin";
$password = "";
$tokenXML = simplexml_load_file( $apiUrl . "?method=auth.getToken" );
$token = $tokenXML->auth[0]->attributes()->token;
@notFloran
notFloran / ovh_update_drupal.php
Created May 15, 2013 07:18
PHP Script to automate the update of drupal core on ovh shared hosting without ssh access
<?php
$hostBdd = "localhost";
$nameBdd = "";
$userBdd = "";
$passwordBdd = "";
$urlDrupal = "http://ftp.drupal.org/files/projects/drupal-7.21.zip";
function backupFiles() {