Skip to content

Instantly share code, notes, and snippets.

@rtucker-mozilla
rtucker-mozilla / hp_user_warranty_fill.js
Created Feb 10, 2020
greasemonkey script to make it easier to fill in HP Warranty Serial Numbers
View hp_user_warranty_fill.js
// ==UserScript==
// @name Check HP Warranty Data
// @version 1
// @grant none
// ==/UserScript==
//configure script include to run at https://support.hpe.com/hpsc/wc/public/find
View gist:ce2dfa35fb53bd39884adb9acd5c8090
### Keybase proof
I hereby claim:
* I am rtucker-mozilla on github.
* I am robtucker (https://keybase.io/robtucker) on keybase.
* I have a public key ASDTzxa88y5Zraw6vRhd8J3vqvlQXbJeEgHM-OQr5t_Pawo
To claim this, I am signing this object:
View change to config
IAMGroupMapping:
- GlobalAdmins:
LDAPGroup: nubis_global_admins
IAMPath: /nubis/admin/
ConsulPath: global-admins
BECOMES
IAMGroupMapping:
- SystemsUsers:
@rtucker-mozilla
rtucker-mozilla / gist:11186162
Created Apr 22, 2014
Loop iteration over an array in surveygizmo syntax
View gist:11186162
%%pageid = 1;
%%errormsg_qid = 6;
%%completed_percent = 0;
%%slider_array = array(4,7,21,22,23,24,25,26);
foreach(%%slider_array as %%slider_id){
%%completed_percent = %%completed_percent + sgapiGetValue(%%slider_id);
}
if (%%completed_percent != 100){
sgapiHideQuestion(%%errormsg_qid,false);