Skip to content

Instantly share code, notes, and snippets.

View bseib's full-sized avatar

Broc Seib bseib

View GitHub Profile
@bseib
bseib / designer.html
Created July 29, 2014 19:31
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../core-icons/av-icons.html">
@bseib
bseib / animation.less
Created February 6, 2015 15:02
CSS by Fontello.com, for spinning a font character as a pacifier
/*
Animation example, for spinners
*/
.animate-spin {
-moz-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
-webkit-animation: spin 2s infinite linear;
animation: spin 2s infinite linear;
display: inline-block;
}
@bseib
bseib / system_backup.pl
Created April 20, 2015 14:54
Script to backup filesystems everyday with a unix 'dump' command.
#!/usr/local/bin/perl -w
#
# $Id: system_backup,v 1.13 2006/09/15 02:48:23 bseib Exp $
##
# 'system_backup'
#
# Description: Run the unix 'dump' command on various filesystems, using a different
# dump level depending on the day of the month. Day 1 always gets a full
# level zero dump. A "towers of hanoi"-ish pattern is used for dump levels.
#
/**
* This code snippet came from an answer I posted on stackoverflow and was derived from work presented
* among other answers and comments. The post is here:
* http://stackoverflow.com/questions/2820249/base64-encoding-and-decoding-in-client-side-javascript/15016605#15016605
*
* This is not very readable code, and would be better served by being written out such that it is understandable, and
* letting a minifier tool do the minification. However, it does work and is easy to copy and paste where needed rather
* than creating a larger library dependency when that is not desirable. So take it at face value.
*
* I posted it here when someone requested to use it and asked about a license. You are free to use this code however
@bseib
bseib / Out.java
Last active March 6, 2016 22:24
Dirt-simple output formatting, logback style.
package util;
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 Broc Seib
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
Installing AccessBooks Realtime (http://synergration.com/software/accessbooks-realtime/) fails for me.
I get an error saying IsLicense30.dll failed to register. HRESULT -2147024770
@bseib
bseib / README.md
Last active September 14, 2016 23:13
What keyboard shortcuts do you see when you press '?' in github?

You see:

####Site wide shortcuts

  • s Focus search bar
  • g n Go to Notifications
  • g d Go to Dashboard
  • ? Bring up this help dialog
  • j Move selection down
  • k Move selection up
  • x Toggle selection
@bseib
bseib / JSONArray.java
Created October 3, 2016 21:04
minimalist JSON parser for Java
package org.json;
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@bseib
bseib / gradle-wrapper-upgrade.sh
Last active April 6, 2018 22:03
update version of gradle wrapper
#!/bin/sh
# from https://gradle.org/install/
#
# Upgrade with the Gradle Wrapper
# If your existing Gradle-based build uses the Gradle Wrapper, you can easily upgrade by
# running the wrapper task, specifying the desired Gradle version:
## update gradlew
./gradlew wrapper --gradle-version=4.6
@bseib
bseib / README.md
Last active April 18, 2018 19:35
adobe-desktop-service-fivestars-cert-fail

Description

This is a screenshot of Adobe Desktop Service.exe, whose process owns the Security Alert window.

The security alert is saying that the certificate's name for "*.fivestars.com" does not match the site that your program is trying to connect to.

It seems to pop up about every five minutes. Really annoying.