Skip to content

Instantly share code, notes, and snippets.

1) VPN goes down
2) LDAP has an outage on any EC2 instance
3) Jenkins doesn't have appropriate priveleges
4) There are no admins readily avaiable to reset passwords
5) TOTP is failing and no admins can troubleshoot
These Break Glass accounts (Administrator in AWS and maintuser in EC2) have no link to on-premises or Econsys managed systems. Administrator in AWS is protected by username/password credentials and toguard against a breach in case of password theft, subject to MFA via SurePassId.
The maintuser in EC2 is protected by an SSH key and can only be used once already on the network.
This file has been truncated, but you can view the full file.
Last login: Wed Oct 30 17:29:57 on ttys003
Unable to find any JVMs matching version "12".
Unable to find any JVMs matching version "10".
Unable to find any JVMs matching version "9".
-bash: /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home: is a directory
Unable to find any JVMs matching version "1.7".
Identity added: /Users/tkhan/.ssh/id_rsa2 (tkhan@Admins-MacBook-Pro.local)
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
%define _sysconfdir var/ssl
%define openssldir /var/ssl
%define _unpackaged_files_terminate_build 0
%define debug_package %{nil}
Summary: Management tools and libraries relating to cryptography
Name: openssl
Version: 1.0.2s
Release: 1%{?dist}
echo '' >/var/log/audit/audit.log # (it would be better to rotate it here, but you get the idea)
setenforce 0
# Do whatever I want to be able to do...
setenforce 1
sealert -a /var/log/audit/audit.log
<?xml version="1.0"?>
<ruleset name="Best Practices"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
<description>
Rules which enforce generally accepted best practices.
</description>
/*! bucky 0.2.3 */
(function(){var a,b,c,d,e,f,g,h=[].slice;e="undefined"!=typeof module&&null!==module&&!("undefined"!=typeof window&&null!==window?window.module:void 0),e?(a=require("xmlhttprequest").XMLHttpRequest,g=function(){var a;return a=process.hrtime(),1e3*(a[0]+a[1]/1e9)}):g=function(){var a,b;return null!=(a=null!=(b=window.performance)?"function"==typeof b.now?b.now():void 0:void 0)?a:+new Date},d=+new Date,c=function(){var a,b,c,d,e,f,g,i;for(a=arguments[0],d=2<=arguments.length?h.call(arguments,1):[],i=d.reverse(),f=0,g=i.length;g>f;f++){c=i[f];for(b in c)e=c[b],a[b]=e}return a},f=function(){var a,b;return a=1<=arguments.length?h.call(arguments,0):[],null!=("undefined"!=typeof console&&null!==console?null!=(b=console.log)?b.call:void 0:void 0)?console.log.apply(console,a):void 0},f.error=function(){var a,b;return a=1<=arguments.length?h.call(arguments,0):[],null!=("undefined"!=typeof console&&null!==console?null!=(b=console.error)?b.call:void 0:void 0)?console.error.apply(console,a):void 0},b=fu
const array1 = [{
videoDuration: 240,
videoHrsViewed: 12
}];
const reducer = (accumulator, currentValue) => Object.assign({}, accumulator, {
minutesDuration: accumulator.minutesDuration + currentValue.videoDuration,
minutesViewed: accumulator.minutesViewed + currentValue.videoHrsViewed
});
console.log(array1.reduce(reducer));
console.log(array1.reduce(reducer, {
object SimpleContentDomain extends BaseDomain {
val Text = TextArrayIndex("text", normalize = true)
val Tags = LiteralArrayIndex("tags")
val Obj = LiteralIndex("obj")
val ContentType = LiteralIndex("contentType", faceted = true)
val CreatedAt = DateIndex("createdAt")
val UpdatedAt = DateIndex("updatedAt")
}
import React from "react"
import PropTypes from "prop-types"
if (!window._babelPolyfill) {
// eslint-disable-next-line global-require
require("babel-polyfill")
}
const propTypes = {
}
import javax.inject.Inject
import play.api.mvc.{AbstractController, ControllerComponents}
import scala.concurrent.ExecutionContext.Implicits.global
import io.ino.solrs.AsyncSolrClient
import io.ino.solrs.future.ScalaFutureFactory.Implicit
import org.apache.solr.common.{SolrDocumentList, SolrInputDocument}
import scala.concurrent.Future