Skip to content

Instantly share code, notes, and snippets.

@JordanDelcros
Last active March 24, 2021 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JordanDelcros/165b838da7be87c9813168c08da03a67 to your computer and use it in GitHub Desktop.
Save JordanDelcros/165b838da7be87c9813168c08da03a67 to your computer and use it in GitHub Desktop.
After OSX Install

Softwares to install

Sublim Text

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
}

Apache & localhost & PHP

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.

MySQL

  • install MySQL the DMG version
  • add export PATH="/usr/local/mysql/bin:$PATH" to your .bash_profile

For old versions:

  • in the Terminal run sudo mysqld_safe --skip-grant-tables
  • in another Terminal tab run mysql -u root
  • then type these commands one by one:
  • use mysql;
  • update user set authentication_string=password('azerty') where user='root'; (where azerty 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';

Node and npm (using nvm)

  • 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 run curl -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 return nvm)
  • Install the latest by nvm install stable

SSH Keys

  • 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

Wallpaper

If your wallpaper is forced by admin go to /Library/Desktop Pictures. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment