This file contains 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
<div class="container"> | |
{% for project in projects %} | |
{% if forloop.counter0|divisibleby:3 %} <div class="row text-center"> {% endif %} | |
<div class="col-md-4" onclick="window.location.href='{% url 'club:robotics_detail' project.id %}'" style="cursor: pointer"> | |
<div class="card"> | |
<img src="http://placehold.it/300X150" alt=""> | |
<div class="card-content"> | |
<br> | |
<h4>Project {{ forloop.counter }}</h4> | |
<hr> |
This file contains 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 selenium import webdriver | |
from selenium.webdriver import DesiredCapabilities | |
desired_capabilities = DesiredCapabilities.PHANTOMJS.copy() | |
desired_capabilities['phantomjs.page.customHeaders.User-Agent'] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) ' \ | |
'AppleWebKit/537.36 (KHTML, like Gecko) ' \ | |
'Chrome/39.0.2171.95 Safari/537.36' | |
driver = webdriver.PhantomJS(desired_capabilities=desired_capabilities) |
This file contains 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
This document is an attempt to define metrics quantifying the degree of privacy provided by a bitcoin transaction. | |
Objectives | |
Definition of metrics measuring the resistance of a transaction to a set of attacks against users privacy. | |
Attacks considered in the scope of these metrics are: | |
- Merged Inputs Heuristic: methods identifying the inputs controlled by a same entity | |
- Coinjoin Sudoku: methods identifying the links existing between the inputs and outputs of a transaction |
This file contains 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
user web; | |
# One worker process per CPU core. | |
worker_processes 8; | |
# Also set | |
# /etc/security/limits.conf | |
# web soft nofile 65535 | |
# web hard nofile 65535 | |
# /etc/default/nginx |
This file contains 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
SELECT n.title, SUM(w.count) as total | |
FROM project_usage_week_release w | |
INNER JOIN field_data_field_release_project r ON w.nid = r.entity_id | |
INNER JOIN node n ON n.nid = r.field_release_project_target_id | |
INNER JOIN | |
field_data_field_release_version v ON v.entity_id = r.entity_id | |
WHERE LEFT(v.field_release_version_value, 3) = '7.x' | |
AND FROM_UNIXTIME(w.timestamp) BETWEEN CURDATE()-INTERVAL 2 WEEK AND CURDATE() | |
GROUP BY n.title | |
ORDER BY total DESC; |
This file contains 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
#!/bin/bash | |
# Help menu | |
print_help() { | |
cat <<-HELP | |
Arguments: | |
--spec - --spec=stage1.spec (default) | |
--config - --config=/etc/catalyst.conf (default) |