Skip to content

Instantly share code, notes, and snippets.

View Aslan11's full-sized avatar

Kevin Martin Aslan11

View GitHub Profile
@Aslan11
Aslan11 / schwab-readme.md
Created March 27, 2019 15:46
schwab-readme

Redis Enterprise Backup & Restore for Pivotal Cloud Foundry

This repository features a trio of scripts can be used to backup and restore RedisE service instances and their application bindings in PCF.

NOTE:

This does not backup and restore the data within the databases. This merely backs up the current database configurations and outputs the commands necessary to recreate these databases with the same port and password.

Requirements / Dependencies

@Aslan11
Aslan11 / EOI.md
Last active June 23, 2017 17:24
ZEFR Engineering Onboarding Initiative

ZEFR Engineering Onboarding Initiative

There are 7 key goals of the EOI:

  • New Hire feels warmly welcomed
  • New Hire knows who his or her Manager, Tech Lead, Product Manager, Team, and Department Heads are
  • New Hire understands the product or service he or she will be working on and the value it generates for ZEFR
  • New Hire knows where the codebase & associated docs are
  • New Hire understands his or her day to day responsibilities, medium & long term goals
  • New Hire is spun up, and opens a PR on their first week
  • New Hire is ready to come in the next day and hit the ground running
@Aslan11
Aslan11 / keybase.md
Created June 10, 2017 17:56
Keybase Verification

Keybase proof

I hereby claim:

  • I am aslan11 on github.
  • I am aslan11 (https://keybase.io/aslan11) on keybase.
  • I have a public key ASDDBMvKqgHMZfNecNkRpFh0Z8zU4wyIiA5Lvi5HiF5U7Qo

To claim this, I am signing this object:

@Aslan11
Aslan11 / pkg-map.json
Created June 8, 2017 17:23
Key = Old ID, Value = New ID
{"1024": 7996, "1025": 10862, "1026": 3846, "1027": 4065, "1028": 11026, "1029": 7674, "1030": 8507, "1031": 6704, "1032": 8195, "1033": 10054, "1034": 8422, "855": 1548, "1036": 6337, "13": 1452, "1038": 9925, "1039": 10235, "1040": 10243, "1041": 2220, "1042": 2274, "1043": 5701, "1044": 6087, "1045": 8028, "1046": 10744, "1047": 9724, "1048": 10079, "1049": 4757, "1050": 10059, "175": 1542, "1052": 6360, "33": 1469, "1059": 6446, "36": 1544, "1061": 10335, "38": 11030, "1063": 2959, "1064": 4827, "1065": 9885, "42": 1547, "1067": 8732, "1068": 10231, "45": 1467, "46": 1466, "1071": 7515, "1072": 4692, "1073": 7994, "1075": 9424, "1076": 5082, "1077": 8644, "1078": 10394, "55": 1543, "1080": 8198, "1204": 6827, "1082": 6363, "1083": 3988, "1084": 10246, "61": 1435, "1086": 5666, "1087": 2061, "64": 1535, "65": 11053, "1090": 9674, "1091": 5064, "1092": 7475, "69": 1496, "70": 6082, "1095": 5492, "72": 1533, "73": 1493, "1098": 2701, "75": 1443, "76": 1527, "77": 1470, "1102": 9809, "1103": 2954, "80": 1519,
@Aslan11
Aslan11 / no-js-shim.html
Last active October 6, 2016 20:28
How to shim for non-js-browsers
<div id="parent">
<p id="main-description">
This needs to be the paragraph you want to see on search results
</p>
</div>
<script>
(function() {
var text = document.getElementById('main-description');
text.parentNode.removeChild(text);
document.getElementById('parent').appendChild(<iframe>);
@Aslan11
Aslan11 / PlayingCard.py
Created May 18, 2016 04:13
Playing Card Class
class PlayingCard:
'Common base class for all playing cards'
deckCount = 0
cardNameMap = {
1: 'Ace',
11: 'Jack',
12: 'Queen',
13: 'King'
}
@Aslan11
Aslan11 / problem.txt
Created March 23, 2016 23:10
Endpoint Design Question - Filtering
PROBLEM:
I need to filter on a list of IO's based on active state. Given that this will be passed in from a querystring param,
how should I design the endpoint?
1. Solution 1 - Single Boolean
GET /v2/ios/?active=true -> Returns all the ACTIVE IO's
GET /v2/ios/?active=false -> Returns all the INACTIVE IO's
GET /v2/ios/ -> Returns both ACTIVE and INACTIVE IO's
@Aslan11
Aslan11 / line-break.html
Created March 23, 2016 18:35
How to break up long HTML tags
We need to keep our line length to a maximum of 120 characters for HTML Styling.
The following serves as an example as to how to properly break up a long running tag.
BEFORE:
<a id="iob-account-details-active-ios-tab" ng-class="{'active': activeTab == 'active'}" ng-click="activeTab = 'active'">Active IOs <span id="iob-account-details-active-ios-badge" class="badge" ng-if="activeIOs.length > 0">{{activeIOs.length}}</span></a>
AFTER:
<a
id="iob-account-details-active-ios-tab"
ng-class="{'active': activeTab == 'active'}"
Traceback (most recent call last):
File "/Users/kevinmartin/.virtualenvs/amg/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/Users/kevinmartin/.virtualenvs/amg/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Users/kevinmartin/.virtualenvs/amg/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/kevinmartin/.virtualenvs/amg/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/Users/kevinmartin/.virtualenvs/amg/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
==> default: [2014-12-23T22:35:19+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2014-12-23T22:35:19+00:00] ERROR: Running exception handlers
==> default: [2014-12-23T22:35:19+00:00] ERROR: Exception handlers complete
==> default: [2014-12-23T22:35:19+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2014-12-23T22:35:19+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[/opt/pledgeling/shared/env/bin/pip install -r requirements.txt] (pledgeling-app::vagrant line 26) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of /opt/pledgeling/shared/env/bin/pip install -r requirements.txt ----
==> default: STDOUT:
==> default: STDERR: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.1.0/lib/mixlib/shellout/unix.rb:115:in `chdir': No such file or directory - /opt/pledgeling/current (Errno::ENOENT)
==> default: from /opt/chef/embedded