Skip to content

Instantly share code, notes, and snippets.

View risdenk's full-sized avatar

Kevin Risden risdenk

View GitHub Profile
tap "apache/yetus", "https://github.com/apache/yetus-homebrew"
tap "aquasecurity/trivy"
tap "elastic/tap"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
tap "keys-pub/tap"
@risdenk
risdenk / gist:3b6de0a10c11eb62eab6241a777b6351
Last active April 22, 2022 18:16
udm wan failover check

https://community.ui.com/questions/UDM-Pro-1-7-1-WAN-Failover-false-positives/6d01f376-c1f2-4d73-8291-8772b2e3483f

ssh root@192.168.1.1 "grep -F 'ubios-udapi-server: ubios-udapi-server: wanFailover: eth8 is' /var/log/messages* | cut -d':' -f 2- | sort | tail" 2>/dev/null

example output:

Jun 14 20:08:19 UDM-Pro user.info ubios-udapi-server: ubios-udapi-server: wanFailover: eth8 is down: {"alarm":true,"dns_alarm":0,"id":"eth8","lat_avg":14933,"loss_pct":21.052600860595703,"std_dev":1399,"type":"wanFailover"}
Jun 14 20:08:19 UDM-Pro user.info ubios-udapi-server: ubios-udapi-server: wanFailover: no change (eth8: down, eth9: down+off)
/**
* MIT License
*
* Copyright (c) 2018 Chris Passarello <www.insecurity.co>
*
* 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
BEGIN MESSAGE.
3192zbjgLMA4oiK 8Zh6qVJjBn7smgs cdz0fSyeNS0NN0I ogJyxL3fuCyoSBz
3B87ns59sAjkUvo xdwQyATe96VTCKq 6Xr2MZHgg4h81bp LTGwnDUGwsCL2bf
7unqGRS0ENzy6ek ceWua0myhYg9cW7 rN8qcrH0McdzAHM b0JlRS6PFL32pWC
x9QGV5Pxh4oA997 onF5So4TcDVzf2b A44xe2IP.
END MESSAGE.
@risdenk
risdenk / managed-schema.xml
Created December 12, 2017 15:54
Ranger Solr Config
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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
@risdenk
risdenk / GatewayBasicFuncURLEncodingTest.java
Created May 24, 2017 14:06
GatewayBasicFuncURLEncodingTest.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
@risdenk
risdenk / .screenrc
Created April 20, 2017 20:39
.screenrc
#change the hardstatus settings to give an window list at the bottom of the
#screen, with the time and date and with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]'
@risdenk
risdenk / .block
Last active December 26, 2016 14:57 — forked from mbostock/.block
Force-Directed Layout from XML
license: gpl-3.0
@risdenk
risdenk / BasicAuthSolrClientCache.java
Created November 17, 2016 00:18
Example of a BasicAuthSolrClientCache
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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
*
@risdenk
risdenk / README.md
Last active October 31, 2016 20:21
SOLR-9481 Testing
wget -qO test.sh \
  https://gist.githubusercontent.com/risdenk/bd2c48dea8a5c60d2b7746d8b96c7ac2/raw/a2d62088e35cfed4536132e77d6a47821195e831/test.sh \
  && chmod +x test.sh \
  && ./test.sh