Skip to content

Instantly share code, notes, and snippets.

View solrevdev's full-sized avatar
💭
🤓

John Smith solrevdev

💭
🤓
View GitHub Profile
@rodgtr1
rodgtr1 / BikeChain.sol
Created April 24, 2022 03:30
The Smart Contract for the BikeChain app built in my YouTube tutorial - here.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract BikeChain {
address owner;
constructor() {
owner = msg.sender;
@okyrylchuk
okyrylchuk / Program.cs
Created January 19, 2022 23:18
Extensions GetEnumerator for foreach loops with Range type
foreach (int i in 3..5)
{
Console.WriteLine(i);
}
foreach (int i in ..3)
{
Console.WriteLine(i);
}
@calogxro
calogxro / caffeinated.html
Last active September 10, 2022 11:50
ToDo app to sample Caffeine backend (https://github.com/rehacktive/caffeine) - DEMO: http://3.72.37.48:8001/
<!--
# Caffeinated #
ToDo app made with Vue.js
to sample Caffeine backend (https://github.com/rehacktive/caffeine)
Created on Oct 24, 2021
by Calogero Miraglia (https://github.com/calogxro)
GitHub: https://gist.github.com/calogxro/6e601e07c2a937df4418d104fb717570
@davidfowl
davidfowl / .NET6Migration.md
Last active April 11, 2025 11:12
.NET 6 ASP.NET Core Migration
@davidfowl
davidfowl / MinimalAPIs.md
Last active March 16, 2025 16:47
Minimal APIs at a glance
@sannae
sannae / Basic_vagrantfile
Created August 18, 2021 14:56
Very simple vagrantfile to spin up a WinServ2019 VM with Chocolatey and VS Code
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Box
config.vm.box = "StefanScherer/windows_2019"
# Additional parameters to communicate with Windows
config.vm.boot_timeout = 60
@rodgtr1
rodgtr1 / awsCLIAutomation.sh
Created July 2, 2021 14:13
Script to authenticate with AWS CLI with MFA token
#!/bin/bash
set -e
# specify your MFA_DEVICE_ARN
MFA_DEVICE_ARN=YOURMFAARN
PATH_TO_CREDENTIALS_FILE=/path/to/.aws/credentials
echo $PATH_TO_CREDENTIALS_FILE
#1H = 3600
#2H = 7200
#3H = 10800
brew tap homebrew/cask-fonts
brew install --cask font-cascadia-code
brew install --cask font-cascadia-code-pl
brew install --cask font-cascadia-mono
brew install --cask font-cascadia-mono-pl
using System;
using System.Threading.Tasks;
namespace System.Collections.Concurrent
{
public static class ConcurrentDictionaryExtensions
{
/// <summary>
/// Provides an alternative to <see cref="ConcurrentDictionary{TKey, TValue}.GetOrAdd(TKey, Func{TKey, TValue})"/> that disposes values that implement <see cref="IDisposable"/>.
/// </summary>
sudo apt-get update
sudo apt-get install -y wget curl ca-certificates curl apt-transport-https lsb-release gnupg build-essential git docker.io docker-compose
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
# Add Repos
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg