View script.sh
# best practice: linux | |
nano ~/.pgpass | |
*:5432:*:username:password | |
chmod 0600 ~/.pgpass | |
# best practice: windows | |
edit %APPDATA%\postgresql\pgpass.conf | |
*:5432:*:username:password | |
# linux |
View AWSLambda1.csproj
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp3.1</TargetFramework> | |
<LangVersion>latest</LangVersion> | |
<AWSProjectType>Lambda</AWSProjectType> | |
<AssemblyName>bootstrap</AssemblyName> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Amazon.Lambda.CloudWatchLogsEvents" Version="2.0.0" /> |
View dotnet-framework-build-action-with-conditionals.yml
name: EZRep Build | |
on: | |
push: | |
tags: releases/[1-9]+.[0-9]+.[0-9]+ | |
branches: master | |
jobs: | |
build: | |
runs-on: windows-latest |
View dotnet-framework-build-action.yml
name: EZRep Build | |
on: | |
push: | |
branches: master | |
jobs: | |
build: | |
runs-on: windows-latest |
View gist:48bd5d42a1dcb7efdde485f163fc7269
Starting: UseDotNet | |
============================================================================== | |
Task : Use .NET Core | |
Description : Acquires a specific version of the .NET Core SDK from the internet or the local cache and adds it to the PATH. Use this task to change the version of .NET Core used in subsequent tasks. Additionally provides proxy support. | |
Version : 2.164.0 | |
Author : Microsoft Corporation | |
Help : https://aka.ms/AA4xgy0 | |
============================================================================== | |
Tool to install: .NET Core sdk version 3.1.x. | |
Found version 3.1.102 in channel 3.1 for user specified version spec: 3.1.x |
View head.html
{% assign cover_image = page.path | prepend: '/' | prepend: site.source %} | |
{% capture cover_image_exists %}{% cover_exists {{ cover_image }} %}{% endcapture %} | |
{% if page.image and cover_image_exists == "true" %} | |
<meta property="og:image" content="{{ site.url }}{{ page.url }}{{ page.image }}" /> | |
{% else %} | |
<meta property="og:image" content="{{ site.url }}/images/social/headshot.jpg" /> | |
{% endif %} |
View atom.xml
{% assign cover_image = post.path | prepend: '/' | prepend: site.source %} | |
{% capture cover_image_exists %}{% cover_exists {{ cover_image }} %}{% endcapture %} | |
{% if post.image and cover_image_exists == "true" %} | |
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="{{ site.url }}{{ post.url }}{{ post.image }}" /> | |
{% else %} | |
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="{{ site.url }}/images/social/headshot.jpg" /> | |
{% endif %} |
View window title bookmarklet.js
javascript: (function() { | |
function copyToClipboard(text) { | |
if (window.clipboardData && window.clipboardData.setData) { | |
return clipboardData.setData("Text", text); | |
} else if ( | |
document.queryCommandSupported && | |
document.queryCommandSupported("copy") | |
) { | |
var textarea = document.createElement("textarea"); | |
textarea.textContent = text; |