Skip to content

Instantly share code, notes, and snippets.

View kisom's full-sized avatar

Kyle Isom kisom

View GitHub Profile
@chrismeyersfsu
chrismeyersfsu / msp430_spi.c
Created August 11, 2012 19:13
TI MSP430 Launchpad SPI
//******************************************************************************
// MSP430G2xx3 Demo - USCI_A0, SPI 3-Wire Slave Data Echo
//
// Description: SPI slave talks to SPI master using 3-wire mode. Data received
// from master is echoed back. USCI RX ISR is used to handle communication,
// CPU normally in LPM4. Prior to initial data exchange, master pulses
// slaves RST for complete reset.
// ACLK = n/a, MCLK = SMCLK = DCO ~1.2MHz
//
// Use with SPI Master Incremented Data code example. If the slave is in

Notes from "Shut Up and Take My Money" by Josh Kaufman

Link: http://vimeo.com/71250239

Every business has five parts:

  1. Value creation
  2. Marketing - "here i am, this is what i do, here is why you should be interested"
  3. Sales - doing transactions
  4. Value delivery - what does it take to give what i've sold to the customer?
@baetheus
baetheus / README.md
Last active December 17, 2023 14:28
SmartOS Single IP with NAT using VLAN

WARNING

These intructions might work, but they need a bit of attention. I've been reading through ipf and smf documentation and have found a few ways to improve this process. When I have time I'll add that information here, until then, be sure to look into the ipf settings if you're having issues with routing. Good luck!

Foreword

This is a modified version of sjorge's instructions for Single IP with NAT. Those instructions can be found here: https://docu.blackdot.be/snipets/solaris/smartos-nat

The primary difference is that this version does not rely on etherstubs for internal switching, but instead uses a vlan configuration. The benefits of this method over using etherstubs are:

  1. Project Fifo (project-fifo.net) can create vms and zones with vlans, but does not currently have etherstub support.
  2. Vlan switching is supposedly more efficient than creating an etherstub to handle switching. I have not tested this statement.
@tel
tel / ParserCombinators.hs
Created November 3, 2014 19:54
Monad transformers and parser combinators
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module ParserCombinators where
{-
We'll build a set of parser combinators from scratch demonstrating how
they arise as a monad transformer stack. Actually, how they arise as a
choice between two different monad transformer stacks!
"0\x82\n\f\x02\x01\x030\x82\t\xcc\x06\t*\x86H\x86\xf7\r\x01" +
"\a\x01\xa0\x82\t\xbd\x04\x82\t\xb90\x82\t\xb50\x82\x05\xee\x06\t" +
"*\x86H\x86\xf7\r\x01\a\x01\xa0\x82\x05\xdf\x04\x82\x05\xdb0\x82\x05" +
"\xd70\x82\x05\xd3\x06\v*\x86H\x86\xf7\r\x01\f\n\x01\x02\xa0\x82" +
"\x04\xee0\x82\x04\xea0\x1c\x06\n*\x86H\x86\xf7\r\x01\f\x01\x03" +
"0\x0e\x04\bR\xb5Cg\x951\x95\xfa\x02\x02\a\xd0\x04\x82\x04\xc8" +
"'\xcdI\"\x8b,\x17\xa6\xe8\x15jO\xb6H\x90D\xfbH\xe85" +
"\xba{\xd4\x03\xe3\xf5\xaf\x1c\x05k3f\xcav\x933H\xcb\x020" +
"\xbeM\xca\xe7]\x00\xd4\xca\x1c\x15j\xd3B\\\xf6G\xaa\x18\xd0*" +
"$\xf2\xa4\x8e\x14\x94y\xbc\xd0\x17(^\xd0Mh#\xd4\xf8͎" +
@alirobe
alirobe / reclaimWindows10.ps1
Last active April 26, 2024 17:59
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@djg
djg / reading-list.md
Last active February 19, 2024 18:09
Fabian's Recommened Reading List
@jblang
jblang / rc2014.md
Last active January 20, 2024 14:57
RC2014 Links
@fnky
fnky / ANSI.md
Last active May 3, 2024 17:31
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@munificent
munificent / generate.c
Last active May 1, 2024 20:06
A random dungeon generator that fits on a business card
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u