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
Toggle console | |
{ "keys": ["ctrl+alt+c"], "command": "show_panel", "args": {"panel": "console", "toggle": true} } | |
Autocomplete suggestions (for linux) | |
{ "keys": ["ctrl+space"], "command": "auto_complete" }, | |
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context": | |
[ | |
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" }, | |
{ "key": "auto_complete_visible", "operator": "equal", "operand": false }, |
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
* create a new repo on github (CLI) | |
git init | |
git config user.name "myName" (use the --global option to set has a global parameter) | |
git config user.email "[email protected]" | |
git add . | |
git commit -m "first commit" | |
git remote add origin [email protected]:Shaltz/myRepo.git | |
git push -u origin master |
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
sudo dosfsck -w -r -l -a -v -t /dev/sdc1 |
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
sudo su - | |
df -Th | |
umount 'mounted on name from df' | |
dosfsck -a 'FileSystem name from df' |
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
====== Installation poste Linux ====== | |
===== Quick version ===== | |
<code> | |
sudo apt-add-repository ppa:git-core/ppa ; sudo apt-get update ; sudo apt-get install vim build-essential curl httpie meld ruby chromium-browser pepperflashplugin-nonfree avahi-discover gimp inkscape imagemagick libav-tools vlc handbrake git-core gitg tig qreator shutter php5 php5-cgi; git config --global color.ui auto ; git clone https://github.com/creationix/nvm.git ~/.nvm ; cd ~/.nvm ; git checkout `git describe --abbrev=0 --tags` ; echo -e "source ~/.nvm/nvm.sh\nnvm use stable" >> ~/.bashrc ; . ~/.nvm/nvm.sh ; nvm install stable ; nvm use stable ; sudo npm install -g bower grunt-cli coffee-script httpster coffeelint | |
</code> | |
===== POSTINSTALL ===== | |
(http://itsfoss.com/things-to-do-after-installing-ubuntu-1504) |
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
Variables MAGIQUES (superGlobales) | |
$_SERVER : ce sont des valeurs renvoyées par le serveur. Elles sont nombreuses et quelques-unes d'entre elles peuvent nous être d'une grande utilité. | |
$_SERVER['REMOTE_ADDR']. Elle nous donne l'adresse IP du client qui a demandé à voir la page, ce qui peut être utile pour l'identifier. | |
$_ENV : ce sont des variables d'environnement toujours données par le serveur. C'est le plus souvent sous des serveurs Linux que l'on retrouve des informations dans cette superglobale. Généralement, on ne trouvera rien de bien utile là-dedans pour notre site web. | |
$_SESSION : on y retrouve les variables de session. Ce sont des variables qui restent stockées sur le serveur le temps de la présence d'un visiteur. Nous allons apprendre à nous en servir dans ce chapitre. | |
$_COOKIE : contient les valeurs des cookies enregistrés sur l'ordinateur du visiteur. Cela nous permet de stocker des informations sur l'ordinateur du visiteur pendant plusieurs mois, pour se souvenir de son nom par exemple. | |
$_GET |
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
restart apache server: sudo /etc/init.d/apache2 restart | |
show php infos in html page : <?php phpinfo(); ?> |
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
setxkbmap -option caps:super | |
Other example : | |
setxkbmap -option caps:escape | |
TO GET IT PERMANENTLY : | |
put it in : ~/.bash_proflie or ~/.profile | |
or in gnome-tweak, select "Make CapsLock an additional Super Key" in |
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
# Install packages | |
sudo apt-get install apache2 mysql-server mysql-client php5 php5-mysql php5-intl libapache2-mod-php5 phpmyadmin | |
# Access phpMyAdmin | |
http://serverIP/phpmyadmin/ | |
# If doesn't work, edit | |
sudo nano /etc/apache2/apache2.conf | |
# and add to the bottom of the file |
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
# Edit /etc/php5/apache2/php.ini | |
# & /etc/php5/cli/php.ini | |
uncomment date.timezone | |
# add | |
date.timezone = "Europe/Paris" |
OlderNewer