Skip to content

Instantly share code, notes, and snippets.

View eddyekofo94's full-sized avatar
💭
Happily Coding

Eddy Ekofo eddyekofo94

💭
Happily Coding
View GitHub Profile
@eddyekofo94
eddyekofo94 / WSL2_VPN_Workaround_Instructions.md
Created May 20, 2022 10:48 — forked from machuu/WSL2_VPN_Workaround_Instructions.md
Workaround for WSL2 network broken on VPN

Overview

Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active. The workaround breaks down into two problems:

  1. Network connection to internet
  2. DNS in WSL2

This problem is tracked in multiple microsoft/WSL issues including, but not limited to:

//
// Created by Eddy Ekofo on 09/05/2020.
//
#pragma once
#include <chrono>
#include <iostream>
class Benchmark
{
---
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "/home/eekofo/eekofo/Documents/Other/CPP/lab1/main.out",
"args": ["-fThreading"],
"stopAtEntry": true,
//
// ViewController.swift
// JSON_Parsing_Tut
//
// Created by Eddy Ekofo on 05/04/2018.
// Copyright © 2018 eddyekofo.com. All rights reserved.
//
import UIKit
//
@eddyekofo94
eddyekofo94 / .vimrc
Last active May 27, 2020 21:37
Sample Vim config with plugins
filetype off " required
if has('nvim') || has('termguicolors')
set termguicolors
endif
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
@eddyekofo94
eddyekofo94 / package.json
Created May 21, 2017 15:24
My Vuejs Webpack2 configuration
{
"name": "pyramid_vue",
"version": "1.0.0",
"description": "a Vuejs project",
"main": "index.js",
"scripts": {
"dev": "webpack --watch",
"build": "webpack --progress --hide-modules"
},
"repository": "",
@eddyekofo94
eddyekofo94 / zshrc
Created May 21, 2017 15:19
My .zshrc file
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/eddyekofo/.oh-my-zsh
export PATH="$HOME/.fastlane/bin:$PATH"
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes