Skip to content

Instantly share code, notes, and snippets.

View Cambridgeport90's full-sized avatar

Katerina Ravenwolf Cambridgeport90

View GitHub Profile
@Sonictherocketman
Sonictherocketman / pine-to-mastodon.py
Created March 10, 2023 03:26
A script to automatically cross-post from Pine.blog to Mastodon.
#! /usr/bin/env python3
import argparse
from bs4 import BeautifulSoup
from contextlib import contextmanager
from datetime import datetime
import markdown
import json
import httpx
import sys
import uuid
@karenpayneoregon
karenpayneoregon / learn-csharp.md
Last active November 27, 2023 14:26
Learning C#

If you are serious to learn C# then consider

  • Pluralsight which is a paid for site with hundreds of course on C#. Start off using their AI assessment which will direct you on the proper path. Many of the courses have their own assessments too. Pluralsight makes it easy to learn from highly rated authors to accessing courses from any device e.g. laptop, phone or tablet.
  • Use Microsoft [Learn][1]
  • Take time to read Microsoft documentation e.g. read up on [general structure of a C# Program][2], [types][3] [operators and expressions][4] [statements][5] various [classes][6] [Object-Oriented programming][7] to name a few topics
  • During your learning try and keep things simple using either console or unit test projects, in other words separate backend learning from front end user interface learning.
  • At some point in time when you feel comfortable, scope out a simple project, write out task before coding then write the code rather than thinking and coding at the same time. Thinking and coding at a nov
@phil-scott-78
phil-scott-78 / Microsoft.PowerShell_profile.ps1
Last active November 19, 2022 18:19
Powershell Profile
function Run-Step([string] $Description, [ScriptBlock]$script)
{
Write-Host -NoNewline "Loading " $Description.PadRight(20)
& $script
Write-Host "`u{2705}" # checkmark emoji
}
[console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
$stopwatch = [system.diagnostics.stopwatch]::StartNew()
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active April 27, 2025 05:33
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@nissicreative
nissicreative / dreamhost-php.md
Last active September 1, 2020 14:05
Update PHP and install Composer on DreamHost

DreamHost PHP

Make PHP 7 default binary for CLI

ssh <server>
@breezhang
breezhang / Invoke-Template.txt
Last active April 14, 2023 19:14
Embedding PowerShell in your C# Application author :Douglas Finke
function Invoke-Template {
param(
[string]$Path,
[Scriptblock]$ScriptBlock
)
function Get-Template {
param($TemplateFileName)
$content = [IO.File]::ReadAllText(
(Join-Path $Path $TemplateFileName) )
Invoke-Expression "@`"`r`n$content`r`n`"@"