create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| 😄 | 😆 | 😊 | 😃 |
😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 | | 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷
😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨
access_key_id: xxx | |
secret_access_key: yyy |
You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>jquery.tokeninput.js with angular.js</title> | |
<link rel="stylesheet" type="text/css" href="components/jquery-tokeninput/styles/token-input.css"/> | |
<link rel="stylesheet" type="text/css" href="components/jquery-tokeninput/styles/token-input-facebook.css"/> | |
<script type="text/javascript" src="components/jquery/jquery.js"></script> | |
<script type="text/javascript" src="components/jquery-tokeninput/src/jquery.tokeninput.js"></script> |
# Set up the application | |
app = angular.module('ratingRampage', []) | |
# This is an injectable property | |
app.value 'Authentication', {} | |
# Add a directive so that if we see a csrf-token attribute, this gets set | |
app.directive 'csrfToken', (Authentication) -> | |
(scope, element, attrs) -> | |
Authentication.csrf_token = attrs.csrfToken |
import code; code.interact(local=dict(globals(), **locals())) |
First, check your current config (example output in homebrew.mxcl.postgresql.plist.xml
lower down in this gist):
cat ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
Most importantly, note the -D /usr/local/var/postgres
argument.
Second, shut down your current PostgreSQL.
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
Ansible playbook to setup HTTPS using Let's encrypt on nginx. | |
The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS. | |
The server pass A rating on [SSL Labs](https://www.ssllabs.com/). | |
To use: | |
1. Install [Ansible](https://www.ansible.com/) | |
2. Setup an Ubuntu 16.04 server accessible over ssh | |
3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain | |
4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder) |