Skip to content

Instantly share code, notes, and snippets.

View goffinet's full-sized avatar

goffinet

View GitHub Profile
@goffinet
goffinet / jtrinstall.sh
Last active May 28, 2024 23:36 — forked from godevnet/jtrinstall.sh
John the Ripper Installation for Centos 7/8
#!/bin/bash
# Centos 7/8 John the Ripper Installation
#release=(j 1.8.0)
release=(k 1.9.0)
# Check Centos version
if [ -f /etc/redhat-release ] ; then
source /etc/os-release
if [ $VERSION_ID == "8" ] ; then
packager=dnf
elif [ $VERSION_ID == "7" ] ; then
@goffinet
goffinet / rpmforge.sh
Last active December 8, 2023 16:28 — forked from godevnet/rpmforge.sh
RPMForge repo installation on Centos 7
#!/bin/bash
yum -y install epel-release wget
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm --import RPM-GPG-KEY.dag.txt
@goffinet
goffinet / raspberry-pi-ble-sniffer.md
Created June 11, 2016 13:14 — forked from jkeefe/raspberry-pi-ble-sniffer.md
Notes on using Adafruit's "Bluefruit" BLE sniffer with a Raspberry Pi

BLUETOOTH SNIFFER

Working to sniff Bluetooth Low Energy with the adafruit sniffer

For more information, see this blog post

Going the python route, as described here

before installing pySerial, did ...

@goffinet
goffinet / LFCS_study
Created August 22, 2016 14:56 — forked from gojun077/LFCS_study
LFCS Study Outline 2015.02.28
* LFCS Domains 2015.02
Note - the domains will change somewhat in March 2015. SW RAID
with mdadm will be removed
** The Command Line
*** Editing text files on the CLI
Covers the use of the basic text editors nano and gedit as well
as the advanced editors _vi_ and _emacs_
- nano
simple CLI-based text editor
@goffinet
goffinet / wheezy.preseed
Created December 28, 2016 10:05 — forked from sturadnidge/wheezy.preseed
Debian 7.x preseed file for a simple, minimal install.
#### Contents of the preconfiguration file (for wheezy)
### Localization
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/keymap select us
d-i keymap select us
### Network configuration
d-i netcfg/choose_interface select auto
### Mirror settings
@goffinet
goffinet / virt
Created January 18, 2017 10:42 — forked from tomassedovic/virt
Simple script for detecting IP address of running virtual machine
#!/bin/bash
if [[ $# == 0 ]]; then
echo Usage:
echo "virt <command> <vm> args"
echo Command is: ip, ssh, scp, sshfs
exit 1
fi
cmd="$1"; shift
@goffinet
goffinet / le-renew.sh
Created January 19, 2017 16:15 — forked from erikaheidi/le-renew.sh
Auto renewal for Let's Encrypt Apache
#!/bin/bash
#================================================================
# Let's Encrypt renewal script for Apache on Ubuntu/Debian
# @author Erika Heidi<erika@do.co>
# Usage: ./le-renew.sh [base-domain-name]
# More info: http://do.co/1mbVihI
#================================================================
domain=$1
le_path='/opt/letsencrypt'
le_conf='/etc/letsencrypt'
#!/bin/bash
#================================================================
# Let's Encrypt renewal script for Apache on CentOS
# @author Erika Heidi<erika@do.co>
# Usage: ./le-renew.sh [base-domain-name]
# More info: http://do.co/1SHe4eL
#================================================================
domain=$1
le_path='/opt/letsencrypt'
le_conf='/etc/letsencrypt'
@goffinet
goffinet / arch_kvm_install.md
Last active February 12, 2017 16:19 — forked from tlatsas/arch_kvm_install.md
archlinux kvm guest install cheatsheet
  • partitions
    • use the tool of your choice (fdiks/gdisks/parted)
    • gdisk p1 +1M EF02 (bios boot)
  • filesystems
    • mkfs -t <fs-type> /dev/<partition>
  • mount partitions on /mnt
  • setup network
    • ip address add <IP>/<CIDR> dev eth0
    • ip route add default via <GW>
    • add dns in /etc/resolve.conf
@goffinet
goffinet / rPi3-ap-setup.sh
Last active April 5, 2017 19:15 — forked from Lewiscowles1986/rPi3-ap-setup.sh
Raspberry Pi 3 access-point-setup
#!/bin/bash
#
# This version uses September 2016 rpi jessie image, please use this image
#
network="10.0.0"
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi