Skip to content

Instantly share code, notes, and snippets.

View projectoperations's full-sized avatar

projectoperations projectoperations

View GitHub Profile
@ecarlson94
ecarlson94 / README.md
Last active July 18, 2024 07:07
WSL Configuration

Installing WSL (windows subsystem for linux)

Running the azure-team terraform make file to create your infrastructure may not work on a Windows machine. If you cannot get it to run, install a linux distribution where you will exectute the tf files. Setting up a distribution with all of the right dependencies does involve a bit of setup to get it configured properly. The following is a list of steps you'll need to complete:

Install WSL

@projectoperations
projectoperations / Install-WSLAndUbuntu.ps1
Last active August 19, 2023 12:46 — forked from ScriptAutomate/Install-WSLAndUbuntu.ps1
Enable WSL and Install Ubuntu 22.04 (or 20.04)
<#
- BIOS of host machine also needs to be configured to allow hardware virtualization
- Windows 10 Pro or otherwise is needed; Windows 10 Home Edition CANNOT get WSL
- This gist WSLv2, but can use WSLv1 instead. I needed v1 as I run Windows 10 in a VM in Virtualbox.
- WSLv2 has been giving me problems in Virtualbox 6.1, but WSLv1 works properly.
- vbox has issues with the GUI settings when it comes to nested virtualization on certain systems,
so run the following if needing to give a VM this enabled setting:
VBoxManage modifyvm <vm-name> --nested-hw-virt on
#>
@projectoperations
projectoperations / config
Last active February 27, 2024 19:45 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = IGE Clouds Developer
email = support@igedevteam.onmicrosoft.com
username = @igewebs
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
@projectoperations
projectoperations / settings.json
Last active March 7, 2024 05:41 — forked from hl2guide/settings.json
example settings.json
{
"workbench.editor.showIcons": true,
"workbench.startupEditor": "none",
"editor.fontSize": 12,
"editor.minimap.enabled": false,
"editor.mouseWheelZoom": true,
"editor.tabSize": 4,
"editor.renderWhitespace": "all",
"editor.insertSpaces": true,
"editor.rulers": [
@projectoperations
projectoperations / localhost-https.md
Created October 21, 2023 01:53 — forked from kus/localhost-https.md
Local HTTPS server, generate SSL certificate

Chrome has decided that what they deem powerful web platform features such as Geolocation, Device motion / orientation, getUserMedia etc can no longer run on "Insecure Origins", HTTP (non-HTTPS) being one of them. Read more

So if you want to use these features in development and you are testing on a mobile via the IP of your computer, you now need to be serving the content over HTTPS for it to work.

Generate local SSL certificate

First check if you need to install openssl with which openssl. If nothing comes up run brew install openssl to install openssl with Brew.

openssl genrsa -des3 -passout pass:x -out localhost.pass.key 2048
openssl rsa -passin pass:x -in localhost.pass.key -out localhost.key

Creating a new ASP NET Core Web API

Pre-requiside

  • Ensure that you have installed .NET Core in your machine.

Creating the project

  • Open a terminal window (e.g. Gitbash, linux terminal, mac terminal, etc) then change directory to your projects folder. Inside the folder, run dotnet new webapi -o -n command. Example: dotnet new webapi -o PCShop.Api-n PCShop.Api.
@projectoperations
projectoperations / ecampusdev.code-workspace
Last active February 27, 2024 19:49 — forked from lucasjlatour/example.code-workspace
Workspace / Settings examples for VSCode IDE
{
"folders": [
{
"name": "Health Worker Logger",
"path": ".",
}
],
"extensions": {
"recommendations": [
"msjsdiag.debugger-for-chrome",
@projectoperations
projectoperations / docker-compose.ci.yml
Created November 19, 2023 12:53 — forked from ashiklom/docker-compose.ci.yml
GitHub actions + Docker Compose example
# CI overrides
version: '3'
services:
web:
environment:
- DATABASE_URL
- DJANGO_SETTINGS_MODULE
- SECRET_KEY
- PORT
@projectoperations
projectoperations / gist:9442621f5d927f090158a3c1507cb068
Created November 27, 2023 14:38 — forked from tomraithel/gist:4085481
HTML + CSS: A flipbook-like animation with CSS3
<div class="flipbook">
<div class="page left leftpage">
<div class="pagewrap">
<div class="page_content">
Dies ist die erste Seite des flipbooks
</div>
</div>
</div>
<div class="page center">
<div class="innerpage rightpage inner_right">
@projectoperations
projectoperations / Dockerfile
Last active May 14, 2024 02:24 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli