Skip to content

Instantly share code, notes, and snippets.

@askharley
askharley / ssh_keys.md
Last active November 9, 2018 23:47
SSH Keys

alt text

Setting up a SSH Key

What is a SSH Key?

SSH stands for Secure Shell. This is a cryptographic network protocol that's used for operating network services securely over an unsecured network. An SSH key is a way of connecting and authenticating yourself to networks.

Generating a SSH Key on macOS

  1. SSH keys can be generated through the terminal. The code below will begin the process.
@keithamus
keithamus / collect-headers.js
Created December 5, 2013 20:51
A little server that I used to collect headers for https://keithamus.ghost.io/an-analysis-of-http-headers
var app = require('express')(),
fs = require('fs');
var headers = [];
app.get('/', function (req, res) {
headers.push(req.headers);
res.json(req.headers);
});
setInterval(function () {
fs.writeFileSync('headers.json', JSON.stringify(headers));
}, 10000);
@numberwhun
numberwhun / Virtual Box Host Only Static IP.md
Created March 24, 2017 18:35 — forked from pjdietz/Virtual Box Host Only Static IP.md
VirtualBox Host-Only Adapter with Static IP

VirtualBox Host-Only Static IP

My typical setup for a development box in VirtualBox uses two NICs. The first uses NAT to allow the box to communicate with the outside world through my host computer’s network connection. (NAT is the default, so shouldn't require any setup.) The second is a "host-only" connection that allows my host and guest to interact.

To create a host-only connection in VirtualBox, start by opening the preferences in VirtualBox. Go to the "Network" tab, and addd a Host-only Network. Modify the host-only network, and disable DHCP. Make a note of the IP address. (Feel free to set the IP address as well, if you like.)

Next, assign this host-only adapter to the virtual machine. Select the VM and press "Settings". Go to the "Network" tab, and select "Adpater 2". Enable the adapter, set it to a "Host-only Adapter", and select the adpater you created above.

Temporary

@sguinetti
sguinetti / easykarma-blocker-concept103.ini
Last active February 3, 2019 18:32
Easy karma concept (review 103, Youtube Test Only) (Bug in Flash and HTML5 videos)
# Easykarma is a KarmaBlocker's rules file to perform easily their Adblock activities.
# No additional components required, just add it from the URL in the options and all set.
# It is based on EasyList proyect made by the community of Adblock Plus.
# EasyKarma es un archivo INI para KarmaBlocker que realiza actividades de anti-publicidad con normalidad.
# No necesita componentes adicionales, sólo añádelo desde la barra URL en las opciones y todo listo.
# Está basado en el proyecto EasyList hecho por la comunidad de Adblock Plus.
# See/Visita: https://github.com/arantius/karma-blocker/wiki/Configuration
# Credits/Créditos: https://easylist.adblockplus.org (CC-BY-SA 3.0)
@cristianrasch
cristianrasch / pgp-encryption-guide.md
Last active May 9, 2019 11:28
PGP Encryption Guide

PGP encryption guide

Generating your key pair

gpg --gen-key

echo "export GPGKEY=01086FDA" > ~/.bashrc

@grugq
grugq / gist:7713916
Created November 30, 2013 00:43
The text from: http://dee.su/uploads/baal.html On Underground Communications
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Undercover communication
It should be obvious by now, that the only way to communicate
stealthily and securely is to avoid raising suspicion to the
level at which the authorities might consider it worthwhile
to put you under active surveillance (e.g., park a van with
TEMPEST equipment by your apartment).
@immanuelpotter
immanuelpotter / DatSci-intro.md
Last active November 9, 2019 17:34
Basic Data Science in Python guide (pandas, numpy, scikit-learn, nltk, stats)

An introduction to Data Science: Python

Immanuel Potter

This guide may assume some very basic programming knowledge, but not necessarily python. It aims to give anyone enough knowledge to start diving into data problems themselves by using these techniques, and tries to explain (fairly comprehensively) everything that is going on for the newcomer.

This guide will be covering several different topics and should equip you with enough knowledge to try some of what you read out on real problems.

Contents:

### Basic Scanning Techniques
* Scan a single target
* `nmap [target]`
* Scan multiple targets
* `nmap [target1,target2,etc]`
* Scan a list of targets
* `nmap -iL [list.txt]`
* Scan a range of hosts
* `nmap [range of IP addresses]
@d-tux
d-tux / update-blocklist.sh
Created January 15, 2016 09:12
ipset blocklist updater
#!/bin/bash
# Adapted from http://www.linuxjournal.com/content/server-hardening?page=0,2
PATH=$PATH:/sbin
WD=`pwd`
TMP_DIR=$WD/tmp
IP_TMP=$TMP_DIR/ip.temp
IP_BLOCKLIST=$WD/ip-blocklist.conf
IP_BLOCKLIST_TMP=$TMP_DIR/ip-blocklist.temp
list="nigerian russian lacnic exploited-servers"