Skip to content

Instantly share code, notes, and snippets.

@Adrellias
Adrellias / 1_radius_chap.py
Created July 8, 2022 11:09 — forked from adiroiban/1_radius_chap.py
Python RADIUS client CHAP / MS-CHAP-v1 / MS-CHAP-v2
# Code under public domain.
"""
Authentication based on a remote RADIUS server.
"""
from __future__ import absolute_import, unicode_literals
import contextlib
import os
import socket
import struct
import hashlib

Install dlib and face_recognition on a Raspberry Pi

Instructions tested with a Raspberry Pi 2 with an 8GB memory card. Probably also works fine on a Raspberry Pi 3.

Steps

Download the latest Raspbian Jessie Light image. Earlier versions of Raspbian won't work.

Write it to a memory card using Etcher, put the memory card in the RPi and boot it up.

@Adrellias
Adrellias / Makefile
Created March 28, 2017 12:03 — forked from dcode/Makefile
My bro.spec.in file and Makefile for building bro packages + bro-plugins packages
NAME := bro
GIT_REPO := https://github.com/bro/bro.git
GIT_BRANCH := master
COMMIT0 := $(shell git ls-remote $(GIT_REPO) | grep -E 'refs/heads/$(GIT_BRANCH)$$' | cut -f1)
SHORTCOMMIT0 := $(shell echo $(COMMIT0)| awk '{ print substr($$0, 1, 7)}')
VERSION ?=$(shell cat VERSION | cut -d- -f1)
RELEASE ?=$(shell cat VERSION | cut -d- --complement -f1 | tr -d '-')
SNAPSHOT := .git$(SHORTCOMMIT0)
@Adrellias
Adrellias / merger.py
Created March 28, 2017 10:38 — forked from btoews/merger.py
Merging Nessus Files
# file: merger.py
# based off: http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/
# by: mastahyeti
import xml.etree.ElementTree as etree
import shutil
import os
first = 1
for fileName in os.listdir("."):
@Adrellias
Adrellias / keybase.md
Created June 24, 2014 13:59
keybase.md

Keybase proof

I hereby claim:

  • I am adrellias on github.
  • I am adrellias (https://keybase.io/adrellias) on keybase.
  • I have a public key whose fingerprint is 9B12 41F6 CC39 2825 0C50 3BBE A3E1 3910 FEDE 6E90

To claim this, I am signing this object:

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes