Skip to content

Instantly share code, notes, and snippets.

View officialmofabs's full-sized avatar

Moses Fabiyi officialmofabs

View GitHub Profile
@officialmofabs
officialmofabs / WSL-ssh-server.md
Created August 16, 2022 10:29 — forked from dentechy/WSL-ssh-server.md
A step by step tutorial on how to automatically start ssh server on boot on the Windows Subsystem for Linux

How to automatically start ssh server on boot on Windows Subsystem for Linux

Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.

  1. Edit the /etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
    1. Change Port to 2222 (or any other port above 1000)
    2. Change PasswordAuthentication to yes. This can be changed back to no if ssh keys are setup.
  2. Restart the ssh server:
    • sudo service ssh --full-restart
  3. With this setup, the ssh server must be turned on every time you run Bash on Ubuntu on Windows, as by default it is off. Use this command to turn it on:
name:
on:
push:
branches:
- main
- features/**
- dependabot/**
pull_request:
branches:
---
version: "2.1"
services:
webtop:
image: lscr.io/linuxserver/webtop:latest
container_name: pcinabox
privileged: true
environment:
- PUID=0
- PGID=0
@officialmofabs
officialmofabs / elasticsearch.md
Created January 21, 2023 14:34 — forked from bashkirtsevich/elasticsearch.md
mongo, elasticsearch & nginx in docker
@officialmofabs
officialmofabs / gpg-ssh-setup.md
Created January 21, 2023 14:46 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@officialmofabs
officialmofabs / Deploy-SPSolution.ps1
Last active March 7, 2023 17:43 — forked from bashkirtsevich/docker-compose.yml
Self signed ssl nginx
param(
[Parameter(Mandatory=$true)]
[string]$solutionName,
[Parameter(Mandatory=$true)]
[string]$solutionPath
)
function Test-SPSolutionDeployed([string]$solutionName)
{
$solution = Get-SPSolution -Identity $solutionName -ErrorAction SilentlyContinue
if (-not($solution))
@officialmofabs
officialmofabs / upload.sh
Created February 14, 2023 21:56 — forked from bashkirtsevich/upload.sh
Automatic github uploader
#!/bin/bash
TOKEN="..."
ORG="..."
for repo in */ ; do
repo_name=$(echo $repo | sed 's/\///')
echo "Found folder $repo_name"
cp LICENSE $repo_name/LICENSE
@officialmofabs
officialmofabs / .editorconfig
Last active February 17, 2023 17:05 — forked from excaribur/.editorconfig
Config vscode environment for 42 school
root = true
[*]
indent_style = tab
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@officialmofabs
officialmofabs / dev-setup.md
Created February 17, 2023 15:25 — forked from AleKiller21/dev-setup.md
Development environment setup: Installing WSL2, Hyper, ZSH, VSCode, OhMyZsh

Installing Windows Subsystem for Linux 2, Hyper, ZSH, Node.js and VSCode extensions

Preview

Requirements

Steps

@officialmofabs
officialmofabs / vscode-config.json
Last active April 22, 2024 20:44 — forked from eufelipe/vscode-config.json
minhas configs vscode-config.json
{
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 16,
"editor.fontLigatures": true,
"editor.showFoldingControls": "always",
"editor.folding": true,
// "editor.foldingStrategy": "indentation",