Skip to content

Instantly share code, notes, and snippets.

View hvisage's full-sized avatar
💭
I may be slow to respond.

hvisage

💭
I may be slow to respond.
View GitHub Profile
@hvisage
hvisage / bitwarden_duplicate_cleaner.py
Created November 7, 2023 22:17 — forked from jwmcgettigan/bitwarden_duplicate_cleaner.py
Identifies and removes duplicate 'items' and 'folders' from your Bitwarden vault. 🎃
# Copyright © 2023 Justin McGettigan
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the “Software”), to deal in the Software without
# restriction, including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
# substantial portions of the Software.
#
@hvisage
hvisage / dhcp_option119.py
Created May 3, 2022 15:46 — forked from grawity/dhcp_option119.py
a script for converting domain names to DHCP Option 119 (Domain Search Option)
#!/usr/bin/env python3
"""Command generator for setting DHCP Option 119
This script converts the specified domain names to DHCP Option 119
(Domain Search Option) and prints commands for various DHCP servers.
USAGE:
./dhcp_option119.py DOMAIN ...
EXAMPLE:
@hvisage
hvisage / ovs-cheat.md
Created March 9, 2020 20:45 — forked from djoreilly/ovs-cheat.md
OVS cheat sheet

DB

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl list interface vxlan-ac000344
ovs-vsctl --columns=options list interface vxlan-ac000344
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl -f csv --no-heading --columns=_uuid list controller
ovs-vsctl -f csv --no-heading -d bare --columns=other_config list port
@hvisage
hvisage / hacker_howto.md
Created January 21, 2019 09:00 — forked from dalenunns/hacker_howto.md
A list of resources on how to be a hacker/pentester/security person - from #infosec on zatech.slack.com

Howto be a Hacker/Pentester/Security person - List of resources

I've just stolen HypnZA list of suggested links and added a few others by various people. (Please feel free to send me other links/info you think might be useful to add.)

HypnZA's commonly shared list (in the correct order):

  1. https://www.hacksplaining.com
  2. https://pentesterlab.com/exercises/web_for_pentester and https://pentesterlab.com/exercises/web_for_pentester_II
  3. Watch Ippsec's HackTheBox videos from oldest to newest, but attempt the box in the video before watching the video (requires a paid hackthebox account to access the machines in the videos)
@hvisage
hvisage / SAResources.md
Created January 21, 2019 09:00 — forked from dalenunns/SAResources.md
List of SA Resources

Keybase proof

I hereby claim:

  • I am hvisage on github.
  • I am hvisage (https://keybase.io/hvisage) on keybase.
  • I have a public key whose fingerprint is 1465 2C66 7427 E67B E886 CB40 9C13 84B1 168F D423

To claim this, I am signing this object:

@hvisage
hvisage / dms-list-csv.sh
Last active July 4, 2017 13:16
Take dead man snitches list into csv for reports
#!/bin/bash
TAG=aquacheck
API=$1
curl -su ${APIKEY}: https://api.deadmanssnitch.com/v1/snitches \
| jq -r 'sort_by(.status)|.[] | select(.tags[] | contains("${TAG}")) |[.name, .interval, .checked_in_at, .status]|@csv'
@hvisage
hvisage / looping-items-roles
Created September 20, 2015 19:32
looping over items for roles
Yes, pass the array in via the role arguments and then loop over them inside the role itself. For example:
roles:
- { role: ruby, versions: [ "1.9.3-p448", "2.0.0-p247"]}
Then use "with_items: versions" inside the role.
@hvisage
hvisage / getting jq to output ansible facts
Last active December 25, 2017 21:22
ansible & jq output of facts
for i in setup/*; do echo $if; jq '[.ansible_facts.ansible_hostname,.ansible_facts.ansible_devices.sda.size , .ansible_facts.ansible_all_ipv4_addresses[0]]' -c $i;done >list
and then, note the | @csv
for i in setup/*; do echo $if; jq '[.ansible_facts.ansible_hostname,.ansible_facts.ansible_devices.sda.size , .ansible_facts.ansible_all_ipv4_addresses[0]] | @csv' -r $i;done
"qa-pgdb01","120.00 GB","10.100.13.70"
for i in setup/*; do jq '[ .ansible_facts.ansible_hostname, .ansible_facts.ansible_all_ipv4_addresses[0] ] | join(", ")' -j $i;echo;done
qa-pgdb01, 10.100.13.70
@hvisage
hvisage / hosts
Last active August 28, 2015 01:54 — forked from fclairamb/hosts
TINC setup ansible playbook It generates a private/public key pair on each host, get each public key and push them back to each server
# sample config file
[do]
198.199.74.236 tinc_ip=10.1.1.1 hostname=ca_1_1 tinc_connectto=ca_2_2
192.34.60.13 tinc_ip=10.1.1.2 hostname=ca_1_2 tinc_connectto=ca_1_1
198.199.70.163 tinc_ip=10.1.1.3 hostname=ca_1_3 tinc_connectto=ca_1_2
198.199.71.204 tinc_ip=10.1.2.1 hostname=ca_2_1 tinc_connectto=ca_1_3
198.199.70.208 tinc_ip=10.1.2.2 hostname=ca_2_2 tinc_connectto=ca_2_1