Skip to content

Instantly share code, notes, and snippets.

View xpando's full-sized avatar

David Findley xpando

View GitHub Profile
@xpando
xpando / issue
Created February 4, 2019 03:09
Color TTY
]P01c1c1c
]P1ff005b
]P2cee318
]P3ffe755
]P4048ac7
]P5833c9f
]P60ac1cd
]P7e5e5e5
]P8666666
]P9ff00a0
@xpando
xpando / ArchLinuxNotes.md
Last active April 23, 2024 15:39
My notes on installing and configuring Arch Linux.
@xpando
xpando / kill.md
Created July 30, 2018 21:16
Killing/Suspending CLI commands that don't play nice.

Killing/Suspending CLI commands that don't play nice.

  • Ctrl-C - Interrupt signal
  • Ctrl-\ - Stop signal
  • Ctrl-Z - Suspend signal

kill %% and/or kill -9 %%

%% is an alias for the last "job" in background/suspended.

@xpando
xpando / MergeLinkedListsTests.cs
Last active July 6, 2018 18:23
Merge Sorted Linked Lists
// Playing around with solutions to this problem:
// https://codefights.com/interview-practice/task/6rE3maCQwrZS3Mm2H
using System;
using System.Linq;
using System.Collections.Generic;
using Xunit;
namespace Tests
{
@xpando
xpando / david.itermcolors
Created August 29, 2016 17:30
My iTerm2 color scheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.13574661314487457</real>
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace Algo
{
public class Trie
{
@xpando
xpando / Hash.ps1
Last active November 23, 2015 18:58
PowerShell script to hash files. Can accept pipeline input to hash multiple files into one hash. e,g, dir *.dll | Hash.ps1
[CmdletBinding()]
Param(
[Parameter(Mandatory=$True,ValueFromPipelineByPropertyName=$True,ValueFromPipeline=$True,Position=0)]
[Alias("PSPath","FullName")]
[String[]]$Path,
[int]$BufferSize = 65535
)
Begin {
$buffer = New-Object byte[] $BufferSize
$md5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider
param(
[string] $certName
)
# get the directory that vagrant is installed in
$bin = Split-Path (Get-Command vagrant).Path
# get the embedded folder that contains ruby and curl
$embedded = (Resolve-Path (Join-Path $bin '..\embedded')).ProviderPath
@xpando
xpando / Import command
Created May 16, 2015 21:39
gnome terminal config
gconftool-2 --load gnome-terminal-conf.xml
@xpando
xpando / flag.txt
Last active August 29, 2015 14:10
ASCII Logos
--+********++-
-##############*
*##############* -*+- -+
-############### *####**+++***##+
*##############+ -###############
+##############* *##############+
#####****######- +##############*
-+-- -+** -###############-
++*#######**+- +##############*
*##############+ -+*#######**++