Skip to content

Instantly share code, notes, and snippets.

View noahmorrison's full-sized avatar

Noah Morrison noahmorrison

View GitHub Profile
@noahmorrison
noahmorrison / output
Created August 25, 2018 01:35
Chevron custom data example
type: dog
mythical: false
"An ordinary animal"
type: kerberos
mythical: true
"A truly mythical creature!"
Offset: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000: 00 01 00 00 00 FF FF FF FF 01 00 00 00 00 00 00 ................
00000010: 00 0C 02 00 00 00 3F 44 61 74 4D 61 6B 65 72 2C ......?DatMaker,
00000020: 20 56 65 72 73 69 6F 6E 3D 31 2E 30 2E 30 2E 30 .Version=1.0.0.0
00000030: 2C 20 43 75 6C 74 75 72 65 3D 6E 65 75 74 72 61 ,.Culture=neutra
00000040: 6C 2C 20 50 75 62 6C 69 63 4B 65 79 54 6F 6B 65 l,.PublicKeyToke
00000050: 6E 3D 6E 75 6C 6C 05 01 00 00 00 16 44 61 74 4D n=null......DatM
00000060: 61 6B 65 72 2E 44 61 74 61 53 74 72 75 63 74 75 aker.DataStructu
00000070: 72 65 05 00 00 00 08 53 6F 6D 65 45 6E 75 6D 0C re.....SomeEnum.
00000080: 53 74 72 69 6E 67 54 68 69 6E 67 73 0E 55 6E 73 StringThings.Uns
2538888 files found
16823 files ignored
Chunk: 168096 files - 49.0 G
Chunk: 136788 files - 49.0 G
Chunk: 57117 files - 49.0 G
Chunk: 149576 files - 49.0 G
Chunk: 123962 files - 46.0 G
Chunk: 363260 files - 49.0 G
Chunk: 169133 files - 49.0 G
Chunk: 348598 files - 49.0 G
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
@noahmorrison
noahmorrison / keybase.md
Created February 11, 2017 20:44
For proving identity on keybase.io

Keybase proof

I hereby claim:

  • I am noahmorrison on github.
  • I am noahmorrison (https://keybase.io/noahmorrison) on keybase.
  • I have a public key whose fingerprint is B45C 0F11 420C A4C9 AE46 BC30 BF15 41E1 682E 168F

To claim this, I am signing this object:

#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Language: C\n");
printf("%d\n", fib(atoi(argv[1])));
return 0;
}
int fib(int n)
@noahmorrison
noahmorrison / DictionaryOrderTest.cs
Last active August 29, 2015 14:24
C# dictionary ordering
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DictionaryOrderTest
{
class Program
{
static void Main(string[] args)
static class Program
{
static void Main()
{
long theAmountOfTicksItTakesToGetToTheCurrentTime_MultiplyBy_TimeSpanDotTicksPerMillisecond_ToGetCurrentTimeInMilliseconds__NoteThatWouldNotBeEqualToTheTimeSinceTheEpoch
= DateTime.Now.Ticks;
float aFloatThatIsWasImplicitlyCastedFromALongAndLossDataInTheProcess_IsEqualTo6Dot35712541EPlus17
= theAmountOfTicksItTakesToGetToTheCurrentTime_MultiplyBy_TimeSpanDotTicksPerMillisecond_ToGetCurrentTimeInMilliseconds__NoteThatWouldNotBeEqualToTheTimeSinceTheEpoch
+ 10;
@noahmorrison
noahmorrison / dopen
Created December 9, 2014 04:41
Open desktop files using dmenu
#!/bin/sh
bin="/usr/share/applications"
app=`ls --color=never -1 $bin | grep -e ".desktop\$" | rev | cut -c 9- | rev | dme
path="$bin/${app}.desktop"
grep '^Exec' $path | tail -1 | sed 's/^Exec=//' | sed 's/%.//' | sh
@noahmorrison
noahmorrison / battery
Last active July 8, 2022 19:30
Bar for bspwm
#!/bin/sh
sc () {
if [ $COLOR = "bar" ] ; then
case $2 in
bold) case $1 in
black) echo "%{F#FF000000}";;
red) echo "%{F#FFFF0000}";;
green) echo "%{F#FF00FF00}";;
yellow) echo "%{F#FFFF4500}";;