This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# more stages... | |
# When using a Node image, make sure to use the amd64 version, or it will take forever | |
# GH Actions is running arm64 in a emulator (QEMU). This way, it will use the native amd64 and be much faster. | |
FROM --platform=linux/amd64 node:19 as static-assets | |
WORKDIR /app | |
COPY . . | |
RUN npm install ; npm run build | |
# more stages... |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task: | |
Access OpenVPN or any Service on Home Network from Public Networks (Hotel) without configuring router and without static IP | |
Step 1: | |
Install OpenVPN on any device connected to Home Network (Raspberry mychoice with pivpn) | |
- Change default OpenVPN protocol from UDP to TCP (Cloudflare doesn't support UDP) | |
- Make a note of TCP port number (default is 443) | |
- Grab the OpenVPN client config file | |
Step 2: | |
Install Cloudflared on Raspberry PI | |
- Create a tunnel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
/// <summary> Based on Patric Macvey's answer here https://stackoverflow.com/a/60998564/2608 </summary> | |
public class AzureStorageConnectionStringParser | |
{ | |
readonly Dictionary<string, string> _values = new Dictionary<string, string>(); | |
readonly string _connectionString; | |
public AzureStorageConnectionStringParser(string connectionString) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
#Import-Module PSColors | |
#Import-Module posh-git | |
Import-Module -Name Terminal-Icons |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
PowerShell.exe -Command "& '%~dpn0.ps1' -path '%~dp0'" | |
REM PAUSE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable tab completion of flags | |
source $(dirname $(gem which colorls))/tab_complete.sh | |
# Move standard ls | |
alias ols="ls" | |
# Base formats | |
alias ls="colorls -A" # short, multi-line | |
alias ll="colorls -1A" # list, 1 per line | |
alias ld="ll" # ^^^, NOTE: Trying to move to this for alternate hand commands | |
alias la="colorls -lA" # list w/ info |
NewerOlder