Skip to content

Instantly share code, notes, and snippets.

View ssmereka's full-sized avatar

Scott Smereka ssmereka

View GitHub Profile
@ssmereka
ssmereka / gist:6517444
Last active August 22, 2024 16:26
Automatic Cookie Clicker and other cheats for http://orteil.dashnet.org/cookieclicker/
/**
* 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/
@ssmereka
ssmereka / server.js
Last active August 12, 2021 08:50
Quick example of a Node.JS Server. You can use this to get started learning node.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:6939066
Created October 11, 2013 17:49
Get SHA1 digital footprint from android application based on its package name.
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 / plexDatabaseBackupScript.sh
Last active October 14, 2024 18:27
Plex Media Server database backup script.
#!/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 / plexDatabaseRestoreScript.sh
Created February 2, 2014 20:41
Plex Media Server database backup restore script.
#!/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 / main.js
Created February 27, 2015 03:36
Javascript Scope
var x = 5;
function one() {
console.log("one(): %s", x);
}
function two() {
console.log("two(): %s", x);
var x;
}
{
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 / README.md
Last active May 27, 2021 14:47
Installing Cassandra on Mac: A Quick Guide

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.

@ssmereka
ssmereka / README.md
Last active December 14, 2016 19:12
Generic HMI Broker Design

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 / keybase.md
Created July 6, 2017 20:00
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: