This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# loadkeys br-abnt2 | |
REDE | |
# systemctl start dhcpcd # Habilita o dhcpcd | |
Testando a conexão: | |
# ping -c3 google.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Primeiro repositório: | |
touch README.md | |
git init | |
git add README.md | |
git commit -m "first commit" | |
git remote add origin https://github.com/YuriFontella/algum-repositorio.git | |
git push -u origin master | |
Instalando o Git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { ActivatedRoute, Params } from '@angular/router'; | |
import { FileUploader } from 'ng2-file-upload'; | |
import { ProfileService } from './profile.service'; | |
@Component({ | |
selector: 'app-profile', | |
templateUrl: './profile.component.html', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://br.archive.ubuntu.com/ubuntu/ wily main restricted | |
deb-src http://br.archive.ubuntu.com/ubuntu/ wily main restricted | |
deb http://br.archive.ubuntu.com/ubuntu/ wily-updates main restricted | |
deb-src http://br.archive.ubuntu.com/ubuntu/ wily-updates main restricted | |
deb http://br.archive.ubuntu.com/ubuntu/ wily universe | |
deb-src http://br.archive.ubuntu.com/ubuntu/ wily universe | |
deb http://br.archive.ubuntu.com/ubuntu/ wily-updates universe | |
deb-src http://br.archive.ubuntu.com/ubuntu/ wily-updates universe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 2; | |
error_log /opt/nginx/logs/error.log; | |
pid /opt/nginx/logs/nginx.pid; | |
events { | |
use epoll; | |
worker_connections 1024; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User < ActiveRecord::Base | |
has_many :activities | |
# Ativamente... os que eu sigo | |
has_many :active_relationships, class_name: 'Relationship', foreign_key: 'follower_id', dependent: :destroy | |
has_many :following, through: :active_relationships, source: :followed | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id":9, | |
"name":"Teste", | |
"public":"0", | |
"slug":"teste", | |
"description":"Teste", | |
"indication":"public", | |
"sinopse":null, | |
"category":"Drama", | |
"ratings_count":0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
selector: textarea.redactor | |
theme: modern | |
statusbar: false | |
toolbar1: insertfile undo redo | styleselect | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | |
toolbar2: print searchreplace media | forecolor backcolor emoticons | fontsizeselect fontselect | |
plugins: | |
- autoresize | |
- advlist | |
- autolink |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
error_log /opt/nginx/logs/error.log; | |
pid /opt/nginx/logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Formulário | |
<%= form_tag invites_path, class: 'ui invite' do %> | |
<div class="ui action input" style="width:45%"> | |
<%= text_field_tag 'email', nil, placeholder: "E-mail..." %> | |
<div class="ui icon button refresh" type="submit"><i class="mail icon"></i></div> | |
</div> | |
<% end %> | |
# Controller |