I hereby claim:
- I am alangarf on github.
- I am alangarf (https://keybase.io/alangarf) on keybase.
- I have a public key ASCUneDEm8yIbtpClAgmd8Lk1mSuGPtXeMzTNz9SgU104wo
To claim this, I am signing this object:
""" | |
Flip Flop | |
""" | |
from random import randrange | |
from migen.fhdl.module import Module | |
from migen.fhdl.structure import Signal | |
from migen.fhdl import verilog | |
from migen import run_simulation | |
I hereby claim:
To claim this, I am signing this object:
Silly issue with m68k never going into exception functions. |
#!/bin/bash | |
IFS=$'\n' | |
unsorted_hosts=($(aws ec2 describe-instances --query "Reservations[].Instances[].{Name:Tags[?Key=='Name'].Value|[0]}" --output text --filters "Name=tag:Name,Values=*$1*")) | |
hosts=($(sort -V <<<"${unsorted_hosts[*]}")) | |
unset IFS | |
len=$(expr ${#hosts[@]} - 1) | |
for i in $(seq 0 $len); do | |
id=$(expr $i + 1) |
#!/bin/bash | |
eth0_mac=$(curl -s http://169.254.169.254/latest/meta-data/mac) | |
eth0_ip=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4/) | |
vpc_id=$(curl -s http://169.254.169.254/latest/meta-data/network/interfaces/macs/$eth0_mac/vpc-id) | |
az=$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone/) | |
region=${az::-1} | |
instances=$(aws --region $region ec2 describe-instances --filters "Name=vpc-id,Values=$vpc_id" "Name=availability-zone,Values=$az" --query 'Reservations[*].Instances[*].PrivateIpAddress' --output=text) |
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Engineer: Alan Garfield <alan@fromorbit.com> | |
// | |
// Create Date: 14:26:42 02/20/2011 | |
// Design Name: DLG2416 to SPI | |
// Module Name: spidlg | |
// Project Name: | |
// Target Devices: XC9536 | |
// Description: Creates an SPI interface to the 8bit DLG2416 display |
disk_prefix=`lsblk | grep -e "disk /$" | cut -c -3` |
import curses | |
class WidgitWrapper(object): | |
""" | |
A widgit wrapper class to handle the framing of the widgit | |
""" | |
def __init__(self, win, y, x, height, width): | |
self.parent_win = win | |
self.y_pos = y |
import boto.sqs.regioninfo | |
import boto | |
region = boto.sqs.regioninfo.RegionInfo(name='elasticmq', endpoint='localhost') | |
conn = boto.connect_sqs(aws_access_key_id="x", aws_secret_access_key="x", region=region, is_secure=False, port=9324) | |
conn.get_all_queues() |