Skip to content

Instantly share code, notes, and snippets.

View larryv's full-sized avatar

Lawrence Velázquez larryv

View GitHub Profile
@sent-hil
sent-hil / pictures.markdown
Created August 24, 2012 02:18
River (getriver.com): Keep a programming journal.

One of my favorite past times is to look at the notebooks of famous scientists. Da Vinci's notebook is well known, but there plenty others. Worshipping Da Vinci like no other, I bought a Think/Create/Record journal, used it mostly to keep jot down random thoughts and take notes. This was great in the beginning, but the conformity of lines drove me nuts. Only moleskines made blank notebooks, so I had to buy one.

At the same time I started a freelance project. The project itself is irrelevant, but suffice to say it was very complex and spanned several months. It seemed like a perfect opportunity to use the moleskine. Looking back, all my entries fell under few categories:

  • Todo
  • Question
  • Thought
  • Bug
  • Feature
@ormaaj
ormaaj / pattest.py
Last active June 21, 2024 23:05
Shell pattern quote/escape fuzzer.
#!/usr/bin/env python3
import subprocess, itertools
class Shell(list):
def __init__(self, shell, cmds):
self.shell = shell
super().__init__([(x, self.__run(x)) for x in cmds])
def __iter__(self):
@grugq
grugq / gist:03167bed45e774551155
Last active April 6, 2024 10:12
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

@kennwhite
kennwhite / vpn_psk_bingo.md
Last active February 24, 2024 12:19
Most VPN Services are Terrible

Most VPN Services are Terrible

Short version: I strongly do not recommend using any of these providers. You are, of course, free to use whatever you like. My TL;DR advice: Roll your own and use Algo or Streisand. For messaging & voice, use Signal. For increased anonymity, use Tor for desktop (though recognize that doing so may actually put you at greater risk), and Onion Browser for mobile.

This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016

@larryv
larryv / keybase.md
Last active January 16, 2023 03:53
Keybase proof of identity

Keybase proof

I hereby claim:

  • I am larryv on github.
  • I am larryv (https://keybase.io/larryv) on keybase.
  • I have a public key ASA2PbEQSvMzBp7j89WM-YZemJrpkz0EfZj87XVnLNxNVQo

To claim this, I am signing this object:

@larryv
larryv / 5BA2C2290B24085829524942AB30D6641F9AF0E3.pub.asc
Created April 6, 2018 04:51
old OpenPGP key (created 2016-06-02, expires 2018-07-13)
-----BEGIN PGP PUBLIC KEY BLOCK-----
mJMEV0+CqxMFK4EEACMEIwQAPhnLUWIaQZlMynz9JvYmUrcC8EJ/r9TK7RuKvGB9
MZAKGdEFEk6rVWRHZ26G679kxkor5iRon7RUq4D3C9JnjagAdLGO/bZurLR5nD8Z
A8Pl7BkzHT3igyxE/U5CMD1T5LJCmvNYWp6n56wB7PK0rbtVSxsh3tmnpHyfTlQR
zv+lvmu0Ikxhd3JlbmNlIFZlbMOhenF1ZXogPHZxQGxhcnJ5di5tZT6I5QQTEwoA
SgIbAQwLCQ0KCAwHCwMEAgEHFQoJCAsDAgUWAAMCAQIeAQIXgAIZARYhBFuiwikL
JAhYKVJJQqsw1mQfmvDjBQJZcDuoBQkD+LH9AAoJEKsw1mQfmvDj6CgCCQFHJ9JV
GfDsafIjIL/lESBEDCyt5Us7yqfRJAYC+aPXPN/ySySmAs/lIB5OpXEguDzk5ZJ8
6mWcuoD03XL1KWX9lwIGJuNlC/eYx+2g2cmHBg5v5husWKHClhAPSLxqOYXu7jEU
@larryv
larryv / 3FD9032247DE2D201E7528C49AC940DFFD017443.pub.asc
Last active December 28, 2022 23:57
my current OpenPGP key (created 2018-04-01, expires 2024-01-01)
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBFrAWkgBDADfVpDDWCTqTYl7hwdozP+TPw6fxNVuHXnjU58tXyDTmXVHG9vP
Vi3Sph7EQ2kREa5XjflI/k7qODZV1KlqOSSaOamptkcbRGtEbAoNSzHubARDfcUD
aos3o1D+tObpypT4RarGdQmPgIWOTBDQE5RYcPOfs0FV2ciVsGJ8lYXHa7zwDy+B
As8HfJLGcKQs52nKzmqw67pYkDynW4jkSeTymq/EslVOzHaSlWiVyVYNX7PSjSLV
qEWmElVgH/sB0Oda6Y/XOyUb5QImfAUQo2jRw98mcV1j6d6gVdvizlGC4jzrnWAK
GFENn+615pvySQzTg4gHIeu4CBHiXIc47DHZ6H/Wb6AfozkmDnptwEKQJSn3ICIX
HOn3t1e95YHxMxyM6et8od134hSOgQ3TzUDdMOgXNVr1zyxyeFktsms4h5U8b2uL
E5dw29Cevi2akebSzXVhIkfucYQ5JFtdfEok3EpoSAF7AIpzh6/yVd+mqxIGmVI2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I am transitioning to a new OpenPGP key, which is available from
Facebook [1], Gist [2], Keybase [3], and the public keyservers. I will
revoke the old key sometime after 4 July 2018.
Old key fingerprint: 5BA2 C229 0B24 0858 2952 4942 AB30 D664 1F9A F0E3
New key fingerprint: 3FD9 0322 47DE 2D20 1E75 28C4 9AC9 40DF FD01 7443
:xdg-support: https://wiki.archlinux.org/index.php/XDG_Base_Directory
:xdg-spec: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
:fhs: https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
:madness: http://pub.gajendra.net/2012/09/dotfiles
:litter: https://www.reddit.com/r/linux/comments/971m0z/im_tired_of_folders_littering_my_home_directory/
:systemd: https://www.freedesktop.org/wiki/Software/systemd/
:systemd-fhs: https://www.freedesktop.org/software/systemd/man/file-hierarchy.html
:systemd-fhs-bin: https://www.freedesktop.org/software/systemd/man/file-hierarchy.html#~/.local/bin/
:toc: macro
@lizthegrey
lizthegrey / attributes.rb
Last active February 24, 2024 14:11
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'