- Go to http://cloud.google.com/console and log-in
- Activate youtube-data API (APIs & auth -> APIs)
- Register a new app (APIs & auth -> registered apps)
- Name it, select
native
Based on your issues in installing ncdu my recommendation would be to use du and sort on together. | |
For instance: | |
du /home | sort -rn (will search all files/directories under /home and sort them by largest to smallest. | |
du -h /home | sort -rh (same but will show it in MB/KB/etc) - Note this requires coreutils 7.5 or newer (sort --version to check) | |
You can replace /home with any directory of your choice. |
<?php | |
function readline($prompt = '') | |
{ | |
echo $prompt; | |
return rtrim(fgets(STDIN), "\n"); | |
} | |
?> |
As William Durand was recently explaining in his SOS, he "didn't see any other interesting blog post about REST with Symfony recently unfortunately". After spending some long hours to implement an API strongly secured with oAuth, I thought it was time for me to purpose my simple explanation of how to do it.
You might have already seen some good explanation of how to easily create a REST API with Symfony2. There are famous really good bundles a.k.a. :
Hello noob, tu en a marres d'avoir l'erreur
Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need X more bytes)
lorsque tu essayes de générer une clé gpg ? Ce tuto est fait pour toi !
- Installer les paquets nécessaires
#!/bin/bash | |
FONT_NAME="SourceCodePro" | |
URL="https://github.com/adobe-fonts/source-code-pro/archive/1.017R.tar.gz" | |
mkdir /tmp/$FONT_NAME | |
cd /tmp/$FONT_NAME | |
wget $URL -O "`echo $FONT_NAME`.tar.gz" | |
tar --extract --gzip --file ${FONT_NAME}.tar.gz | |
sudo mkdir /usr/share/fonts/truetype/$FONT_NAME | |
sudo cp -rf /tmp/$FONT_NAME/. /usr/share/fonts/truetype/$FONT_NAME/. |
Display the daily meal of Mamacake (ie. https://www.facebook.com/MamaCake.Paris - MamaCake Paris - Restaurant sans gluten).
https://www.autonomail.com/blog/freeing-disk-space-with-the-packagekit-cache/
PackageKit does not offer a built in way to clean the updates. So we have to resort to a dumb fix. First delete the whole cache directory:
$ rm -r /var/cache/PackageKit