Skip to content

Instantly share code, notes, and snippets.

View pigeonhands's full-sized avatar
👻
Getting things done

Sam pigeonhands

👻
Getting things done
  • 2degrees
  • New Zealand
  • 03:42 (UTC +12:00)
View GitHub Profile
@pigeonhands
pigeonhands / smc.zsh-theme
Last active May 24, 2023 03:14
ZSH theme
# python venv, user, host, full path and branch on two lines for easier vgrepping
ZSH_THEME_VIRTUALENV_PREFIX="(%{$fg[magenta]%}"
ZSH_THEME_VIRTUALENV_SUFFIX="%{$fg[blue]%})"
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} +"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} ✱"
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✗"
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} ➦"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%} ✂"

Keybase proof

I hereby claim:

  • I am pigeonhands on github.
  • I am pigeonhands (https://keybase.io/pigeonhands) on keybase.
  • I have a public key whose fingerprint is EEDC 9817 9851 092B 2413 6CF7 3735 613A EAAA 16A6

To claim this, I am signing this object:

@pigeonhands
pigeonhands / alacritty.yml
Last active November 20, 2022 23:47
nvim, alacritty configurations
font:
size: 10.0
normal:
family: Hack NF
style: Regular
bold:
family: Hack NF
style: Bold
italic:
@pigeonhands
pigeonhands / ConsoleProgressBar.cs
Last active April 18, 2023 06:27
Progress bar for c# console applications displayed at the bottom of the terminal.
using System;
using System.IO;
using System.Text;
/// <summary>
/// Console progressbar
/// </summary>
public class ConsoleProgressBar : IDisposable {
public float CurrentProgress => writer.CurrentProgress;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Assets.scripts {
class ActionHandler : IEnumerable {
/// <summary>
using System;
using System.Linq;
/// <summary>
/// BahNahNah
/// Example sig:
/// 01 02 ?3 04
/// will match with
/// 01 02 A3 04
/// 01 02 03 04
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
public delegate void OnStringGet(string s);
public class RandomStringInvader : Control
{
private bool _PauseOnMouseExit = false;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
public delegate void ThreadQueueWorkDelegate<T>(T task);
/// <summary>
/// ThreadQueue
/// Made by BahNahNah
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
public static class DynamicCallRunPE
{
private delegate bool CreateProcess_Delegate(string applicationName, string commandLine, IntPtr processAttributes, IntPtr threadAttributes, bool inheritHandles, uint creationFlags, IntPtr environment, string currentDirectory, IntPtr startupInfo, IntPtr processInformation);
private delegate bool ThreadContext_Delegate(IntPtr thread, int[] context);
private delegate bool ProcessMemoryIntPtr_Delegate(IntPtr process, int baseAddress, IntPtr buffer, int bufferSize, int bytesRead);
private delegate bool ProcessMemoryByte_Delegate(IntPtr process, int baseAddress, byte[] buffer, int bufferSize, int bytesRead);
using System;
using System.Globalization;
using System.IO;
using System.Net;
using System.Runtime.Serialization.Json;
using System.Text;
using System.Text.RegularExpressions;
namespace SatoshiMines
{