Skip to content

Instantly share code, notes, and snippets.

View robotamer's full-sized avatar

TaMeR robotamer

View GitHub Profile
@robotamer
robotamer / untar
Created February 24, 2023 19:13 — forked from jacius/untar
untar: A simple shell script to untar a tarball.
#!/bin/bash
#
# A simple command to untar any tarball.
#
# For times when you don't care whether it was compressed
# with bzip2 or gzip, you just want to untar it already!
#
# Usage: untar [-v|--verbose] file
#
@robotamer
robotamer / LXD-cheat-sheet.md
Last active January 29, 2023 08:35 — forked from berndbausch/LXD-cheat-sheet.md
LXD cheat sheet

Useful LXD commands

LXD is a system container manager.

lxc is the LXD CLI client tool.

LXC is the userspace interface for the Linux kernel containment feature.

LXD and lxc runs on top of LXC. LXC provides the basic functionality used under the hood by LXD. However, it should not be confused with the lxc CLI client tool provided by LXD.


Image

List available images

@robotamer
robotamer / Raspberry_Pi.md
Last active April 15, 2019 17:28 — forked from hofmannsven/README.md
Raspberry Pi Cheatsheet

Raspberry Pi

Setup

Find all available devices arp -a

Locate Raspberry (b8:27:eb) in Network: Pi Finder

SSH

  • Connect to device via SSH + Name: ssh pi@rasperrypi
@robotamer
robotamer / autocert-server.go
Created August 4, 2018 21:17 — forked from samthor/autocert-server.go
Demo autocert server in Go
package main
import (
"crypto/tls"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/user"
@robotamer
robotamer / he-dns-update.sh
Created June 15, 2018 11:28 — forked from joemiller/he-dns-update.sh
script for updating dynamic DNS records on he.net (hurricane electric)
#!/bin/bash
#
# Script for updating DNS records on Hurricane Electirc's DNS system (https://dns.he.net).
#
# The record will be updated with the IP address that originates the request.
#
# Usage
# -----
#
# Create config file `/etc/he-dns-update.conf`:
[
{
"name": "Afghanistan",
"code": "AF"
},
{
"name": "Åland Islands",
"code": "AX"
},
{