Skip to content

Instantly share code, notes, and snippets.

View solrevdev's full-sized avatar
💭
🤓

John Smith solrevdev

💭
🤓
View GitHub Profile
@rhettre
rhettre / CBAT_limit_orders.py
Last active February 27, 2025 03:15
Place limit orders on Coinbase Advanced Trader for just below/above the spot price for your buys/sells. Executable and automatable in AWS
import http.client
import hmac
import hashlib
import json
import time
import base64
import uuid
from enum import Enum
import math
@khalidabuhakmeh
khalidabuhakmeh / PlaywrightFixture.cs
Created September 9, 2022 13:54
Playwright tests with XUnit
[CollectionDefinition(nameof(PlaywrightFixture))]
public class SharedPlaywrightCollection : ICollectionFixture<PlaywrightFixture> {}
// ReSharper disable once ClassNeverInstantiated.Global
public class PlaywrightFixture : IAsyncLifetime
{
public async Task InitializeAsync()
{
PlaywrightInstance = await Playwright.CreateAsync();
Browser = await PlaywrightInstance.Chromium.LaunchAsync();
@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