Skip to content

Instantly share code, notes, and snippets.

@sbliven
sbliven / timeout_fn.sh
Last active September 21, 2020 15:50
'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
@colealtdelete
colealtdelete / OSCPStudy.md
Last active September 14, 2025 13:33
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
@mcattarinussi
mcattarinussi / gpg-ssh-setup.md
Last active January 17, 2026 18:25
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.

@satreix
satreix / custom_archlinux_live_USB.md
Last active July 12, 2025 21:44
Custom Arch Linux live USB

Custom Arch Linux live USB

Setup

Install the dependencies for the archiso package:

(root): pacman -S make squashfs-tools libisoburn dosfstools patch lynx devtools git

I recommend archiso getting them from git, there is a package in the repositories, however, at this time of writing, it will not work with the instructions below. So, grab the most recent version from git and install it:

(user): git clone git://projects.archlinux.org/archiso.git && cd archiso

@rmehta
rmehta / foss_india.md
Last active June 23, 2025 12:58
Indian FOSS Timelines, Organizations and Projects

Indian FOSS: Timelines

This is an attempt to cover the history of Indian FOSS

  • 1984: Richard Stallman creates GNU
  • 1980s: TeX (softare in public domain) introduced into Kerala by Prof. K.S.S. Namburipad of the Department of Mathematics in the University of Kerala. Source
  • 1991: Linus Torvalds releaes Linux Kernel
  • 1996: Atul Chitnis and Kishore Bhargava convince CyberMedia (PC Quest) to distribute Linux CDs. Over a million CDs distributed over a span of 10 years. People stood in queues in front of newstands to get a copy of PCQuest.
  • 1998: PCQ swaps Slackware Linux with Red Hat Linux.
  • 1998-2000: Linux user groups (LUGs) start forming in all major cities [pending: link