Skip to content

Instantly share code, notes, and snippets.

@jonlabelle
jonlabelle / ldap_search_filter_cheatsheet.md
Last active April 15, 2025 16:07
LDAP Search Filter Cheatsheet
---
Gemfile:
optional:
':development':
- gem: 'github_changelog_generator'
git: 'https://github.com/skywinder/github-changelog-generator'
ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018'
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')"
- gem: 'puppet_litmus'
git: 'https://github.com/puppetlabs/puppet_litmus.git'
@und3fined
und3fined / network.md
Last active April 14, 2025 04:55
Sample Network Configuration

Sample Network Configuration

  • IP: 12.34.56.78
  • Netmask: 255.255.255.0
  • Gateway: 12.34.56.1

Important Information

  • In most cases, you should not need to adjust these files. Instances are normally configured using DHCP. You only really need to change these files if you are trying to enable additional IPs.
  • Changing to the examples below will cause problems if you take a snapshot of an instance and restore it. We recommend reverting back to DHCP before taking a snapshot.
@fnky
fnky / ANSI.md
Last active April 18, 2025 14:14
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@loganvolkers
loganvolkers / Byte Formatting for Google Sheets.md
Last active April 16, 2025 07:18
Byte formatting for Google Sheets
@chittti
chittti / crx-getter.sh
Created April 2, 2017 03:20
Bash script to get chrome extension
#!/bin/bash
# Created by Likhith Chitneni (chittti)
# Thanks to Rob Wu for crxviewer (https://github.com/Rob--W/crxviewer)
# This bash script takes in command line arguments too!
# Arguments can be passed in as
# ./crx-getter.sh <extension-ID> <chrome-version> <OS(1-6)> <arch(1-3)> <chrome(1)/chromium(2)> <stable(1)/unknown(2)>
# Only <extension-id> and <chrome-version> are mandatory, the rest default to linux, x86-64, chrome, stable respectively
if [[ $# -eq 0 ]]; then
@mvadu
mvadu / grafana custom.ini
Last active January 19, 2025 13:38
nginx config for using grafana, Influxdb via reverse proxy with authentication
# The full public facing url
#root_url = %(protocol)s://%(domain)s:%(http_port)s/
root_url = http://localhost:80/grafana/
@sepehr
sepehr / pgp.md
Last active August 8, 2024 14:06
PGP Guide

PGP Guide

GPG vs PGP

PGP can refer to two things:

The Pretty Good Privacy software originally written by Phil Zimmermann, and now owned by Symantec. The formats for keys, encrypted messages and message signatures defined by that software. These have now been formalised as the OpenPGP standard. The GPG software is an independent implementation of the OpenPGP standards, so you can use it to exchange encrypted messages with people using other OpenPGP implementations (e.g. Symantec's PGP).

#requires -Version 3.0
<#
.SYNOPSIS
My Veeam Report is a flexible reporting script for Veeam Backup and
Replication.
.DESCRIPTION
My Veeam Report is a flexible reporting script for Veeam Backup and
Replication. This report can be customized to report on Backup, Replication,
@ruzickap
ruzickap / enclosure_get_info.sh
Last active June 5, 2018 22:46
Get information from HP C7000 enclosure.
#!/bin/bash -x
IP="10.29.33.14"
USER="admin"
PASSWORD="admin"
DESTINATION="./log_directory/"
WGET="wget --no-proxy --user=$USER --password=$PASSWORD --no-check-certificate"
cat > /tmp/hpoa.xml << EOF
<?xml version="1.0"?>