Skip to content

Instantly share code, notes, and snippets.

---
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 August 18, 2022 22:53
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 July 22, 2024 12:03
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 June 21, 2024 21:59
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 November 11, 2023 18:26
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 November 18, 2023 19:11
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"?>
@konrad
konrad / csv2xlsx.py
Last active April 1, 2022 16:46
Converts a CSV (tab delimited) file to an Excel xlsx file
#!/usr/bin/env python
"""
FUNCTION: Converts a CSV (tab delimited) file to an Excel xlsx file.
Copyright (c) 2016, Konrad Foerstner <konrad@foerstner.org>
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all
copies.