Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| 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 |
| vi /etc/environment | |
| add these lines... | |
| LANG=en_US.utf-8 | |
| LC_ALL=en_US.utf-8 |
| { | |
| "parser": "babel-eslint", | |
| "plugins": [ | |
| "react", | |
| "react-native" | |
| ], | |
| "parserOptions": { | |
| "ecmaFeatures": { | |
| "jsx": true, | |
| "modules": true |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| # This is just a cheat sheet: | |
| # On production | |
| sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
| # On local | |
| scp -C production:~/database.sql.gz | |
| dropdb database && createdb database | |
| gunzip < database.sql.gz | psql database |
| <?php | |
| namespace AmceBundle\Command; | |
| class MyCommand | |
| { | |
| // ... | |
| protected function execute(InputInterface $input, OutputInterface $output) | |
| { |
| {% form_theme form 'theme.html.twig' %} | |
| {# the theme above will take care of rendering the input group #} | |
| {{ form(form) }} |
| var gulp = require('gulp'); | |
| var browserSync = require('browser-sync'); | |
| var reload = browserSync.reload; | |
| var shell = require('gulp-shell'); | |
| gulp.task('serve', ['dump'], function() { | |
| browserSync({ | |
| proxy: "local.symfony.domain/app_dev.php" | |
| }); |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "golang.org/x/oauth2" | |
| "log" | |
| "net/http" | |
| "net/http/httptest" | |
| "time" |
| package oauth2Sample | |
| imports ( | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "golang.org/x/oauth2" | |
| ) |