Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
$(document).ready(function() { | |
// add a hash to the URL when the user clicks on a tab | |
$('a[data-toggle="tab"]').on('click', function(e) { | |
history.pushState(null, null, $(this).attr('href')); | |
}); | |
// navigate to a tab when the history changes | |
window.addEventListener("popstate", function(e) { | |
var activeTab = $('[href="' + location.hash + '"]'); | |
if (activeTab.length) { | |
activeTab.tab('show'); |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
if __name__ == '__main__': | |
file = open("heartbleed.txt") | |
lines = "" | |
for line in file: | |
aux = list(line) | |
for i in range(len(aux)): | |
if aux[i] == "a": |
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gYdABEHBG4brgAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAlWSURBVHja7d0hS2txHMfhs+uCIL4Ai2AwGCwKKgwUbAPbgiIIwhA0iAbLQNPAZrGIWOaKZSBYDILLFhEGgt20gZpWva/gXn7jnqPX7XnyFzn+9cCHfzm5JEk+EwAABsYvRwAAIAABABCAAAAIQAAABCAAAAIQAAABCACAAAQAQAACACAAAQAQgAAACEAAAAQgAAACEABAAAIAIAABABCAAAAIQAAABCAAAAIQAAABCACAAAQAQAACACAAAQAQgAAACEAAAAQgAAACEABAAAIAIAABABCAAAAIQAAABCAAAAIQAAABCACAAAQAQAACACAAAQAQgAAACEAAAAQgAIAABABAAAIAIAABABCAAAAIQAAABCAAAAIQAAABCACAAAQAQAACACAAAQAQgAAACEAAAAQgAIAABABAAAIAIAABABCAAAAIQAAABCAAAAIQAAABCACAAAQAQAACACAAAQAQgAAACEAAAAEIAIAABABAAAIAIAABABCAAAAIQAAABCAAAAIQAAABCACAAAQAQAACACAAAQAQgAAACEAAAAEIAIAABABAAAIAIAABABCAAAAIQAAABCAAAAIQAAABCACAAAQAQAACABCTdwQAfzcxMRHeFgqF8Pbx8TG8fX5+zuR3W1hYCG/n5ubC21arFd42m80f9f9QKpXC21wuF942Gg0vG1/GDSAAgAAEAEAAAgAgAAEAEIAAAAhAAAAEIAAAAhAAAAEIAIAABAAgDbkkST4dAzBohoaGwtuHh4fwdnZ2Nrw9ODgIb09OTsLb1dXV8Pby8jK8rdVq4e36+np4e3h4GN6enp5m8v+wsb |
Baixe o projeto: https://www.dropbox.com/s/ep3t7h12ypkottg/flisol-cert.tar.bz2
apt-get install php5 php5-gd
)img/modelo.jpg
. Use o mesmo tamanho e formato para melhor qualidade do certificado../gerar.sh
. Esse script irá converter os dados para CSV e fazer um certificado para cada nome encontrado.public abstract class Api extends HttpServlet { | |
protected void responder(JSONObject resultado, HttpServletResponse response, String callback) { | |
try { | |
response.setContentType("text/javascript;charset=utf-8"); | |
response.setHeader("Access-Control-Allow-Headers", "Content-Type, x-xsrf-token"); | |
PrintWriter out = response.getWriter(); | |
String saida = callback + "(" + resultado + ");"; | |
out.print(saida); | |
} catch (IOException e) { |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import random | |
questoes_disponiveis = [1, 2, 3, 4, 5, 6, 7, 8, 9] | |
questoes_escolhidas = [] | |
i = 0 | |
while i < 5: | |
rand = random.randrange(len(questoes_disponiveis)) |
import os | |
if __name__ == '__main__': | |
os.system("cat %s" % os.path.abspath(__file__)) | |
exit(0) | |
print "hello world." |