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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCrrhualyEa46fNvKDlspg2u2irEjYZFl0LS6eAcRe6QmY35JWyTqOvwqOuxREhhpqh/pFZgNLto/sUpwthTILvP+1vG2/JFxspdJiwZxoudQr9qMi5raM96WPIDFFXGVao9pgidAxrexm2Ld9zwU6p0ztGn0VZ9OSyNavEB664lUk+pQXKZ9Ax6TmBy7Tdfs+pRBqRQRpp9yKKq7PzXrPq8Wi1UNuxoKc0KIdIhvMJkt7wyTYXixHjQz2M141zEn4+Gkc5l/ceL/0dSxH3qiJbzs9HOGQIUdxy//urbAlYl31olPvVCoqyDwb7AbTXGGAQ1zcxd+5PkC/RdYJu1rYf jfernando@jfernando-xps |
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
cat ~/.ssh/id_rsa.pub | ssh root@<domain> "sudo sshcommand acl-add dokku <description>" | |
#Description can be anything (e.g. your user name or location |
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
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
try: | |
from subprocess import getoutput | |
except ImportError: | |
from commands import getoutput | |
from dnslib import RR,QTYPE,RCODE,A,parse_time |
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
#--------------------------------------------------------------------- | |
# Example configuration for a possible web application. See the | |
# full configuration options online. | |
# | |
# http://haproxy.1wt.eu/download/1.4/doc/configuration.txt | |
# | |
#--------------------------------------------------------------------- | |
global | |
log 127.0.0.1 local2 |
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
FROM nginx | |
EXPOSE 80 | |
ADD . /usr/share/nginx/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
from matplotlib.pyplot import cm | |
color=cm.rainbow(np.linspace(0,1,len(emotions))) | |
color = dict(zip(emotions, color)) | |
color |
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
# Block out any script trying to base64_encode data within the URL. | |
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] | |
# Block out any script that includes a <script> tag in URL. | |
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] | |
# Block out any script trying to set a PHP GLOBALS variable via URL. | |
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] | |
# Block out any script trying to modify a _REQUEST variable via URL. |
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
SCL - D1 | |
SDA - D2 |
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
from __future__ import print_function | |
import csv | |
from jinja2 import Template | |
with open('PC Members.tsv') as f: | |
contacts = csv.DictReader(f, delimiter='\t') | |
with open('index.j2') as templatefile: | |
template = Template(templatefile.read()) |
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
swagger: "2.0" | |
info: | |
version: 0.1.0 | |
title: SCANER API | |
license: | |
name: MIT | |
url: http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT | |
securityDefinitions: {} | |
consumes: | |
- application/json |