Skip to content

Instantly share code, notes, and snippets.

Scott Smereka ssmereka

Block or report user

Report or block ssmereka

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am ssmereka on github.
  • I am ssmereka (https://keybase.io/ssmereka) on keybase.
  • I have a public key ASCTOu_AvSt8rT-cUuOmZy7S_znjV_er1YxiZkJzZT-OXQo

To claim this, I am signing this object:

@ssmereka
ssmereka / README.md
Last active Dec 14, 2016
Generic HMI Broker Design
View README.md

Generic HMI & Broker

The following architecture shows how multiple Generic HMI components, each with their own websocket connection, can share SDL Core's single websocket connection through the use of a Broker.

HMI-Broker-Diagram

Diagram Actors

  • User - a person interacting with the HMI's user interface(s).
  • HMI Display - React application emulating the main screen in a vehicle.
  • Hard Buttons - React application emulating the hard buttons in a vehicle's infotainment system, including driver steering wheel controls.
@ssmereka
ssmereka / README.md
Last active Oct 17, 2018
Installing Cassandra on Mac: A Quick Guide
View README.md

Install Cassandra on Mac

  1. Install most recent version of Java. Install homebrew if you don't already have it.

    brew install java
    
  2. Grab a link to the most recent version of Cassandra from their download page.

View Common Response
{
type: "array", // Describes what type of data is in the response,it can be any javascript type (string, array, number, etc)
response: [ ], // This is the data
errorType: "object" // Present when there is an error and describes the type of the error attribute.
error: {} // Present when there is an error, this is the actual error(s)
trace: "in here is a string log trace." // log trace present when there is an error and debug is on.
meta: { //Optionally present
// Includes optional meta data about the response.
}
}
@ssmereka
ssmereka / main.js
Created Feb 27, 2015
Javascript Scope
View main.js
var x = 5;
function one() {
console.log("one(): %s", x);
}
function two() {
console.log("two(): %s", x);
var x;
}
@ssmereka
ssmereka / plexDatabaseRestoreScript.sh
Created Feb 2, 2014
Plex Media Server database backup restore script.
View plexDatabaseRestoreScript.sh
#!/bin/bash
# Restore a Plex database.
# Author Scott Smereka
# Version 1.0
# Script Tested on:
# Ubuntu 12.04 on 2/2/2014 [ OK ]
# Plex Database Location. The trailing slash is
@ssmereka
ssmereka / plexDatabaseBackupScript.sh
Last active Oct 26, 2019
Plex Media Server database backup script.
View plexDatabaseBackupScript.sh
#!/bin/bash
# Backup a Plex database.
# Author Scott Smereka
# Version 1.0
# Script Tested on:
# Ubuntu 12.04 on 2/2/2014 [ OK ]
# Plex Database Location. The trailing slash is
@ssmereka
ssmereka / gist:6939066
Created Oct 11, 2013
Get SHA1 digital footprint from android application based on its package name.
View gist:6939066
public static final String tag = "Security";
private static final boolean debug = true;
/**
* Gets an application's SHA1 footprint(s) from their digital signature(s).
* @param packageName is the package name of the application you want to retrieve
* the SHA1 footprints from.
* @return a list of SHA1 footprints or null.
*/
private ArrayList<String> getFootprints(String packageName) {
@ssmereka
ssmereka / server.js
Last active Dec 23, 2015
Quick example of a Node.JS Server. You can use this to get started learning node.js.
View server.js
/**
* Example Node.JS Application
* Shows just how easy node can be.
*/
/* Install Node.JS and NPM
* On Ubuntu:
sudo apt-get update -y --force-yes -qq
sudo apt-get install -y --force-yes -qq python-software-properties > /dev/null 2>&1
@ssmereka
ssmereka / gist:6517444
Last active Oct 31, 2019
Automatic Cookie Clicker and other cheats for http://orteil.dashnet.org/cookieclicker/
View gist:6517444
/**
* Auto Cookie Clicker
* Auto click cookies and golden cookies in the Cookie Clicker
* game found here: http://orteil.dashnet.org/cookieclicker/
*/
/**
* How to in Chrome:
* Open the browers and navigate to http://orteil.dashnet.org/cookieclicker/
You can’t perform that action at this time.