- DOCTYPE
<!DOCTYPE html>
<html> </html>
- Making Comments:
# .pryrc checked into my project root | |
require 'rails/console/app' | |
include Rails::ConsoleMethods |
Authentication Protocol built on top of OAuth 2.0. AKA "Identity framework build on TOP of Oauth 2.0" It extends the authorization process of Oauth2.0 to implement its authentication. This facilitates the client to verify the end user identity against authentication performed by an authorization server. It also provides methods to transfer the end user information.
Some points about Oauth quick:
#!/usr/lib/ruby env | |
# Modified from https://gist.github.com/jpr5/4260656 | |
require 'rubygems' | |
require 'mechanize' | |
account = { | |
:email => "[email protected]", | |
:password => "123456", | |
} | |
agent = Mechanize.new |
Personalities : | |
md127 : inactive xvdi1[1](S) xvdi2[62](S) |
class jenkins::package { | |
package { | |
'jenkins' : | |
ensure => installed, | |
require => File['/var/lib/jenkins'], | |
} | |
file { '/var/lib/jenkins': | |
ensure => 'link', | |
target => '/mnt/jenkins', | |
before => Package['jenkins'], |
(Anchor[apt::key D50582E6 present] => Apt::Key[Add key: D50582E6 from Apt::Source jenkins] => File[jenkins.list] => Exec[apt_update] => Class[Apt::Update] => Stage[pre] => Stage[main] => Class[Jenkins::Repo::Debian] => Apt::Source[jenkins] => File[jenkins.list]) |
node default { | |
stage {"pre": before => Stage["main"]} | |
case $operatingsystem { | |
/(Ubuntu|Debian)/: { | |
class { 'apt': stage => 'pre', } | |
} | |
} |
41 /etc/init.d/tomcat7 stop | |
42 cd /var/lib/tomcat7/ | |
43 ls | |
44 cd webapps/ | |
45 ls | |
46 rm -rf ROOT | |
47 /etc/init.d/tomcat7 start |
# models.py | |
from django.db import models | |
from django.contrib.auth.models import User | |
from django.db.models.signals import post_save | |
class UserProfile(models.Model): | |
user = models.OneToOneField(User) | |
flip_databases = models.BooleanField() |