Skip to content

Instantly share code, notes, and snippets.

View CodeMouse92's full-sized avatar
Sipping coffee at my local café.

Jason C. McDonald CodeMouse92

Sipping coffee at my local café.
View GitHub Profile
using System.IO;
using System.Text;
using CliWrap;
namespace Corgibytes.Freshli.Cli.Functionality;
public static class InvokeCommand
{
public static string InvokeFreshli(string arguments)
{
# Do you keep forgetting about long-running processes on your machine,
# and you wind up stuck on something else while waiting?
# This bash function will remind you when your long-running process is done.
# 1. Ensure zenity is installed on your system (or modify the script below)
# 2. Add the following bash function to your shell profile (e.g. .bashrc)
hey() {
$@
@CodeMouse92
CodeMouse92 / useful_regexes.txt
Created February 24, 2021 01:54
Useful Search Regexes
# Replace all instances of string with std::string,
# without clobbering include statements, names, or anything with "string" in the name.
FIND ((?<!#include )[^\w>:\.])(string)([^\w])
REPLACE $1std::$2$3
@CodeMouse92
CodeMouse92 / project_wishlist.md
Last active January 23, 2020 20:15
2020 Coding Project Wishlist

2020 Coding Project Wishlist

These are (mostly) personal projects I want to try and release a functional version of in 2020.

Timecard 2.0

Timecard allows tracking and logging time spent on various tasks. This new version will also have tools for the Pomodoro technique built in.

This is a re-creation of the first working software project I ever created.

@CodeMouse92
CodeMouse92 / beginners-tag.md
Last active March 6, 2024 06:03
DEV.to Moderation Comments and Messages

MOVED TO https://github.com/CodeMouse92/DEVModInACan

#BEGINNERS TAG REMOVALS

Non-Beginner Article

All articles on #beginners should be written for those new to programming, development, networking, or to a particular language. These posts should also require little to no prerequisite knowledge. If you wish, you may rewrite your post to meet these requirements, at which point you may request that the tag be added back. Otherwise, just use the appropriate technology tags. (Read more about the tag rules here.)

Non-Beginner Question

THE CRANKY DEVELOPER'S MANIFESTO

I am developing this project for the sole purpose of my own enjoyment. I make no promises about release date, features, usability, stability, practicality, or compliance with any normal standards of software development.

In pursuit of my unhindered enjoyment of this project, the only end-user I choose to care about in this project is myself, and maybe a few select friends. The timeline, the features, and the implementation are all

Verifying my Blockstack ID is secured with the address 1NWRfydSKGpSX4423mgutNu6fMi52Qx81T https://explorer.blockstack.org/address/1NWRfydSKGpSX4423mgutNu6fMi52Qx81T
@CodeMouse92
CodeMouse92 / skill_list.md
Last active August 21, 2023 21:53
Languages and Skills [CodeMouse92]

Skill levels are indicated with this notation:

  • Basic [+]
  • Proficient [++]
  • Advanced [+++]
  • Expert [++++]

Programming Languages

  • ActionScript 3.0 [++++]
  • Assembly (X86) [+]
@CodeMouse92
CodeMouse92 / magic_hosts
Last active April 27, 2018 21:09
Magic Hosts Switcher (Bash Script)
#!/bin/bash
# Magic Hosts Switcher
# Automatically detects a target network and turns on/off LAN routing in
# your /etc/hosts file accordingly.
#
# Setup: In your root crontab, add and edit the following...
# * * * * * /path/to/magic_hosts
#
# AUTHOR(S): Jason C. McDonald
sudo add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main"
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt update
sudo apt install python-lldb-5.0
sudo apt install clang-5.0 clang-5.0-doc libclang-common-5.0-dev libclang-5.0-dev libclang1-5.0 libclang1-5.0-dbg libllvm-5.0-ocaml-dev libllvm5.0 libllvm5.0-dbg lldb-5.0 llvm-5.0 llvm-5.0-dev llvm-5.0-doc llvm-5.0-examples llvm-5.0-runtime clang-format-5.0 python-clang-5.0 libfuzzer-5.0-dev
sudo ln -sf /usr/bin/llvm-symbolizer-5.0 /usr/bin/llvm-symbolizer
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-5.0 60
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 50
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-5.0 60