I hereby claim:
- I am alem0lars on github.
- I am alem0lars (https://keybase.io/alem0lars) on keybase.
- I have a public key whose fingerprint is 1BD5 6E0B C2F0 6CFE DD2C 2A3C F828 B1A4 F1E0 99AB
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def _compare_equality(x, y): | |
if is_number: | |
return x == y | |
else: | |
regex = re.compile(y.replace("*", ".*"), re.IGNORECASE) | |
return regex.search(x) | |
def compare_equality(data, query, col, is_number): | |
return filter_data(_compare_equality, data, query, col, is_number) |
Verifying my Blockstack ID is secured with the address 1HxTppzFioUCsJecEaHS9VnCyKNxpT6uRD https://explorer.blockstack.org/address/1HxTppzFioUCsJecEaHS9VnCyKNxpT6uRD |
#!/usr/bin/env ruby | |
require "net/http" | |
require "json" | |
require "pathname" | |
require "date" | |
module TRSync | |
module Model |
def gr2blk(p, g, c) "P=#{(p / 7.0).round(2)}\u00b5B | G=#{(g / 3.0).round(2)}\u00b5B | C=#{(c / 9.0).round(2)}\u00b5B"; end |
#! /usr/bin/env python2 | |
from scapy.all import * | |
import sys | |
INFILE = sys.argv[1] | |
OUTFILE = sys.argv[2] | |
with PcapWriter(OUTFILE) as dest: | |
with PcapReader(INFILE) as infile: |
The underlying document tries to group comparisons/opinions for the available backup solutions.
The generic guidelines being used are:
#!/bin/sh | |
mkdir -p /mnt/gentoo | |
cryptsetup luksOpen /dev/sda2 primary | |
cryptsetup luksOpen /dev/sdb1 secondary | |
swapon /dev/primary/swap | |
mount /dev/primary/root /mnt/gentoo |
pres="${1:-mypresentation}" # Replace with the presentation name | |
remote="${2:[email protected]:$(whoami)/${pres}}" # Replace with the presentation repo url | |
git clone "[email protected]:alem0lars/presentation-skeleton.git" "${pres}" | |
cd "${pres}" | |
./scripts/init "${remote}" |
#!/usr/bin/env zsh | |
# parse arguments {{{ | |
zparseopts -A _opts -user: -dstsrv: -dstpath: | |
if [[ $? -ne 0 ]]; then | |
echo 'invalid arguments' | |
exit -1 |