Skip to content

Instantly share code, notes, and snippets.

@jwoff78
jwoff78 / private_fork.md
Created September 6, 2022 11:19 — 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 git@github.com:usi-systems/easytrace.git

void Main()
{
// To run Hastebin in Docker:
// docker run --name pastebin -p 801:80 mkodockx/docker-pastebin
string baseUrl = "http://localhost:801/";
var hasteBinClient = new HasteBinClient(baseUrl);
HasteBinResult result = hasteBinClient.Post("Hello hastebin").Result;
if (result.IsSuccess)
@jwoff78
jwoff78 / ConsolePortScanner.cs
Created December 20, 2019 17:11 — forked from jonlabelle/ConsolePortScanner.cs
Simple async C# Open Port Network Scanner
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Net.Sockets;
namespace ConsolePortScanner
{
class MainClass