- Install Sublim Text
- In the
Sublim Text
console (View/Show Console
) run the command copied from the official website
After the installation as finished press cmd+mak+p
- Search and launch
Package Controll: Install Package
- Search and install
Predawn
theme - Search and install
Predawn Monokai
theme - Search and install
ApacheConf.tmLanguage
theme - Download the Fira Code font files (ttf for macOS)
- Finaly, add a Terminal shortcut
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
(create the folder bin if not existing)
Finaly, you can copy this configuration into yours (by pressing cmd+,
):
{
"theme": "predawn-DEV.sublime-theme",
"color_scheme": "Packages/Predawn Monokai/Predawn Monokai.tmTheme",
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.o",
"*.a",
"*.lib",
"*.so",
"*.dylib",
"*.ncb",
"*.sdf",
"*.suo",
"*.pdb",
"*.idb",
".DS_Store",
"*.class",
"*.psd",
"*.db",
"*.sublime-workspace"
],
"font_face": "Fira Code",
"font_size": 17,
"ignored_packages":
[
"Vintage"
],
"open_files_in_new_window": false,
"word_wrap": false,
"show_definitions": false
}
In etc/apache2/httpd.conf
, uncoment these lines:
- ~ line 173:
LoadModule userdir_module libexec/apache2/mod_userdir.so
- ~ line 175:
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
- ~ line 176:
LoadModule php5_module libexec/apache2/libphp7.so
- ~ line 510:
Include /private/etc/apache2/extra/httpd-userdir.conf
In /etc/apache2/extra/httpd-userdir.conf
, uncomment this line:
- ~ line 16:
Include /private/etc/apache2/users/*.conf
In /etc/apache2/users/
, create a file named MyUserName.conf
and append it:
<Directory "/Users/MyUserName/Sites/">
Options +Indexes +MultiViews +FollowSymLinks +SymLinksIfOwnerMatch +ExecCGI
AllowOverride All
Require all granted
# Require local
</Directory>
(where MyUserName
is your session username).
Finaly create a Sites
folder in your user root directory.
Restart apache in the Terminal
: sudo apachectl restart
.
Go to http://localhost/~MyUserName
in your favourite browser.
- install MySQL the
DMG
version - add
export PATH="/usr/local/mysql/bin:$PATH"
to your.bash_profile
For old versions:
- in the
Terminal
runsudo mysqld_safe --skip-grant-tables
- in another
Terminal
tab runmysql -u root
- then type these commands one by one:
use mysql;
update user set authentication_string=password('azerty') where user='root';
(whereazerty
is your new password)FLUSH PRIVILEGES;
quit
sudo /usr/local/mysql/support-files/mysql.server start
mysql -u root -h 127.0.0.1 -p
- type your password
ALTER USER 'root'@'localhost' IDENTIFIED BY 'azerty';
- check if the file
.bash_profile
exist into your user folder (/Users/MyUserName/.bash_profile
) - if not create it by running:
touch /Users/MyUserName/.bash_profile
- in the
Terminal
runcurl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash
(you may need sudo) - verify installation by running:
command -v nvm
(it should returnnvm
) - Install the latest by
nvm install stable
- in the
Terminal
, go into~/.ssh/
- type
ssh-keygen -t rsa -b 4096 -C "your@email.com"
- then choose a name for your ssh key
- then chosse a passphrase (or not)
- then enable it
ssh-add -K ~/.ssh/ssh_key_name
If your wallpaper is forced by admin go to /Library/Desktop Pictures
. ❤️