Skip to content

Instantly share code, notes, and snippets.

View fredrikasberg's full-sized avatar

Fredrik Åsberg fredrikasberg

  • Aring Innovation AB
  • Malmö, Sweden
View GitHub Profile
@fredrikasberg
fredrikasberg / btt canbus setup.md
Last active October 20, 2024 13:12
BTT Manta M8P v1.1 + BTT EBB 2209 Canbus setup
@kmobs
kmobs / frequencytester.md
Last active October 13, 2024 19:44
Frequency Tester

Frequency Testing

This will allow you to test a specific frequency that you hear when you do your resonance testing in Klipper and potentially track down where extra peaks are coming from. If something is rattling at a specific frequency, you can specify that frequency and feel around the printer until you track it down.

Code was adopted by zifnab from somewhere in Klipper.

Usage

You have to have [resonance_holder] in your printer.cfg.

The command is HOLD_RESONANCE AXIS=<axis> FREQ=int SECONDS=<seconds>

@adog1314
adog1314 / PortForwardOverWireGuard.md
Last active November 12, 2024 07:34
Port forward over wireguard to VPS with static IP

Port forward over wireguard to VPS with static IP

This is write up is on how to port forward over wireguard. I am going to be port forwarding a mail server running MailCow on my local server, but really any service can be port forwared with some modifications to the IPTables commands in the wireguard file.

I am using a cheap Vultr VPS as my proxy server, if your intrested heres a referral link https://www.vultr.com/?ref=9019507 where I get $10 or if you plan to spend more then $35 on your account you will get $100 and I will get $35 https://www.vultr.com/?ref=9019508-8H

My Setup

  • Debain 10 Buster
  • Tunnel subnet: 10.1.1.0
  • Proxy-VPS Tunnel IP: 10.1.1.1
@davecoutts
davecoutts / unifi_ubuntu_2004.sh
Last active October 22, 2024 16:08
Install Ubiquiti Unifi Controller on Ubuntu 20.04
# Install Ubiquiti Unifi Controller on Ubuntu 20.04.
# As tested on a fresh install of ubuntu-20.04.1-live-server, August 22nd 2020.
# Thanks to https://gist.github.com/tmuncks for posting the updated install steps.
sudo apt update
sudo apt install --yes apt-transport-https
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
@krisleech
krisleech / renew-gpgkey.md
Last active November 13, 2024 19:10
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@eduardoaugustojulio
eduardoaugustojulio / main.cpp
Last active April 14, 2021 20:46
C++ class that publish a service with message in the network using avahi msdn library.
#include <iostream>
#include <vector>
#include "publisher.h"
int main(const int argc, const char **argv)
{
std::vector<std::string> message;
for(auto i = 0; i < 10; i++)
message.push_back("test message " + std::to_string(i));
@DavidWells
DavidWells / aligning-images.md
Last active November 14, 2024 03:45
Guide to aligning images in github readme.md files. https://davidwells.io/snippets/how-to-align-images-in-markdown

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment