Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am alixaxel on github.
  • I am alixaxel (https://keybase.io/alixaxel) on keybase.
  • I have a public key ASByJIuLrcv6bdlxnlrycvOu9ISNgB4hncrIinlv3WFfAQo

To claim this, I am signing this object:

@alixaxel
alixaxel / smoothing.go
Created February 26, 2017 00:56 — forked from xeoncross/smoothing.go
Peak detection "Smoothed z-score algo" (in Golang) from http://stackoverflow.com/a/22640362/99923
/*
Settings (the ones below are examples: choose what is best for your data)
set lag to 5; # lag 5 for the smoothing functions
set threshold to 3.5; # 3.5 standard deviations for signal
set influence to 0.5; # between 0 and 1, where 1 is normal influence, 0.5 is half
*/
// ZScore on 16bit WAV samples
func ZScore(samples []int16, lag int, threshold float64, influence float64) (signals []int16) {
//lag := 20

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@alixaxel
alixaxel / README.md
Last active October 9, 2024 21:00 — forked from Techwolf12/README.md
Generating IPv6 PTR records from a Bind9 zonefile using Bash

Generating IPv6 PTR records from a Bind9 Zonefile using Bash.

The following script takes a Bind9 zonefile, gets all AAAA records from it and generated PTR records based on them.

What you need to do:

  1. Edit the Zone header in the script.
  2. Run the script with ./generate_v6_ptr.sh /path/to/zonefile.zone

This will output the zones on STDOUT. If you want to save this to a zonefile, you can use this example:

#!/usr/bin/env bash
export PATH="$PATH:/srv/source/depot_tools"
mkdir -p /srv/{build,source}/chromium
cd /srv/source && \
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
cd /srv/source/chromium && \

Keybase proof

I hereby claim:

  • I am alixaxel on github.
  • I am alixaxel (https://keybase.io/alixaxel) on keybase.
  • I have a public key whose fingerprint is 8F12 0F1F E592 5538 79AB 72FB 3C70 80FE 5956 1D22

To claim this, I am signing this object: