Skip to content

Instantly share code, notes, and snippets.

View lynsei's full-sized avatar
:octocat:
Will code for food

Lynsei lynsei

:octocat:
Will code for food
View GitHub Profile
/*`de x&* ``^~x&* *``^~x&*`` *``^~x&* *``^~x&*`` *``^~x&*`` *``^*``^~x~x&*``~ `*xc
`` `
` _____ ______ _________________________________ _____ ______ _______ (R) `
` | ||_____] | |______| | | | || \|______ `
` |_____||_____]__| |______|_____ | |_____ |_____||_____/|______ `
` `^*+**: Disruptiveware, LLP. `
` `
@lynsei
lynsei / Colored Countdown.markdown
Created December 17, 2015 06:45
Colored Countdown
@lynsei
lynsei / Colored Countdown.markdown
Created December 17, 2015 06:45
Colored Countdown
@lynsei
lynsei / hmac.dynamodb.examples.go
Created December 19, 2015 03:41
gist copied code that I can reference in the future for creating go-language compiled endpoints for web socket apps
// this shows a client implementation for HTTP & HMAC hashing using AES256bit encryption
// it also shows date functions and other things that might be useful as I start to move all my gateway code to compiled go-lang interfaces
// copied from: https://github.com/tav/dynamodb/blob/master/dynamodb.go#L436
// looking forward towards implementing this kind of code for ubernetes and beanstalk containers
func (c *Client) RawRequest(method string, payload []byte) ([]byte, error) {
req, err := http.NewRequest("POST", c.endpoint.url, bytes.NewReader(payload))
if err != nil {
return nil, err
@lynsei
lynsei / gitenv.sh
Last active February 12, 2022 16:25
change git url to https
#!/usr/bin/env bash
# Utility to change the connection method for a git repo.
# === Colour Definitions ===
red='\e[0;31m'
green='\e[0;32m'
purple='\e[0;35m'
orange='\e[0;33m'
# No Color, i.e. turn off color
@lynsei
lynsei / lambda.objects.closures.sandbox.php
Last active February 3, 2022 23:21
[lambda php code] repurposing this older code for some crypto project I'm working on #crypto #php #lambda #closures
<?php
/*
Creator: Lynsei
On: 11. December 2015 */
/*
The following code is just a reminder of why I'm using Closures to develop the object model
@lynsei
lynsei / receive.sns.php
Last active January 1, 2022 13:14
amazon sdk php :: receive aws SNS notifications (example)
<?php
/*+--------------------[objectcode: 12/20/2015 1:32:39 PM] [/end.automation]+--------------------+*/
/*
_____ ______ _________________________________ _____ ______ _______ (R)
| ||_____] | |______| | | | || \|______
|_____||_____]__| |______|_____ | |_____ |_____||_____/|______
`*+**: Disruptiveware, LLP. Authorized Sales USA/Canada
Creator: Lynsei Asynynivynya
@lynsei
lynsei / data.sift.library.objectcode.php
Last active February 15, 2022 20:18
OSL That I've written for Data Sifting and Cleansing in various formats. I use this with my crypto algorithms to make sure nothing weird messes up the character conversions
<?php
/*
_____ ______ _________________________________ _____ ______ _______ (R)
| ||_____] | |______| | | | || \|______
|_____||_____]__| |______|_____ | |_____ |_____||_____/|______
/****
* @desc: sift and filter through data like a mothafuka
* @vers: reliable v3.3 this is ported from old old code that is quite stable
@lynsei
lynsei / Gemfile
Created December 20, 2015 22:38 — forked from ahaedike/Gemfile
source "https://rubygems.org"
gem 'eventmachine'
gem 'rubysl-stringio'
gem 'sinatra'
gem 'yajl-ruby', require: 'yajl'
gem 'thin'
gem 'em-websocket', :git=>'https://github.com/igrigorik/em-websocket.git'
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby