Skip to content

Instantly share code, notes, and snippets.

@jaydm
jaydm / brocade.securing.txt
Last active August 31, 2018 01:15
[Brocade - Simple Config] Securing the Web, Serial, and Telnet Interfaces #Brocade
http://wwwaem.brocade.com/content/html/en/quick-start-guide/brocade-icx-switch-qsg/GUID-3AD21FAD-D8BF-49FF-BBF3-5620F197E322.html
enable
configure terminal
crypto-ssl certificate generate
username brocade password brocade
aaa authentication login default local
aaa authentication web-server default local
enable telnet authentication
enable aaa console
@jaydm
jaydm / reportViewSQL.sql
Created December 15, 2017 23:11
[Report Views]
use plc;
drop table itemExt;
drop table itemExtSingle;
create table itemExtSingle (itemNumber varchar(255) primary key, totalQty bigint, totalCost double);
create table itemExt (itemNumber varchar(255) primary key, totalRB bigint, totalCostRB double, totalMod bigint, totalCostMod double, totalChip bigint, totalCostChip double, totalOther bigint, totalCostOther double);
insert into itemExtSingle select projectItem, sum(orderQty), sum(orderQty * unitCost) from poDetail where lineType = 1 group by projectItem;
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<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-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
@jaydm
jaydm / keybase.md
Created April 9, 2014 15:28
Keybase proof

Keybase proof

I hereby claim:

  • I am jaydm on github.
  • I am jaydm (https://keybase.io/jaydm) on keybase.
  • I have a public key whose fingerprint is 0279 E8AD 9A66 5D87 E14E 242D A6A3 9386 A0F0 DE24

To claim this, I am signing this object:

Moved to
https://github.com/romannurik/android-swipetodismiss
<!--
A button bar is a set of buttons at the bottom of an activity.
An example is an AlertDialog with OK/Cancel buttons.
Note that something similar can be accomplished using a
split action bar and text-only action buttons, but this is an
alternate presentation that's often preferred.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
<manifest ...>
...
<!-- Make sure your app (or individual activity) uses the
theme with the custom attribute defined. -->
<application android:theme="@style/AppTheme" ...>
...
</application>
</manifest>
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software