Skip to content

Instantly share code, notes, and snippets.

View renandincer's full-sized avatar
:octocat:
Focusing

Renan Dincer renandincer

:octocat:
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am renandincer on github.
  • I am dincer (https://keybase.io/dincer) on keybase.
  • I have a public key whose fingerprint is 6558 BA50 06B4 AF05 E6EC 239B 1BDD 0A30 9F62 FDAF

To claim this, I am signing this object:

execute pathogen#infect()
call pathogen#helptags()
syntax on
set foldenable
set tabstop=2
set number
set showcmd
set cursorline
filetype indent on
set wildmenu

###FIRST INTERFACE:

HWADDR=00:25:90:5C:8B:36
TYPE=Ethernet
BOOTPROTO=none
NAME=enp193s0f0
UUID=ed00d8ba-12b5-4a48-a8a2-30a9d384b777
ONBOOT=yes
USERCTL=no
MASTER=bond0
Textbooks
http://www.amazon.com/Introduction-Practice-Statistics-David-Moore/dp/1429274077
http://www.amazon.com/Data-Structures-Problem-Solving-Using/dp/0321541405
http://www.amazon.com/French-Written-Review-Fifth-English/dp/0030758998
http://www.amazon.com/Diversite-Nouvelle-Francophone-Intermediate-Anthology/dp/0395909333
http://www.amazon.com/Introduction-Computing-Programming-Java-Multimedia/dp/0131496980/
http://www.amazon.com/Intermediate-Microeconomics-Microsoft-Humberto-Barreto/dp/B007SRZS8W
http://www.amazon.com/Art-History-Vol-1-3rd/dp/0131743201
http://www.amazon.com/Art-History-3rd-Marilyn-Stokstad/dp/013199140X
http://www.amazon.com/Learning-UML-2-0-Russ-Miles/dp/0596009828
## API Documentation
All API requests are made to the hostname `https://api.teal.cool`. The API response is not guaranteed when using http. Teal is configured to use [modern ciphers only](https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=nginx-1.9.5&openssl=1.0.1e&hsts=yes&profile=modern) with HTTPS.
### Versioning
Teal web API is not currently versioned.
### Rate Limiting/Bursting
The API enforces a rate limit of around 3 requests/sec per IP. Bursting is provided as a convenience and for speedier uploads. Continuous usage above the rate limit might return a 403 status code.
### Authentication and Authorization
Authorization on Teal is done either using cookies or keys passed through request headers.
require 'mango'
def generate_login_token
self.login_token = SecureRandom.urlsafe_base64(16,false)
self.login_token_gen = Time.now
self.save
return self.login_token
end