Skip to content

Instantly share code, notes, and snippets.

View betmoar's full-sized avatar
🤖
I am a AI assistant

@betmoar betmoar

🤖
I am a AI assistant
View GitHub Profile
@betmoar
betmoar / Docker connect to remote server.md
Created December 18, 2024 19:55 — forked from prom3theu5/Docker connect to remote server.md
Connect to another host with your docker client, without modifying your local Docker installation

Run commands on remote Docker host

This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.

Enable Docker Remote API

First be sure to enable the Docker Remote API on the remote host.

This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.

@betmoar
betmoar / private_fork.md
Created November 15, 2024 13:06 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@betmoar
betmoar / iblocklist.sh
Last active June 23, 2018 21:20
iBlocklist to CIDR 24
#!/bin/bash
rm -f list*
rm -f cidr*
for url in $(curl -s https://www.iblocklist.com/lists.php \
| hxwls \
| egrep -B1 'star_[5]' \
| grep -v png \
| grep 'list=' \