Skip to content

Instantly share code, notes, and snippets.

View roblight's full-sized avatar

Rob Light roblight

View GitHub Profile
@roblight
roblight / index.ts
Last active September 17, 2015 15:53 — forked from davideast/index.ts
Simple Angular 2 Forms with Firebase
import {bootstrap, Component, Decorator, View, If, For, EventEmitter} from 'angular2/angular2';
import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/forms';
@Component({
selector: 'app',
injectables: [FormBuilder]
})
@View({
template: `
<div class="container" [control-group]="myForm">
@roblight
roblight / java-signals-test.sh
Created January 26, 2016 12:28 — forked from nicoulaj/java-signals-test.sh
What signals can your JRE handle ?
#!/bin/bash
# Get temp dir
tmpdir=$(mktemp -d)
# Generate test
cat > ${tmpdir}/ListenToSignal.java <<EOF
import sun.misc.Signal;
import sun.misc.SignalHandler;
public class ListenToSignal {
const { DataTypes } = require('sequelize')
module.exports = {
schema: {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
allowNull: false,
autoIncrement: true,
},
@roblight
roblight / sequelize-migration-file-generator.js
Created February 2, 2018 19:43 — forked from manuelbieh/sequelize-migration-file-generator.js
Creates migration files for existing sequelize models
import * as models from "models";
import fs from "fs";
for(let model in models) {
let attributes = models[model].attributes;
for(let column in attributes) {
delete attributes[column].Model;
delete attributes[column].fieldName;
@roblight
roblight / sequelize-schema-file-generator.js
Created February 2, 2018 19:43 — forked from manuelbieh/sequelize-schema-file-generator.js
Automatically generates migration files from your sequelize models
import * as models from "models";
import Sequelize from "sequelize";
import fs from "fs";
delete models.default;
const sequelize = new Sequelize(
'',
'',
'', {
@roblight
roblight / streamtest.js
Created September 23, 2019 14:16 — forked from dirkvm/streamtest.js
websocket based streaming for Tesla
const util = require('util');
const WebSocket = require('ws');
const vehicle_id = ''; // as returned by the /vehicles api call
const token = ''; // tokens[0] as returned by the /vehicles api call
const email = ''; // login e-mail
const stream_columns = [
'speed',
'odometer',
@roblight
roblight / get-vmwarefusion.sh
Created November 19, 2025 15:13 — forked from johnvilsack/get-vmwarefusion.sh
Direct Download VMWare Fusion - Download, Install, and Update VMWare Fusion Automatically.
#!/usr/bin/env bash
# VMware Fusion Latest Version Downloader, Installer, and Updater
# This script automatically finds, downloads, and optionally installs the highest version available
#
# Inspired by this gist: https://gist.github.com/jetfir3/6b28fd279bbcadbae70980bd711a844f
#
# Usage: $0 [-y] [-i] [-d] [-f] [-t <dmg_path>]
# -y: Skip download confirmation prompt
# -i: Automatically install after download (implies -y)