The Domain Name System (DNS) protocol is an important part of the web's infrastructure, serving as the Internet's phone book: every time you visit a website, your computer performs a DNS lookup. Complex pages often require multiple DNS lookups before they start loading, so your computer may be performing hundreds of lookups a day.
import json | |
import os | |
import luigi | |
import requests | |
from collections import Counter | |
from luigi.contrib.external_program import ExternalProgramTask | |
class Meetup(luigi.WrapperTask): | |
def run(self): |
## FOR UBUNTU | |
Dependencies install | |
1. apt-get install nginx-extras | |
2. apt-get install lua-zlib | |
lua file decompress request body | |
-------------------------------- | |
see https://gist.github.com/iammehrabalam/30f5402bbcdad139c9eafd3a6f47ce6c |
You need to install ARMv5 gcc cross compiler: apt-get install gcc-arm-linux-gnueabi
You have to define a directory (via --prefix) where all of your binaries will be installed (copied). In the guide I use the following: /home/user/vpn_compile
- Download the source:
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
This is a writeup about how to install Ubuntu 16.04.1 Xenial Xerus for the 32-bit hard-float ARMv7 (armhf) architecture on a Qemu VM via Ubuntu netboot.
The setup will create a Ubuntu VM with LPAE extensions (generic-lpae) enabled. However, this writeup should also work for non-LPAE (generic) kernels.
The performance of the resulting VM is quite good, and it allows VMs with >1G ram (compared to 256M on versatilepb
and 1G on versatile-a9
/versatile-a15
). It also supports virtio
disks whereas versatile-a9
/versatile-a15
only support SD cards via the -sd
argument.
#!/bin/bash | |
# this is a demo of how to remove an argument given with the [-arg value] notation for a specific | |
# [arg] (-T in this case, but easy to modify) | |
echo $@ | |
echo $# | |
i=0 | |
ORIGINAL_ARGS=("$@") | |
TRIMMED_ARGS=() |
#!/usr/bin/env python3 | |
# vim: ft=python ts=4 sw=4 expandtab | |
# | |
# Copyright (c) 2013 Reed Kraft-Murphy <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
# import python core modules | |
import datetime | |
import logging | |
# import external modules | |
import pandas as pd | |
import requests | |
# import luigi modules | |
import luigi |
As a good crypto nerd, I usually use an entirely encrypted linux FS: /
but also
/boot
using grub LUKS support. It's a good setup but it's not perfect, the BIOS and
the bootloader are not protected.
I recently got a USBArmory and I wanted to apply the same (or a better) setup.
I found some useful links but no clear howto. So this is my setup.
This small subclass of the Pandas sqlalchemy-based SQL support for reading/storing tables uses the Postgres-specific "COPY FROM" method to insert large amounts of data to the database. It is much faster that using INSERT. To acheive this, the table is created in the normal way using sqlalchemy but no data is inserted. Instead the data is saved to a temporary CSV file (using Pandas' mature CSV support) then read back to Postgres using Psychopg2 support for COPY FROM STDIN.