Skip to content

Instantly share code, notes, and snippets.

Avatar
🌱

Charles Roper charlesroper

🌱
View GitHub Profile
@charlesroper
charlesroper / How to find what's using storage space in Linux.md
Last active Jan 20, 2023
How to find what's using storage space in Linux.md
View How to find what's using storage space in Linux.md

How to find what's using storage space in Linux

#linux #bash #cli #filesystem

See this post on GitHub for context.

We can use the du command to determine disk usage. We need to combine it with the find command to check only file sizes and exclude directory sizes.

Manual pages:

@charlesroper
charlesroper / Test.cs
Last active Oct 16, 2022
Screenpresso TEST.cs
View Test.cs
// Version: 1
// ScriptName: TEST
// Compiler: C#
// References: System.dll;System.Xml.dll;System.Windows.Forms.dll;CloudinaryDotNet.dll; CloudinaryDotNet.Actions.dll; dotenv.net
// SupportedMedias: Image, AcceptsMultipleFiles
// AutoRun: False
// MaxExecutionTime: 180
namespace Script
{
View Program.cs
namespace HelloWorld
{
using CloudinaryDotNet;
using CloudinaryDotNet.Actions;
using dotenv.net;
class Program
{
static void Main()
{
View inclusive-fonts.md

Inclusive fonts

Accessible, inclusive fonts have been playing on my mind lately. So I've spent some time researching options for a workhorse body font.

I've considered a few things:

  1. Font must be highly legible and practical in a wide variety of formats. This includes print, digital, signs, TV, smartboard, soggy paper, laminated sheets, etc. Digital alone has a whole array of sub-categories to consider, including good quality screen, poor quality, low resolution, small screen, large screen, e-ink, etc.
  2. Should come in many weights and styles and be feature rich (at least of regular + bold + italic)
  3. Should be free or inexpensive.
@charlesroper
charlesroper / strengths.md
Last active May 24, 2022
Build on strengths not weaknesses.md
View strengths.md

A passage from The Happy Manifesto by Henry Stewart

Build on strengths not weaknesses

Here’s a challenge. Let us say that you have two salespeople but you can only afford to send one on a course. Both have been with you for ten years. One brings in £200,000 a year and the other brings in just £50,000. If the aim is to bring the maximum benefit to the company, who do you send on the course?

Your first impulse may have been to send the person selling just £50,000. They clearly need help and development. But, if you want the most return on your investment in training, you are likely to get a far bigger increase in sales from the one already performing well.

The concept behind this comes from Marcus Buckingham and his StrengthsFinder analysis with Gallup. In many of their surveys they ask the question, ‘At work today, did you get to do what you do best?’ They have asked this of over a million people. Only around 20% say yes[^1].

View Microsoft.PowerShell_profile.ps1
# PowerShell 7 Profile
# Load Scripts
$env:Path += ";$(Split-Path $profile)\Scripts"
# Load posh-git
Import-Module posh-git
$env:POSH_GIT_ENABLED = $true
# Load posh-sshell
View keybase.md

Keybase proof

I hereby claim:

  • I am charlesroper on github.
  • I am charlesroper (https://keybase.io/charlesroper) on keybase.
  • I have a public key ASAx0GqnbXcxHEViHChTFGcyC3VZQvY_I5PCB2NPL6PQogo

To claim this, I am signing this object:

View inclusive-fonts.md

Inclusive fonts

Accessible, inclusive fonts have been playing on my mind lately. So I've spent some time researching options for a workhorse body font.

I've considered a few things:

  1. Font must be highly legible and practical in a wide variety of formats. This includes print, digital, signs, TV, smartboard, soggy paper, laminated sheets, etc. Digital alone has a whole array of sub-categories to consider, including good quality screen, poor quality, low resolution, small screen, large screen, e-ink, etc.
  2. Should come in many weights and styles and be feature rich (at least of regular + bold + italic)
  3. Should be free or inexpensive.
@charlesroper
charlesroper / codeswing.json
Last active Apr 12, 2021
Vanilla JS Accordion
View codeswing.json
{
"scripts": [],
"styles": []
}