Skip to content

Instantly share code, notes, and snippets.

@Dave4272-Office
Dave4272-Office / gpg-ssh-setup.md
Created July 16, 2022 17:30 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

Keybase proof

I hereby claim:

  • I am dave4272-office on github.
  • I am dave4272 (https://keybase.io/dave4272) on keybase.
  • I have a public key ASAgKg7Ja7a2xezZ_vm4qZ5TM7SzKavuux0MfH0CFWpcoQo

To claim this, I am signing this object:

Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
@Dave4272-Office
Dave4272-Office / timeout_fn.sh
Created September 21, 2020 15:50 — forked from sbliven/timeout_fn.sh
'timeout' command, implemented within the shell so that it works with shell functions
#!/bin/zsh
# A version of the 'timeout' command that works with shell functions
#
# Usage:
# source timeout_fn.sh
# timeout_fn DURATION COMMAND [ARG]...
timeout_fn () {
local timeout=$1
shift
@Dave4272-Office
Dave4272-Office / OSCPStudy.md
Created February 21, 2020 11:18 — forked from colealtdelete/OSCPStudy.md
List of OSCP Study Resources

(Information rovided by @Mod Derek from Security Blue Team Discord from Daniel Durnea on the Offensive Security Facebook page - I am not the original author of this information)

How to prepare for OSCP complete guide

Below are 5 skills which you have to improve before registering for OSCP

  • Learn basic of Computer Network, Web application, and Linux
  • Learn Bash and Python scripting
  • Enumeration is key in OSCP lab, I repeat Enumeration is key in OSCP Lab and in real world too
  • Download vulnerable VM machines from vulnhub