Directly from CLI
alias x='exit'
funcsave x
or create a file in
~/.config/fish/functions
with name
| After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
| The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
| Database files have to be updated before starting the server, here are the steps that had to be followed: | |
| # need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
| brew unlink postgresql | |
| brew install postgresql@9.6 | |
| brew unlink postgresql@9.6 | |
| brew link postgresql |
| 1. Go to keymap.cson on your atom editor | |
| 2. Copy and paste : | |
| 'atom-text-editor[data-grammar="text html php blade"]:not([mini])': | |
| 'tab': 'emmet:expand-abbreviation-with-tab' | |
| 'atom-text-editor[data-grammar~="vue"]:not([mini])': | |
| 'tab': 'emmet:expand-abbreviation-with-tab' |
| <<APP>> change this variables |
Directly from CLI
alias x='exit'
funcsave x
or create a file in
~/.config/fish/functions
with name
redhat 旗下站点,提供多种语言的免费云空间。
| 1) Install MAMP normally | |
| 2) Download the latest binary of tomcat from http://tomcat.apache.org/ and extract it into the MAMP folder | |
| (you should now have a /Applications/MAMP/apache-tomcat-version folder) | |
| 3) Create a link to the apache-tomcat folder: | |
| ln -s /Applications/apache-tomcat-7.0.37/ tomcat | |
| 4) Make sure all the binaries are executable: | |
| cd /Applications/tomcat/bin |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
This uses Twitter Bootstrap classes for CodeIgniter pagination.
Drop this file into application/config.
| $.ajaxSetup({ | |
| beforeSend: function(xhr, settings) { | |
| function getCookie(name) { | |
| var cookieValue = null; | |
| if (document.cookie && document.cookie != '') { | |
| var cookies = document.cookie.split(';'); | |
| for (var i = 0; i < cookies.length; i++) { | |
| var cookie = jQuery.trim(cookies[i]); | |
| // Does this cookie string begin with the name we want? | |
| if (cookie.substring(0, name.length + 1) == (name + '=')) { |