The present gist is a hybrid between a 'go-to' cheat sheet and a tutorial when starting a new Data Science Project.
Its purpose is to create a virtual environment with Python using the 'venv' module.
import numpy as np | |
def rollpad(array, rollx, rolly, mode='edge'): | |
"""Analogous to numpy.roll but using np.pad | |
for greater flexibility""" | |
if rollx > 0: | |
xpad = (rollx,0) | |
xtrim = slice(0,-rollx) | |
else: |
:: Windows 10 Hardening Script | |
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering. | |
:: Obligatory 'views are my own'. :) | |
:: Thank you @jaredhaight for the Win Firewall config recommendations! | |
:: Thank you @ricardojba for the DLL Safe Order Search reg key! | |
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings! | |
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater | |
: |
""" | |
Reference: | |
1. https://gist.github.com/ycopin/3342888 | |
2. http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html#axisartist | |
""" | |
import numpy as np | |
import matplotlib.pyplot as plt |
// Espressif ESP32 promiscuous mode and packet injection experiments | |
// by brainstorm at nopcode org | |
#include "freertos/FreeRTOS.h" | |
#include "esp_wifi.h" | |
#include "esp_wifi_internal.h" | |
#include "lwip/err.h" | |
#include "esp_system.h" | |
#include "esp_event.h" | |
#include "esp_event_loop.h" |
// Espressif ESP32 promiscuous mode and packet injection experiments | |
// by brainstorm at nopcode org | |
#include "freertos/FreeRTOS.h" | |
#include "esp_wifi.h" | |
#include "esp_wifi_internal.h" | |
#include "lwip/err.h" | |
#include "esp_system.h" | |
#include "esp_event.h" | |
#include "esp_event_loop.h" |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "freertos/FreeRTOS.h" | |
#include "freertos/task.h" | |
#include "esp_wifi.h" | |
#include "esp_event.h" | |
#include "lwip/inet.h" | |
#include "lwip/ip4_addr.h" | |
#include "lwip/dns.h" |
"Name","URL","Blurb","Limitations","Data subject","Formats","Ready to use data formats?","Bulk download?","National","Terms","Terms URL","Notes" | |
"Dados.gov.pt","http://dados.gov.pt","The official portal for public datasets. Many kinds of national- and local-level data can be found.","Many datasets are high-quality, whereas a few have limited time scopes. ","Many types","CSV, JSON","Yes","Yes","National and local","Open (Creative Commons-Attribution 3.0)","http://www.dados.gov.pt/PT/Info/AvisosLegais.aspx", | |
"Lisboa Aberta","http://dadosabertos.cm-lisboa.pt/","Official open data portal for Lisbon. Contains more than 200 GeoJSON datasets about various fields of activity, business and leisure.",,"Geo","GeoJSON","Yes","Yes","Local","Open (Creative Commons-Attribution 3.0)","http://dados.cm-lisboa.pt/carta.html", | |
"One Stop Transport","http://ost.pt","Data provider with real-time transport data in some cities. Makes available a well-documented API for their datasets.","Lisbon is not included in this portal. Needs re |