Skip to content

Instantly share code, notes, and snippets.

@stonehippo
stonehippo / sprint_counter.ino
Created July 11, 2017 06:25
Using sprintf in Arduino code
long counter = 0;
void setup() {
Serial.begin(115200);
}
void loop() {
char buffer[50];
sprintf(buffer, "The count is now %d.\n", counter++);
Serial.print(buffer);
delay(1000);
@stonehippo
stonehippo / map_apis.md
Last active September 18, 2017 02:42
Mapping and geospatial tools and APIs

Map APIs

I've got to do some geospatial work, so I'm collecting links to various mapping, location and geospatial APIs here. If and when I work with these APIs, I may add some notes, too.

APIs

@stonehippo
stonehippo / SSLInfo.java
Created October 15, 2017 15:43
A Java class for getting info about the currently available SSL ciphers available (from http://markmail.org/message/zn4namfhypyxum23)
// invoke this with: java -showversion SSLInfo
// Probably a good idea to compile this with -source & - target set to the Java version you're testing
import java.util.Iterator;
import java.util.Map;
import java.util.TreeMap;
import javax.net.ssl.SSLServerSocketFactory;
public class SSLInfo
{
public static void main(String[] args)
@stonehippo
stonehippo / car_simulator_data.md
Created October 16, 2017 12:32
Data inventory for a car simulator

Car Simulator Data

Data points

  • Speed (mph/kph)
  • Top speed record (mph/kph)
  • Average speed (mph/kph)
  • Tachometer (revs per minute)
  • Odometer (miles/kilometers)
  • Trip odometer (A or B, miles/kilometers)
@stonehippo
stonehippo / Adafruit_nrf52_example.ino
Last active June 25, 2021 21:39
Some example Arduino IDE code showing how to do various things with Adafruit nrF52 Feather BLE
/*
* Adafruit nRF52 Feather Example
* Copyright (c) 2018-2019 George White <[email protected]>
*
* MIT LICENSE, see LICENSE.txt at https://gist.github.com/stonehippo/ffbed2f32e1813f4019ecedd22062636
*
* I made this example file for a coworker. It illustrates a few things:
*
* - Setting up a custom service
* - Setting up custom characteristics on that service
@stonehippo
stonehippo / prog_langs.md
Last active May 9, 2025 21:37
Some programming languages I'm interested in
@stonehippo
stonehippo / data-formats.md
Last active May 27, 2018 01:54
Some data formats to keep in mind
@stonehippo
stonehippo / my_settings.terminal
Created July 29, 2018 14:14
OS X Terminal Settings - my custom 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>BackgroundColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGKyxYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKcHCBMZHSQoVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T
Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPEDYwLjA0NTIzMjUw
MDM1IDAuMDQ2MTk0ODkzOTcgMC4wNDYxOTQ4OTM5NyAwLjg5NzQ4OTE2MThPEDcwLjA0

Granting DynamoDB access to an IAM user

To grant DynamoDB access (or any other AWS service) to an IAM account, a security policy must be applied. This requires logging in with the root account, or an IAM user with permission to manage other IAM user access.

  1. Log in to the AWS Console at https://console.aws.amazon.com/
  2. Go to the IAM service dashboard: https://console.aws.amazon.com/iam/home?#/home
  3. Under IAM Resources, click Users: [n]
  4. In the list of users, find and select my account, then click it
  5. Click the Add Permissions button
  6. Leave 'Add user to groupselected, click theCreate Group` button