Skip to content

Instantly share code, notes, and snippets.

View onefuncman's full-sized avatar
💭
One function should be enough for anyone...

onefuncman

💭
One function should be enough for anyone...
View GitHub Profile
@jeniferirwin
jeniferirwin / gist:1763faaeab91da1b098d978169af2d69
Last active April 20, 2023 23:48
PuTTY-like Numpad/Keypad Mapping for Windows Terminal 1.16 (written specifically for TinTin++ compatibility)
# I wrote these mappings when I wanted to migrate from using PuTTY to using
# Windows Terminal. Originally, all of my TinTin++ numpad macros were broken
# because the numpad acts differently in WT by default. These remappings
# make the keypad act like it did in PuTTY.
#
# This has only been tested for TinTin++. I don't really use the keypad in other
# programs, so I don't know if this breaks the functionality elsewhere.
#
# In Windows Terminal, open the Settings tab. In the lower left, you
# can 'Open JSON File'. Add the following lines to the 'actions' section.
@allenmichael
allenmichael / DaemonWorker.csproj
Created March 22, 2023 21:31
All the resources needed to create a .NET worker app to run on Amazon Linux through systemd
<Project Sdk="Microsoft.NET.Sdk.Worker">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<PublishTrimmed>true</PublishTrimmed>
@emilianavt
emilianavt / BestVTuberSoftware.md
Last active May 4, 2024 14:23
Best VTuber Software

Best VTuber software

This is a list of the most commonly used and relevant vtubing software. The "best" will always be subjective and depend on your specific requirements. Overall, the information in this list is as accurate as I could figure it out, but there might be errors or some details might become out of date. If you find anything that needs to be corrected, please let me know. You can also note it in a comment.

Additional explanations:

  • iPhone means that an iPhone is basically required
  • iFacialMocap support means that tracking data can be received from the iFacialMocap iPhone app
  • VMC protocol means that the application can send and/or receive tracking data from other VMC protocol capable applications, allowing the combination of multiple tracking methods (e.g. VSeeFace receiving VR tracking from Virtual Motion Capture and iPhone/ARKit face tracking from Waidayo)
  • Tobii means that the Tobii eye tracker is supported
@jaredcatkinson
jaredcatkinson / Get-InjectedThread.ps1
Last active April 22, 2024 19:09
Code from "Taking Hunting to the Next Level: Hunting in Memory" presentation at SANS Threat Hunting Summit 2017 by Jared Atkinson and Joe Desimone
function Get-InjectedThread
{
<#
.SYNOPSIS
Looks for threads that were created as a result of code injection.
.DESCRIPTION
@nicowilliams
nicowilliams / fork-is-evil-vfork-is-good-afork-would-be-better.md
Last active November 5, 2023 12:14
fork() is evil; vfork() is goodness; afork() would be better; clone() is stupid

I recently happened upon a very interesting implementation of popen() (different API, same idea) called popen-noshell using clone(2), and so I opened an issue requesting use of vfork(2) or posix_spawn() for portability. It turns out that on Linux there's an important advantage to using clone(2). I think I should capture the things I wrote there in a better place. A gist, a blog, whatever.

This is not a paper. I assume reader familiarity with fork() in particular and Unix in general, though, of course, I link to relevant wiki pages, so if the unfamiliar reader is willing to go down the rabbit hole, they should be able to come ou

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: