text:
# Identifying Visitors

## Attach Identifying Data to Visitors

> Example identify request with a success callback

```javascript
_dcq.push(["identify", {
  email<EMAIL_ADDRESS>  first_name: "John",
  tags: ["Customer"],
  success: function(response) {
    // Call a method with the response object
    // Success callback is optional
  }
}]);
```

The `identify` method pushes subscriber data into Drip. If the subscriber is not yet in your account, we will create a new record for them; otherwise, we update their record with the information you pass in. To update a subscriber's email address, use the `new_email` property.

### Properties

The following are treated as special properties. All other data passed in will be added to the subscriber's custom fields. Keys should be lowercase, with words separated by underscores. Keys that begin with drip_ are reserved for internal Drip usage.

      Key
      Description

      email
      The subscriber's email address. Required when identifying new site visitors.

      new_email
      Optional. Use this to update an existing subscriber's email address

      user_id
      Optional. A unique identifier for the user in your database, such as a primary key.

      tags
      Optional. An Array of tags to apply.

      remove_tags
      Optional. An Array of tags to remove.

      prospect
      Optional. A Boolean specifying whether we should attach a lead score to the subscriber (when lead scoring is enabled). Defaults to true. Note: This flag used to be called potential_lead, which we will continue to accept for backwards compatibility.

      eu_consent
      Optional. A String specifying whether the subscriber granted or denied GDPR consent.

      eu_consent_message
      Optional. A String containing the message the subscriber granted or denied their consent to.

      success
      Optional. A callback function that is executed upon successful completion of the request.

      failure
      Optional. A callback function that is executed if the request fails.

### Response

> Example response

```json
{
  success: true,
  visitor_uuid: "f627ee608adb01315d1022000ab2058a",
  anonymous: false,
}
```

The identify request will pass a response object to the success or failure callback functions (if provided) once the call completes.

      Key
      Description

      success
      Boolean. True if the call to Drip succeeded.

      visitor_uuid
      The unique id for the visitor identified.

      anonymous
      Boolean. False if the visitor is associated with a subscriber.

      error
      String. Contains an error message if the request failed.

repository: DripEmail/api-docs

gha_license_id: NOASSERTION

repo_name: DripEmail/api-docs


text:
# OMEGAMON for Storage  - modify data sets from TEP

Data sets can be created/deleted/modified from TEP using Storage Toolkit actions.
1.	Run TEP using tso_userID.
2.	Go to one of the following workspaces:

Dataset Group Summary > Dataset Group Primary Datasets **or**

Dataset Attributes System Summary > Dataset Attributes Group Summary > Dataset Attributes Group Details.
3.	Select one of Dataset Actions for any data set:

4.	Select some parameters for action:

5.	Select Command Type

6.	JCL for action will be created. Press OK and JCL will be submitted on LPAR where Storage agent is started.

7.	The result will be placed in Storage Toolkit workspace. Also you can find it in SDSF.

The same actions can be performed using RDM.

RDM can be run from Dataset Attributes System Summary workspace after collection completed.

Some of that actions can be performed for groups:

url: https://raw.githubusercontent.com/Dereliass/Global-Repository-for-Mainframe-Developers/e73e08116d07ed40116b139ce1b3d4d259b5bda9/zOS System operating/Omegamon for Storage/Modify data sets from TEP/README.md

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
Certainly, yes. How about in Python? Follow this example to build two endpoints with Python and Flask.

First, we are going to install Flask:

```python
pip3 install Flask
```
Now, create a file, for example, main.py:
```python
from flask import Flask

app = Flask(__name__)
```
In the example above, we're importing Flask and getting a reference to it.
Now, add to the code:

```python
@app.route('/info', methods = ['GET'])
def info():
    return 'This a simple endpoint to test and provides information about things.'

@app.route('/insert', methods = ['POST'])
def insert():
    return 'This a simple endpoint to test insert data.'
```

In the code above, ``@app`` is a decorator to create routes. The first argument is an URI. The second argument informs the HTTP Method.
Finally, to execute:
```python
if __name__ == '__main__':
    app.run(debug=True)
```

Running the code is:
```python
python3 Main.py
```

and that's all folks!

If you have any doubts, problems or suggestions, just leave a message.

Sources: [Sources](https://github.com/fagnercandido/pythonandflaskendpoint)

license: MIT

extension: markdown

gha_language: CSS

gha_license_id: MIT


text:
Eye4webZfcUserPm
=======

Introduction
------------

Installation
------------
#### With composer

1. Add this project composer.json:

    ```json
    "require": {
        "eye4web/eye4web-zfc-user-pm": "dev-master"
    }
    ```

2. Now tell composer to download the module by running the command:

    ```bash
    $ php composer.phar update
    ```

3. Enable it in your `application.config.php` file.

    ```php
    <?php
    return array(
        'modules' => array(
            // ...
            'Eye4web\ZfcUser\Pm'
        ),
        // ...
    );
    ```

4. Copy config/eye4web.zfcuser.pm.global.php.dist to config/autoload/eye4web.zfcuser.pm.global.php


text:
---
layout: post
title: Javascript by convention
permalink: blog/2014/03/17/javascript-by-convention/index.html
date: 2014-03-17
updatedDate: 2014-03-17
tags:
  - post
  - javascript
  - code quality
---

Usually when doing javascript, you'll see a lot of script inside a page. For instance when we add a date picker on a text input, you could add a script block to the page and do the necessary initialization there:

```html
<h1>Modify your settings</h1>

<form>
  <div class="control-group">
    <label class="control-label">Birthdate</label>
    <div class="controls">
      <div class="input-append">
        <input type="text" name="birthDate" id="birthDate" />
        <span class="add-on">
          <i class="icon-calendar"></i>
        </span>
      </div>
    </div>
  </div>
</form>
```

```js
<script type="text/javascript">
  $(document).ready(function () {
    $('#birthDate').datepicker({
      dateFormat: 'dd-mm-yy',
    });
  });
</script>
```

Now what if we needed to do this more then just once? Let’s change our html to a more unobtrusive way:

```html
<input type="text" name="birthDate" id="birthDate" data-role="datepicker" />
```

Now just add a new javascript file to your website and include it in our html.

```js
(function ($) {
  $(document).ready(function () {
    //datepicker convention
    $(':text[data-role="datepicker"]').datepicker({
      dateFormat: 'dd-mm-yy',
    });
  });
})(jQuery);
```

In this file we make sure we alias ‘$’ to jQuery as another plugin we use could have aliased it differently.

> If you are worried about performance of the selector used here, you can always use a class in your convention.


text:
---
layout: post
title: RNA isolation prep and 2015 oysterseed DIA update
date: '2018-01-30'
categories: [bairdi, DIAOyster]
tags: [RNAIsolation, DIAOyster]
---

I prep for RNA isolation and understanding the protocol, and continue with the 2015 Oysterseed DIA.

## RNA Isolation prep

I will test out the [RNA isolation protocol](https://github.com/RobertsLab/resources/blob/master/protocols/rna_isolation_rnazol_rt.md) on some of the extra crab hemolymph samples we have stored in the -80. Since we are using hemolymph and not tissue, we will not need to use a mortar and pestle. Instead, I found this information regarding liquid samples:

"C. Liquid Samples. Homogenize/lyse liquid samples using 1 ml of RNAzol® RT per 0.4 ml of a liquid sample. For processing a small volume sample, mix the sample with 1 ml of RNAzol® RT and supplement the mixture with water to approach the sample + water volume of 0.4 ml."

This information was found [here](https://www.mrcgene.com/wp-content/uploads/2017/04/RNAzolRTMarch2017.pdf) by looking at the mrcgene.com full protocol for RNAzol RT.

## 2015 Oysterseed DIA Analysis

I exported the Skyline data into a .csv report ([Cg2015seed.csv](http://owl.fish.washington.edu/scaphapoda/grace/2015-oysterseed-project/Cg2015seed.csv)). I will now do my best to follow [Laura's notebook protocol for DIA Analysis](https://github.com/RobertsLab/Paper-DNR-Geoduck-Proteomics/blob/master/notebooks/SRM/04-SRM%20Data%20Analysis.ipynb).


text:
---
title: Telerik.Web.UI.UpdateClientOperation`1
page_title: Telerik.Web.UI.UpdateClientOperation`1
description: Telerik.Web.UI.UpdateClientOperation`1
---

# Telerik.Web.UI.UpdateClientOperation`1

Used in case of update client operations.

## Inheritance Hierarchy

* System.Object
* Telerik.Web.UI.ClientOperation`1
* Telerik.Web.UI.UpdateClientOperation`1

## Properties

###  Item `T`

Returns the item (, ,
            , , , )
            associated with this client operation.

#### Remarks
When the  of the operation is  the Item property will
            return null (Nothing in VB.NET) in case the items of the control have been cleared.

###  PropertyName `String`

Gets the name of the property which has been changed on the client side.

###  Type `ClientOperationType`

Gets the type of the client operation

#### Remarks
If the Type property is equal to  the  type will be used.

repository: telerik/ajax-docs

gha_language: C#

repo_name: telerik/ajax-docs


text:
# Color Game

### Live demo

visit [https://oussema-colorgame.herokuapp.com/](https://oussema-colorgame.herokuapp.com/) for the live version of the game

![Screenshot](https://i.imgur.com/CbS7o6i.png)

> A Node.js web application project under the MIT license from the Udemy course - [The Web Developer Bootcamp by Colt Steele](https://www.udemy.com/the-web-developer-bootcamp/)

repository: oussema-dev/colorgame

repo_name: oussema-dev/colorgame


text:
  :muscle: Fitness-Tracker :muscle:

  ![License:](https://img.shields.io/badge/Demetri%20Dillard-MIT-brightgreen)

# Table of Contents

- [Description](#description)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [Test](#test)
- [Credits](#credits)
- [License](#license)
- [Questions](#questions)

## :memo: Description

This is a full-stack CRUD application that allows a user to add and update exercises using MongoDB to store, track, and
manipulate data. The dashboard features a GUI of graphs, tracking user workouts for each week.

## :camera: Visuals

## Installation:

    npm morgan|express|mongoose|mongoCompass and Atlas|dotenv|

## Usage:

    Using MongoDB, this application can store, track, update workouts for user to better plan out and complete workout activities.

## Credits:

    Trilogy Schools (U of M).

## Technologies Used:

## :copyright: License:

This project is subject to ![License:](https://img.shields.io/badge/License-MIT-red)

MIT License

        Copyright (c) [2021] [Demetri Dillard]

        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
        furnished to do so, subject to the following conditions:

        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.

         IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.

For more information on this [License](https://choosealicense.com/licenses/mit/)

## Questions:question:

:email: For additional questions, Get in touch at<EMAIL_ADDRESS>
:octocat: Check out my [GitHub](https://github.com/Meechlouch)

:octocat: GitHub [Repository](https://github.com/Meechlouch/Workout-Tracker)

:globe_with_meridians: Here is the [deployed](https://lit-scrubland-35061.herokuapp.com/) version.

repository: Meechlouch/Workout-Tracker

branch_name: refs/heads/main

repo_name: Meechlouch/Workout-Tracker


text:
---
url: /identityproviders
description: Auth0 is an identity hub that supports the many authentication providers listed here.
topics:
  - connections
contentType:
    - index
    - reference
useCase:
  - customize-connections
  - add-idp
---
# Connections

A connection is the relationship between Auth0 and a source of users. Auth0 sits between your application and its sources of users, which adds a level of abstraction so your application is isolated from any changes to and idiosyncrasies of each source's implementation.

You can configure any number of connections for your applications to use in the Auth0 Dashboard. To view all the connections that you have configured or create new ones, see [View Connections](/applications/guides/view-connections).

# Identity Providers Supported by Auth0

An Identity Provider is a server that can provide identity information to other servers. For example, Google is an Identity Provider. If you log in to a site using your Google account, then a Google server will send your identity information to that site.

Auth0 is an identity hub that supports many Identity Providers using various protocols (like [OpenID Connect](/protocols/oidc), [SAML](/protocols/saml), [WS-Federation](/protocols/ws-fed), and more).

Auth0 sits between your app and the Identity Provider that authenticates your users. This adds a level of abstraction so your app is isolated from any changes to and idiosyncrasies of each provider's implementation.

The relationship between Auth0 and any of these authentication providers is referred to as a **connection**. Auth0 supports [Social](#social), [Enterprise](#enterprise), [Database](#database-and-custom-connections) and [Passwordless](#passwordless) connections.

## Social

Auth0 supports the following social providers out of the box. You can also use any [OAuth2 Authorization Server](/connections/social/oauth2).

<% var socialConnections = cache.find('articles/connections/social', {sort: 'index'}); %>
<%= include('./_connections', { connections: socialConnections }) %>

## Enterprise

<% var enterpriseConnections = cache.find('articles/connections/enterprise', {sort: 'index'}); %>
<%= include('./_connections', { connections: enterpriseConnections }) %>

## Legal Identities

Through our partner, Criipto, we offer a growing range of government and bank identities tied to legal persons.

<% var criiptoConnections = cache.find('articles/connections/criipto', {sort: 'index'}); %>
<%= include('./_connections', { connections: criiptoConnections }) %>

If the one you need isn't found here, we suggest getting in touch with [Criipto](https://criipto.com).

## Database and Custom Connections

If you want to create your own user store, instead of using external identity providers like Google or Facebook, you can use a Database Connection. This way you can authenticate users with an email or username and a password. The credentials can be securely stored either in the Auth0 user store or in your own database.

You can create any number of custom fields and store this information as part of the `user_metadata`. You can easily import users from a legacy user store, enable or disable sign ups, configure your password policy, or enable Multi-factor Authentication.

For more details, refer to the [Database Connections](/connections/database) documentation.

## Passwordless

Full documentation on Passwordless authentication can be found at the links below:

Passwordless Authentication Overview

<% cache.find('articles/connections/passwordless', {sort: 'connection'}).forEach(article => { %>
  <% if (article.connection) { %>

      <% if (article.public === false) { %>
        <%- article.connection %>
      <% } else { %>
        <a href="<%- article.url %>"><%- article.connection %>
      <% } %>

  <% } %>
<% }); %>

repository: AdrianaMusic/docs

gha_language: JavaScript

repo_name: AdrianaMusic/docs


text:
Git-ignore
===
**This repository has been deprecated. Use [imwithye/gitignore](https://github.com/imwithye/gitignore)** instead.

  You may use `git init --template` a lot. But here is a more pretty solution! Try `git ignore`!

 Add ignore file to current project by using

```Bash
git ignore add python c java c++ objective-c
```

Ignore files relate to Python C and Java will be added into `.gitignore` file. Git-ignore use [GitHub gitignore template](http://github.com/github/gitignore) as submodule. There are lots of language ignore files in this repository. You don't  have to create your own template. Just start using it!

Sure, of course Git-ignore provides a way to manage your own templates:).

##Requirement

Git-ignore is fully wirtten in python 2. Make sure you have python 2 installed. And `git-ignore` use `/usr/bin/python` as default script. Do not override the system python. Report an issue if you find git-ignore cannot work on your workplace.

##Install

###OS X

Git-ignore can be installed via Homebrew. Try

```Bash
brew tap imwithye/formula
brew install git-ignore
```

**Start this project and make it popular! I will publish it to official Homebrew repository soon.**

###Linux & Unix

Currently, git-ignore using a script installer to install. Try use

```Bash
curl -sSl https://raw.github.com/imwithye/git-ignore/master/installer.sh | sudo bash
```

Git-ignore can be installed without sudo, if you have write permission on `/usr/local`.

###Manual Install

For manually installation, you can **recursively clone** this repository and use `make install`. To remove simply use `make uninstall` (may require `sudo`). Or you can **recursively clone** this repository and copy it to anywhere you like, then create a symbolic link of `git_ignore.py` as `git-ignore` to your system search path.

##Uninstall

If you install git-ignore via Homebrew, just run `brew uninstall git-ignore`.

For script or make installation, git-ignore will install itself to `/usr/local/git-ignore/` and create a symbolic link to `/usr/local/bin/git-ignore`. If the file already exists, git-ignore will override it. This can be used to upgrade git-ignore as well. This operation may require `sudo`. You can fully remove git-ignore by deleting `git-ignore` directory and `git-ignore` symbolic link.

**Again, star this repository if you like it:)**.

##Usage

Try `git ignore usage`. It will out put some useful information.

Git-ignore is a quite simple tool.

###Add ignore

```Bash
git ignore add python java c
```

`git ignore add <ignore files>`, this command allows you add multi git gitignore files to `.gitignore`. Note that there is a search path for searching ignore files. Firstly git-ignore search `~/.git-ignores/`, then `$GIT-IGNORE/system-templates`, then `$GIT-IGNORE/github-templates`. github-templates is cloned from [GitHub gitignore template](http://github.com/github/gitignore). All git ignore templates have to be named as `name.gitignore`.

**Important, git-ignore is case-insenstive**.

###See what will be added

```Bash
git ignore show python java c
```

This command will show what will be added to your `.gitignore` file. The command without arguments will print out current `.gitignore` file.

###See which file will be added

```Bash
git ignore which python java
```

If you have two python templates, this command will out put which python template will be added.

 This command will save current `.gitignore` as `filename.gitignore` to `~/.git-ignores/`. Also you can directly create a git ignore template under `~/.git-ignores/`.

 This command will only remove the template under `~/.git-ignores/`. The command without arguments will remove the `.gitignore` file under current directory.

##Contribute

Git-ignore use git-flow developing model. Fork this repository then checkout a new feature. Then send a pull request.

repository: imwithye/git-ignore

gha_language: Python

repo_name: imwithye/git-ignore


text:
```toml
[advisory]
id = "RUSTSEC-2020-0152"
package = "max7301"
date = "2020-12-18"
url = "https://github.com/edarc/max7301/issues/1"
categories = ["memory-corruption"]
keywords = ["concurrency"]

[versions]
patched = [">= 0.2.0"]
```

# ImmediateIO and TransactionalIO can cause data races

The `ImmediateIO` and `TransactionalIO` types implement `Sync` for all contained
`Expander<EI>` types regardless of if the `Expander` itself is safe to use
across threads.

As the `IO` types allow retrieving the `Expander`, this can lead to non-thread
safe types being sent across threads as part of the `Expander` leading to data
races.

repository: BurntSushi/advisory-db

repo_name: BurntSushi/advisory-db


text:
# RoomRS

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**code** | **string** | Unique code that identifies the room |
**name** | **string** |  |
**hotel_code** | **string** |  |
**provider_hotel_code** | **string** |  |
**provider** | **string** |  |
**tokens** | [**\Swagger\Client\Model\Token[]**](Token.md) |  |
**occupancy** | [**\Swagger\Client\Model\Occupancy**](Occupancy.md) |  |
**price_changed** | **bool** | Indicates if the room has the same price as requested one or price has changed |
**new_price** | [**\Swagger\Client\Model\Price**](Price.md) | New price, if price has changed |
**currency** | **string** |  |
**is_non_refubdable** | **bool** | Indicates explicitly if the reservation can be refunded or not after booking |
**cancellation_policies** | [**\Swagger\Client\Model\CancellationPolicy[]**](CancellationPolicy.md) |  |
**room_supplements** | [**\Swagger\Client\Model\RoomSupplement[]**](RoomSupplement.md) | Is an extra service per room such as:  Disney tickets, airport transfer an so on. | [optional]
**person_supplements** | [**\Swagger\Client\Model\PersonSupplement[]**](PersonSupplement.md) | Is an extra service per person such as:  Disney tickets, airport transfer an so on. | [optional]
**room_taxes** | [**\Swagger\Client\Model\RoomTax[]**](RoomTax.md) |  | [optional]
**essential_informations** | **string[]** |  | [optional]
**meal** | [**\Swagger\Client\Model\Meal**](Meal.md) |  |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

repository: PlugAndTravel/PhPBookingFlowClient

repo_name: PlugAndTravel/PhPBookingFlowClient


text:
### 1. DKIW (Data - Knowledge - Information - Wisdom)
![img](https://github.com/daniellj/DataScience/blob/master/DataKnowledgeInformationWisdom/img/DKIW_Pyramid.png)

## Example:

Imagine the string “WifiPassword”.

- Data = The string “WifiPassword”.
- Information = understanding that “WifiPassword” is a string.
- Knowledge = know that “WifiPassword” is your WiFi password.
- Wisdom = use the password "WifiPassword" to access your wireless.

## 2. Credits:

- [DKIW (EN-US)](https://kvaes.wordpress.com/2013/05/31/data-knowledge-information-wisdom/)

- [DKIW Pyramid (EN-US)](https://en.wikipedia.org/wiki/DIKW_pyramid)

repository: daniellj/DataScience

repo_name: daniellj/DataScience


text:
# Private linter for Telegraf

The purpose of this linter is to enforce the review criteria for the Telegraf project, outlined here: https://github.com/influxdata/telegraf/wiki/Review. This is currently not compatible with the linter running in the CI and can only be ran locally.

## Running it locally

To use the Telegraf linter, you need a binary of golangci-lint that was compiled with CGO enabled. Currently no release is provided with it enabled, therefore you will need to clone the source code and compile it yourself. You can run the following commands to achieve this:

1. `git clone https://github.com/sspaink/golangci-lint.git`
2. `cd golangci-lint`
3. `git checkout tags/v1.39.0 -b 1390`
4. `CGO_ENABLED=true go build -o golangci-lint-cgo ./cmd/golangci-lint`

You will now have the binary you need to run the Telegraf linter. The Telegraf linter will now need to be compiled as a plugin to get a *.so file. [Currently plugins are only supported on Linux, FreeBSD, and macOS](https://golang.org/pkg/plugin/). From the root of the Telegraf project, you can run the following commands to compile the linter and run it:

1. `CGO_ENABLED=true go build -buildmode=plugin telegraflinter/telegraflinter.go`
2. In the .golanci-lint file:
    * uncomment the `custom` section under the `linters-settings` section
    * uncomment `telegraflinter` under the `enable` section
3. `golanci-lint-cgo run`

*Note:* If you made a change to the telegraf linter and want to run it again, be sure to clear the [cache directory](https://golang.org/pkg/os/#UserCacheDir). On unix systems you can run `rm -rf ~/.cache/golangci-lint` otherwise it will seem like nothing changed.

## Requirement

This linter lives in the Telegraf repository and is compiled to become a Go plugin, any packages used in the linter *MUST* match the version in the golanci-lint otherwise there will be issues. For example the import `golang.org/x/tools v0.1.0` needs to match what golangci-lint is using.

## Useful references

* https://golangci-lint.run/contributing/new-linters/#how-to-add-a-private-linter-to-golangci-lint
* https://github.com/golangci/example-plugin-linter

repository: yunionio/telegraf

gha_language: Go

repo_name: yunionio/telegraf


text:
# Tesla REST API (Unoffical)

In this repo are the Postman .json files needed to test against the Tesla Rest API.

## Import Files

#### Postman Collection:

https://www.getpostman.com/docs/v6/postman/collections/data_formats

#### Enviroment:

https://www.getpostman.com/docs/v6/postman/environments_and_globals/manage_environments

## Getting Started

Once you have both files imported into Postman you can begin testing.

In your enviroment variables you will need to add your Tesla Email and Password. This is needed to get the Access Token for testing.

repository: rodydavis/Tesla-API

repo_name: rodydavis/Tesla-API


text:
# A Collection of vim Configurations

Current modifications:

* map `jk` to `<ESC>`
* map mapleader to `" "`
* spellcheck
* onedark theme with polyglot
* lightline and air-line
* tab preferences
* relative line numbering
* fzf support
* gitgutter support
* NERDTree

## Setup

* Clone the repo as `.vim` in your home directory.
* Run `./setup.sh`

gha_language: Vim script


text:
# aria-attrs

Elements cannot use an invalid ARIA attribute. This will fail if it finds an `aria-*` property that is not listed in [WAI-ARIA States and Properties spec](https://www.w3.org/WAI/PF/aria-1.1/states_and_properties).

## Rule Details

Examples of **incorrect** code for this rule:

```js
html` <div aria-foo=""></div> `;
```

Examples of **correct** code for this rule:

```js
html` <div aria-labelledby="foo"></div> `;
```

## Further Reading

- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value)

repository: ChromeDevTools/devtools-frontend

gha_language: TypeScript

repo_name: ChromeDevTools/devtools-frontend


text:
---
layout: post
title: "Logging"
quote: To log or not to log
image: false
video: false
---

#Logging

I was browsing through our code at Schantz were i do my daytime hacking. I found something that's not unusual in our code base. To be fair it's not unusual in most codebases.

The issue is logging, and more specific what log level should be used when.

So i've decided to give you my take on it.

## Error
The error statement should only be used for actual errors. So if the system will fail catastrophically, and there is no known way to recover, a error is written.

## Warn
A warning should be logged when a potential issue can make the application not work correctly, but doesn't make it crash. This could be a 3rd party system that doesn't respond.

## Info
This level is used to print out the flow of your application. Things like batchjob start, batchjob ended etc..
## Debug
This is the one I don't like. So don't use it :)

Ask yourself why do you want debug statements in your codebase. This indicates that your are unsure on what happens. If that is the case you should write a test that verify the behavior that you expect.
## Trace
Pretty much the same as above, just worse.

So this is not rules that are written in stone, but more of a guideline. To be fair i've haven't always followed these guidelines, but i try to.


text:
# rutils

Ross' Utility library

`pro_switch()` allows use to pass a quoted or unquoted variable name (along with a a boolean value to indicate which) which is passed to either `rlang::sym()` or `enquo()`.

If someone has a better way I'd like to know.

Hope to update to a version that doesn't need a boolean value passed along side...

repository: rosseji/rutils

repo_name: rosseji/rutils


text:
295\. Find Median from Data Stream

Hard

The **median** is the middle value in an ordered integer list. If the size of the list is even, there is no middle value and the median is the mean of the two middle values.

*   For example, for `arr = [2,3,4]`, the median is `3`.
*   For example, for `arr = [2,3]`, the median is `(2 + 3) / 2 = 2.5`.

Implement the MedianFinder class:

*   `MedianFinder()` initializes the `MedianFinder` object.
*   `void addNum(int num)` adds the integer `num` from the data stream to the data structure.
*   `double findMedian()` returns the median of all elements so far. Answers within 10-5 of the actual answer will be accepted.

**Example 1:**

**Input**

    ["MedianFinder", "addNum", "addNum", "findMedian", "addNum", "findMedian"]
    [[], [1], [2], [], [3], []]

**Output:** [null, null, null, 1.5, null, 2.0]

**Explanation:**

    MedianFinder medianFinder = new MedianFinder();
    medianFinder.addNum(1); // arr = [1]
    medianFinder.addNum(2); // arr = [1, 2]
    medianFinder.findMedian(); // return 1.5 (i.e., (1 + 2) / 2)
    medianFinder.addNum(3); // arr[1, 2, 3]
    medianFinder.findMedian(); // return 2.0

**Constraints:**

*   -105 <= num <= 105
*   There will be at least one element in the data structure before calling `findMedian`.
*   At most 5 * 104 calls will be made to `addNum` and `findMedian`.

**Follow up:**

*   If all integer numbers from the stream are in the range `[0, 100]`, how would you optimize your solution?
*   If `99%` of all integer numbers from the stream are in the range `[0, 100]`, how would you optimize your solution?

repository: javadev/LeetCode-in-Java

gha_language: Java

repo_name: javadev/LeetCode-in-Java


text:
---
layout: default
---

# 1994-02-23 - Re: Give me your privacy and I will protect you.

## Header Data

From<EMAIL_ADDRESS>(Timothy C. May)

To<EMAIL_ADDRESS>(Michael Johnson)

Message Hash: 35c0dd72c70f6e9e159f5e0e8276627c9158c87827a55c257c4e1ba0aca21dd4

Message ID<EMAIL_ADDRESS>Reply To<EMAIL_ADDRESS>UTC Datetime: 1994-02-23 22:32:19 UTC

Raw Date: Wed, 23 Feb 94 14:32:19 PST

## Raw message

```
{% raw  %}From<EMAIL_ADDRESS>(Timothy C. May)
Date: Wed, 23 Feb 94 14:32:19 PST
To<EMAIL_ADDRESS>(Michael Johnson)
Subject: Re: Give me your privacy and I will protect you.
In-Reply-To<EMAIL_ADDRESS>Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

Michael Johnson writes:

> I won't waste time on a rebuttal.  I just want to say that I consider traffic
> in harmful drugs to be a major problem.  I'm not willing to give up my
> Constitutional rights in the War on Drugs, but I am glad that there are law
> enforcement agents who are intelligent enough to be a real threat to
> criminals without being a threat to the honest citizens that they are hired
> to protect.  In fact, I believe that the vast majority of law enforcement
> agents fall in this category.
>
> Just say "NO!" to harmful drugs, promiscuous sex, the ITAR's restrictions on
> strong cryptography, and Key Escrow!  Write YOUR Congressional Representative
> NOW and express support for Maria Cantwell's bill to ease restrictions on
> privacy software!

I find it useful to imagine myself carrying the sentence myself for
all criminal violations I support (the laws, not the crimes
themselves). Thus, I would be willing to carry out harsh sentences,
even the death penalty, in certain violent crimes or thefts. Rape,
murder, arson, etc.

I would not be willing to enforce laws against "promiscuous sex" or
"harmful drugs." These may or may not be "unproductive" and even
"dangerous" activities, but provided I am not directly affected, it's
none of my business.

(The issue of drug-related crime is unrelated to the act of taking
drugs, per se. The illegality of drugs results in high prices, street
crime, impure drugs, accidental overdoses, etc. This was the same
situation with Prohibition. Alcohol is indeed harmful, more so than
nearly any modern drug, and yet Prohibition was wrong. That it was
associated with crime and the rise of the Mob was not a reason to
continue it.)

"Lost productivity" and/or the "costs of caring with addicts and AIDS
victims" are other reasons cited to keep certain behaviors illegal.
Well, your productivity, lost or otherwise, does not belong to me. If
it did, I would ban television and the excessive use of the Internet.

Remember the good old American creed: "That's none of your business."
And, "A man's home is his castle." What people do with their lives is
not for me to interfere with. The essence of Cypherpunkdom.

Sorry for lapsing into a political speech, but I hate it when folks
don't think through the implications of what they say. Comparing the
need to control "promiscuous sex" and "harmful drugs" to the fight for
privacy and strong cryptography is pretty bizarre.

I urge you to do some more thinking.

--Tim May

--
..........................................................................
Timothy C. May         | Crypto Anarchy: encryption, digital money,
<EMAIL_ADDRESS>     | anonymous networks, digital pseudonyms, zero
408-688-5409           | knowledge, reputations, information markets,
W.A.S.T.E.: Aptos, CA  | black markets, collapse of governments.
Higher Power: 2^859433 | Public Key: PGP and MailSafe available.
"National borders are just speed bumps on the information superhighway."

{% endraw %}
```

## Thread

+ Return to [February 1994](/archive/1994/02)

+ Return to "[Michael Johnson <mpj@csn.org>](/authors/michael_johnson_mpj_at_csn_org_)"
+ Return to<EMAIL_ADDRESS>(Timothy C. May)](/authors/tcmay_at_netcom_com_timothy_c_may_)"

+ 1994-02-23 (Wed, 23 Feb 94 14:00:33 PST) - [Give me your privacy and I will protect you.](/archive/1994/02/257922a672e4e236938174e19d3d56bdcd4f8aa23ca4b14983d6fbd2c10a5c52) - _Michael Johnson<EMAIL_ADDRESS>  + 1994-02-23 (Wed, 23 Feb 94 14:32:19 PST) - Re: Give me your privacy and I will protect you. -<EMAIL_ADDRESS>(Timothy C. May)_


text:
## Micro-Reddit

> These projects will give you a chance to actually build some forms, both using nearly-pure HTML and then graduating to using the helper methods that Rails provides. In this project, we will built a form the old fashioned way and then the Rails way. .[Full Task Description](https://www.theodinproject.com/courses/ruby-on-rails/lessons/forms#project-bare-metal-forms-and-helpers).

## Built With

- Ruby 2.7x
- Ruby On Rails 6 or higher

## Getting Started

To get a local copy up and running follow these simple example steps.

### Prerequisites

You need Ruby & RoR inorder to have this run on your Machine

### Install

 - Install Ruby and Ruby on Rails to your computer by following [this](https://gorails.com/setup/) guide

 - Clone this git repository.
    ```sh
        git clone https://github.com/sinansevgi/reformer.git
    ```
 - Open the terminal in the project directory using 'cd reformer'.

 - Use `bundle install` to install Ruby dependencies.

 - Use `yarn install` to install Javascript dependencies.

 - From the terminal run 'rails db:migrate'

 - You can interact with models from `rails console`.

## Author

👤 **Iyadi Oluwaseun**

- Github: [@CornerstoneII](https://github.com/CornerstoneII)
- Linkedin: [CornerstoneII](https://www.linkedin.com/in/oluwaseun-iyadi-773584b4/)

## Author

👤 **Sinan Sevgi**
- GitHub: [@sinansevgi](https://github.com/sinansevgi)
- LinkedIn: [@sinansevgi](https://www.linkedin.com/in/sinan-s-52559437/)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the [issues page](issues/).

## Show your support

Give a ⭐ if you like this project!

## Acknowledgments

- Thanks to The Odin Project for their great guides.

## License
This project is [MIT](https://opensource.org/licenses/MIT) licensed.

repository: sinansevgi/reformer

branch_name: refs/heads/Development

gha_language: Ruby

repo_name: sinansevgi/reformer


text:
## Quantum Safe Storage Testplan

### Prerequisites
The quantum safe storage system runs on the following platforms
- bare metal linux installation.
- kubernetes cluster with Helm installation scripts.

### Installation
For instructions in installing the QSFS please see the manual [here](../manual/README.md).

#### Bare metal Linux
The software comes as a single binary which will install all the necessary components (local) to run the quantum safe file system.  The server in the storage front end and the TF Grid is the storage backend. The storage backend configuration can be provided in two different ways:
- the user has access to the eVDC facility of Threefold and is able to download the kubernetes configuration file.
- the binary has built in options to ask for backend storage components to be provisioned an delivered.

### Architecture and failure modes

Quantum Safe Storage is built from a number of components.  Components are connected and interacting and therefore there are a number of failure modes that need to be considered for the test plan.

Failure modes which we have testplans and cases for:

  - [Enduser](#enduser)
  - [Storage protocol](#storage-protocol)
  - [Filesystem](#filesystem)
  - [Storage engine](#storage-engine)
  - [Metadata store](#metadata-store)
  - [Physical storage devices](#physical-storage-devices)
  - [Interaction Enduser - Storage Protocol](#enduser-to-storage-protocol)
  - [Interaction Storage Protocol - Filesystem](#storage-protocol---filesystem)
  - [Interaction Filesystem - Storage Engine](#filesystem-to-storage-engine)
  - [Interaction Storage Engine - Physical Storage Device](#storage-engine-to-physical-storage-device)
  - [Interaction Storage Engine - Metadata Store](#storage-engine-to-metadata-store)

![](img/failure_points.jpg)

#### Enduser

Failure scanerio's
- End user enters weird / wrong data at during QSS install
- End user deletes / changes things on the QSS engine host
    - End user stops / deletes the storage protocol application of any of its configuration / temp storage facilities
    - End user deletes the quantum safe file system and / or it configuration files
    - End user deletes the storage enginer and / or its configuration and temp storage files.

Tests to conduct
#### Storage protocol

Failure scanerio's

Storage protocol can be anything from IPFS, minio, sFTP and all the other protocols available.  The possible failure modes for these are endless to test.  For a couple of well knownm protocols we will do some basic testing
- **minio**
- **sFTP**
- **syncthing**
- **scp**

For all these protocols a number of simple tests can he done:
  - stop the protocol binary while data is being pushed in. restart the binary and see if normal operation commences (data loss eg. data in transfer when failure happened is accaptable).
  - make changes to the config file (policy, parameters, etc) and see if normal operation commences.

Tests to conduct
#### Filesystem

Direct access to the filesystem and eliminates the dependency of the interface protocol.  The filesystem provides a well knmow interface to browse, create, store and retrieve data in an easy and structured way.

Tests to conduct. Testing is required to see if the filesystem  can deal with:
  - create a large number of nested directories and see if all this is causing problems
  - create a large number fo small files and see if this is creating problems
  - create a number of very large files (1GB+) and see if this is causing any problems.
  - delete a (large) number of files
  - delete a (large) number of derectories
  - move a (large) number of files
  - move a (large) number of directories

#### Storage engine

The storage engine takes files (data) and runs a "forward error correcting algorithm" on the data.  The algorithm requires a "storage" policy to specify how to treat the inbound data and where to store the resuling data descriptions.  This engine is non-redundant at this point in time and we should test how it behaves with certain failure modes.

Tests to conduct:
  - storage policy is change during operation of the storage engine
    - physical storage devices are added
    - physical storage devices are deleted
    - storage policy (example - 16:4) is changed during operation
    - other configuration components are changed
      - physical storage access passwords
      - encryption key

#### Metadata store

The metadatastore stores the information needed to retrieve the part of descriptions that make up an original piece of data.  These metadata stores are redundant (3x?) and store all data required.

Testing needs to be done on:
  - corruption / deleting one out of the three metadata stores
  - corruption / deleting two out of three metadata stores
  - rebuilding failed metadata stores
  - create high workloads of adding new data and retrieving stored data - no longer available in a local cache.

#### Physical storage devices

Physical storage devices are ZDB's on one the the TF Grid networks (Mainnet, Testnet, Devnet).  ZDB's manage slices of physical disk space on HDD's and SSD's.  They have a very simple operational model and API interface.  ZDB's are operating in "append only" mode by default.

Testing needs to be done:
  - create a high workload writing and reading a the same time
  - get

#### Enduser to Storage Protocol

Failure scanerio's

Tests to conduct
#### Storage Protocol to Filesystem

Failure scanerio's

Tests to conduct
#### Filesystem to Storage Engine

Failure scanerio's

Tests to conduct
#### Storage Engine to Physical Storage Device

Failure scanerio's

Tests to conduct
#### Storage Engine to Metadata Store

Failure scanerio's

Tests to conduct


text:
# sdwan-python-rest-api

[![published](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-published.svg)](https://developer.cisco.com/codeexchange/github/repo/kimdoanh89/sdwan-python-rest-api)

[![Run in Cisco Cloud IDE](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-runable-icon.svg)](https://developer.cisco.com/devenv/?id=devenv-vscode-base&GITHUB_SOURCE_REPO=https://github.com/kimdoanh89/sdwan-python-rest-api)
## SD-WAN 20.3.1

This public repo contains python code that can be used to interact with the Cisco SD-WAN vManage REST API. The environment is pre-configured to access my local SD-WAN lab in GNS3.

You can edit the variables in the `vmanage/constants.py` to point to your own vManage instance, the AlwaysOn SDWAN Sandbox, or the Reservable
SDWAN Sandbox.

**Note:** When you use the AlwaysOn Sandbox, you do not have permission to perform
some commands such as `edit`, `create`, `delete`.

### Topology

![Alt text](images/07_RG.png)

## Current functions
The code contains REST API calls to authenticate and interact with Cisco SD-WAN vManage 20.3.1. Currently, it supports the following functions:
```bash
-> % sdwancli
Usage: sdwancli [OPTIONS] COMMAND [ARGS]...

  Command line tool to interact with CISCO SDWAN vManage.

Options:
  --help  Show this message and exit.

Commands:
  bfd       Commands to monitor bfd sessions: link --state, summary, session
  control   Commands to monitor control plane: connections,...
  device    Commands to see details of device: list
  ipsec     Commands to monitor ipsec: outbound-connections,...
  omp       Commands to monitor omp: tlocs, tloc-paths
  sla       Commands for managing SLA Class: list, create, edit, delete
  template  Commands to manage Device and Feature Templates: list, show,...
```

And for each command, it supports some subcommands, for example, `template` command:

```bash
-> % sdwancli template
Usage: sdwancli template [OPTIONS] COMMAND [ARGS]...

  Commands to manage Device and Feature Templates: list, show, create,
  delete

Options:
  --help  Show this message and exit.

Commands:
  device   Manage Device Templates: list, show, create, delete
  feature  Manage Feature Templates: list, show, create, delete
```

Another `bfd` command has following subcommands:

```bash
-> % sdwancli bfd
Usage: sdwancli bfd [OPTIONS] COMMAND [ARGS]...

  Commands to monitor bfd sessions: link --state, summary, session

Options:
  --help  Show this message and exit.

Commands:
  link      Get list of bfd links with status: up or down
  sessions  Show BFD sessions at a device
  summary   Show BFD summary of a device
```

You can access the help of each subcommand to know about the arguments using
`sdwancli {command} {subcommand} --help`, for example:

```bash
-> % sdwancli sla create --help
Usage: sdwancli sla create [OPTIONS]

  Create a SLA Class

Options:
  --name TEXT         name of the SLA Class
  --description TEXT  description of the SLA Class
  --loss TEXT         loss 0 - 100 %
  --latency TEXT      latency 1 - 1000 ms
  --jitter TEXT       jitter 1 - 1000 ms
  --help              Show this message and exit.
```

## Requirements

To use this code you will need:

- Python 3.8+
- vManage user login details. (User should have privilege level to configure policies)

## Install and Setup
Clone the code to local machine.
```bash
git clone https://github.com/kimdoanh89/sdwan-python-rest-api
cd sdwan-python-rest-api
```

Setup Python Virtual Environment (requires Python 3.8+)
```bash
python3.8 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -e .
```
A .py file with the Cisco SD-WAN credentials has been created in `vmanage/constants.py`. You can edit the variables in the file to point to your own vManage instance.

## Outputs
### Device list

```bash
sdwancli device list
```

![Alt text](images/01_device_list.png)

### Template list, show, delete

```bash
sdwancli template list
sdwancli template show --template_id cb81c4d1-110b-4f33-9925-bf4889129019
sdwancli template delete --template_id cb81c4d1-110b-4f33-9925-bf4889129019
```
![Alt text](images/01_template_list.png)

### BFD sessions monitor

```bash
sdwancli bfd link --state up
sdwancli bfd link --state down
```
![Alt text](images/03_bfd_link_up_down.png)

```bash
sdwancli bfd session --system_ip <IP_ADDRESS>
```

![Alt text](images/03_bfd_session.png)

```bash
sdwancli bfd summary --system_ip <IP_ADDRESS>
```

![Alt text](images/03_bfd_summary.png)

### SLA Class manager
#### SLA list and create

```bash
sdwancli sla list
sdwancli sla create --name "Video-Games3" --description "videogame 3" --loss 1 --latency 20 --jitter 5
```

![Alt text](images/04_sla_list_create.png)

#### SLA edit and delete
```bash
sdwancli sla edit --name "Video-Games3" --sla_id 9e5efdbe-ef79-4797-b3d3-d9b732d45422 --loss 10 --latency 100 --jitter 20
sdwancli sla delete --sla_id 9e5efdbe-ef79-4797-b3d3-d9b732d45422
```

![Alt text](images/04_sla_edit_delete.png)

### OMP monitor
#### omp tlocs
```bash
sdwancli omp tlocs --system_ip <IP_ADDRESS>
```

![Alt text](images/05_omp_tlocs.png)

#### omp tloc-paths
```bash
sdwancli omp tloc-paths --system_ip <IP_ADDRESS>
```
```bash
tloc-paths entries <IP_ADDRESS> default ipsec
tloc-paths entries <IP_ADDRESS> default ipsec
tloc-paths entries <IP_ADDRESS> default ipsec
```

### Trouble shooting commands

| vEdge commands                   | Sdwancli commands                                        |
|----------------------------------|----------------------------------------------------------|
| show control connections         | sdwancli control connections --system_ip <IP_ADDRESS>         |
| show control connections-history | sdwancli control connections-history --system_ip <IP_ADDRESS> |
| show bfd sessions                | sdwancli bfd sessions --system_ip <IP_ADDRESS>                |
| show omp tlocs                   | sdwancli omp tlocs --system_ip <IP_ADDRESS>                   |
| show omp tloc-paths              | sdwancli omp tloc-paths --system_ip <IP_ADDRESS>              |


text:
# Airship in a Pod

Airship in a pod is a Kubernetes pod definition which describes all of the
components required to deploy a fully functioning Airship 2 deployment. The pod
consists of the following "Task" containers:

* `artifact-setup`: This container builds the airshipctl binary and makes it
  available to the other containers. Also, based on the configuration provided
  in the airship-in-a-pod manifest, airshipctl/treasuremap(based on the usecase) git repositories
  will be downloaded and the required tag or commitId will be checked out.
* `infra-builder`: This container creates the various virtual networks and
  machines required for an Airship deployment
* `runner`: The runner container is the "meat" of the pod, and executes the
  deployment

The pod also contains the following "Support" containers:

* `libvirt`: This provides virtualisation
* `sushy-tools`: This is used for its BMC emulator
* `docker-in-docker`: This is used for nesting containers
* `nginx`: This is used for image hosting

## Azure Kubernetes Service (AKS) Quick Start

Airship-in-a-Pod can be easily run within AKS by running the script:

```
tools/airship-in-a-pod/scripts/aiap-in-aks.sh
```

Environment variables can be supplied to override default, such as:

* `AIAP_POD`: the kustomization to use for the AIAP Pod definition
* `CLEANUP_GROUP`: whether to delete the resource group created for
   AIAP.  Defaults to `false`.

Please consult the script for the full list of overrideable variables.

Note that authentication (e.g. `az login`) must be done prior to invoking
the script.

## Prerequisites

### Nested Virtualisation

If deployment is done on a VM, ensure that nested virtualization is enabled.

### Setup shared directory

Create the following directory with appropriate r+w permissions.

```
sudo mkdir /opt/.airship
```

### Environment variable setup

If you are within a proxy environment, ensure that the following environment
variables are defined, and NO_PROXY has the IP address which minikube uses.
For retrieving minikube ip refer: [minikube-ip](https://minikube.sigs.k8s.io/docs/commands/ip/)

```
export HTTP_PROXY=http://username:password@host:port
export HTTPS_PROXY=http://username:password@host:port
export NO_PROXY="localhost,<IP_ADDRESS>,<IP_ADDRESS>/16,<IP_ADDRESS>/12,<IP_ADDRESS>"
export PROXY=http://username:password@host:port
export USE_PROXY=true
export http_proxy=http://username:password@host:port
export https_proxy=http://username:password@host:port
export no_proxy="localhost,<IP_ADDRESS>,<IP_ADDRESS>/16,<IP_ADDRESS>/12,<IP_ADDRESS>"
export proxy=http://username:password@host:port
```

### To start minikube

Within the environment, with appropriate env variables set, run the following command.

```
sudo -E minikube start --driver=none

```
Refer [minikube](https://minikube.sigs.k8s.io/docs/start/)for more details.

## Usage

Since Airship in a Pod is just a pod definition, deploying and using it is as
simple as deploying and using any Kubernetes pod with kustomize tool.

###  Pod configuration

The below section provides steps to configure site with [airshipctl](https://github.com/airshipit/airshipctl)/[treasuremap](https://github.com/airshipit/treasuremap) manifests.

#### For airshipctl

Within the examples/airshipctl directory, update the existing patchset.yaml
file to reflect the airshipctl branch reference as required.

filepath : airshipctl/tools/airship-in-a-pod/examples/airshipctl/patchset.yaml

```
- op: replace
  path: "/spec/containers/4/env/4/value"
  value: <branch reference>

```

#### For treasuremap

For treasuremap related manifests, use the patchset.yaml from
examples/treasuremap and  update the following to reflect
the treasuremap branch reference and the pinned airshipctl reference
as required. The pinned airshipctl reference is the tag/commitId with
which treasuremap is tested and found working satisfactorily. This
could be found listed as 'AIRSHIPCTL_REF' attribute under the zuul.d
directory of treasuremap repository.

filepath : airshipctl/tools/airship-in-a-pod/examples/treasuremap/patchset.yaml

```
- op: replace
  path: "/spec/containers/4/env/4/value"
  value: <branch reference>

- op: replace
  path: "/spec/containers/4/env/6/value"
  value: <airshipctl_ref>

```

For more details, please consult the examples directory.

### Deploy the Pod

Once patchset.yaml for either airshipctl/treasuremap is ready, run the following
command against the running minikube cluster as shown below.

For example to run AIAP with treasuremap manifests, run the following commands.

```
cd tools/airship-in-a-pod/examples/{either airshipctl or treasuremap}
kustomize build . | kubectl apply -f -

```

### View Pod Logs

```
kubectl logs airship-in-a-pod -c $CONTAINER
```

### Interact with the Pod

```
kubectl exec -it airship-in-a-pod -c $CONTAINER -- bash
```

where `$CONTAINER` is one of the containers listed above.

### Inspect Cluster

Once AIAP is fully installed with a target cluster (air-target-1 and air-worker-1 nodes)
installed and running, the cluster could be monitored using the following steps.

#### Log into the runner container

```
kubectl exec -it airship-in-a-pod -c runner -- bash
```

Run the .profile file using the following command to run kubectl/airshipctl commands
as below.

```
source ~/.profile

```

To run kubectl commands on Target cluster, use --kubeconfig and --context params
within kubectl as below.

```
kubectl --kubeconfig /root/.airship/kubeconfig --context target-cluster get pods -A'
```

### Output

Airship-in-a-pod produces the following outputs:

* The airshipctl repo, manifest repo, and airshipctl binary used with the deployment.
* A tarball containing the generated ephemeral ISO, as well as the
  configuration used during generation.

These artifacts are placed at `ARTIFACTS_DIR` (defaults to /opt/aiap-artifacts`).

### Caching

As it can be cumbersome and time-consuming to build and rebuild binaries and
images, some options are made available for caching. A developer may re-use
artifacts from previous runs (or provide their own) by placing them in
`CACHE_DIR` (defaults to `/opt/aiap-cache`). Special care is needed for the
caching:

* If using a cached `airshipctl`, the `airshipctl` binary must be stored in the
  `$CACHE_DIR/airshipctl/bin/` directory, and the developer must have set
  `USE_CACHED_ARTIFACTS` to `true`.
* If using a cached ephemeral iso, the iso must first be contained in a tarball named `iso.tar.gz`, must be stored in the
  `$CACHE_DIR/` directory, and the developer must have set
  `USE_CACHED_ISO` to `true`.


text:
### [CVE-2009-3707](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3707)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)

### Description

VMware Authentication Daemon 1.0 in vmware-authd.exe in the VMware Authorization Service in VMware Workstation 7.0 before 7.0.1 build 227600 and 6.5.x before 6.5.4 build 246459, VMware Player 3.0 before 3.0.1 build 227600 and 2.5.x before 2.5.4 build 246459, VMware ACE 2.6 before 2.6.1 build 227600 and 2.5.x before 2.5.4 build 246459, and VMware Server 2.x allows remote attackers to cause a denial of service (process crash) via a \x25\xFF sequence in the USER and PASS commands, related to a "format string DoS" issue. NOTE: some of these details are obtained from third party information.

### POC

#### Reference
- http://www.vmware.com/security/advisories/VMSA-2010-0007.html

#### Github
No PoCs found on GitHub currently.

repository: trickest/cve

gha_language: HTML

repo_name: trickest/cve


text:
# docker-etlegacy
Docker image for running a ET: Legacy 64-bit dedicated server.

[![GitHub](https://img.shields.io/badge/github-blue?style=flat&color=grey&logo=github)](https://github.com/SebDanielsson/docker-etlegacy)
[![GitHub stars](https://img.shields.io/github/stars/SebDanielsson/docker-etlegacy?style=flat&color=blue&logo=github)](https://github.com/SebDanielsson/docker-etlegacy/stargazers)
[![GitHub issues](https://img.shields.io/github/issues/SebDanielsson/docker-etlegacy?style=flat&color=blue&logo=github)](https://github.com/SebDanielsson/docker-etlegacy/issues)
[![GitHub forks](https://img.shields.io/github/forks/SebDanielsson/docker-etlegacy?style=flat&color=blue&logo=github)](https://github.com/SebDanielsson/docker-etlegacy/network)
[![GitHub license](https://img.shields.io/github/license/SebDanielsson/docker-etlegacy?style=flat&color=blue&logo=github)](https://github.com/SebDanielsson/docker-etlegacy/blob/master/LICENSE)

[![Docker](https://img.shields.io/badge/docker-blue?style=flat&color=grey&logo=docker)](https://hub.docker.com/r/sebdanielsson/etlegacy)
![Docker Stars](https://img.shields.io/docker/stars/sebdanielsson/etlegacy?style=flat&color=blue&logo=docker&label=stars)
![Docker Pulls](https://img.shields.io/docker/pulls/sebdanielsson/etlegacy?style=flat&color=blue&logo=docker&label=pulls)
![Docker Cloud Automated build](https://img.shields.io/docker/cloud/automated/sebdanielsson/etlegacy?style=flat&color=blue&logo=docker&label=build)

## Changelog
**2021-03-18:** ET: Legacy 2.77.1 is here!
* Bump ET: Legacy to version 2.77.1

**2021-03-01:** ET: Legacy 2.77 is here!
* Bump ET: Legacy to version 2.77
* Change website for .pk3 download to official Splash Damage website.
* Added a Docker Volume for /etlegacy
* Moved the launch options from entrypoint to CMD so the user can override them with their own launch options.

**2021-01-17:** Second release.

This is a breaking release that might break your server. Backup all config files before updating and then make a clean install.
* More clean way of starting the server without need for entrypoint.sh.

**2020-09-25:** First release.

## Usage
The documentation for ET: Legacy isn't great but they have a [wiki](https://github.com/etlegacy/etlegacy/wiki) on their [GitHub](https://github.com/etlegacy/etlegacy) and [documentation for some variables](https://github.com/etlegacy/etlegacy/wiki/Set-up-Features#server).

### etl_server.cfg.sample
Download etl_server.cfg and mapvotecycle.cfg to ./data and make the changes that you want before starting the container.

### docker run
```
docker run --name etlegacy \
-p 27960:27960/udp \
-v ./data/etl_server.cfg:/etlegacy/etmain/etl_server.cfg \
sebdanielsson/etlegacy
```

### docker-compose.yml
```
version: '3.8'
services:
  etlegacy:
    image: sebdanielsson/etlegacy
    container_name: etlegacy
    ports:
      - '27960:27960/udp'
    volumes:
      - './data/etl_server.cfg:/etlegacy/etmain/etl_server.cfg'
      - './data/mapvotecycle.cfg:/etlegacy/etmain/mapvotecycle.cfg'
    restart: unless-stopped
```

## To-Do
* Make a 32-bit option
* Feel free to suggest improvements.

## License
MIT


text:
---
uid: crmscript_ref_SpmShipment_setStartDate_DateTime_start
title: SpmShipment.setStartDate(DateTime start)
intellisense: SpmShipment.setStartDate
keywords: setStartDate(DateTime)
so.topic: reference
---

# SpmShipment.setStartDate(DateTime start)

Sets the date and time when the shipment will be started. If you specify a past date the shipment will be started imediately.

* **start:** the start date and time for this shipment

repository: stianol/crmscript

repo_name: stianol/crmscript


text:
# Fluent PHP [![Build Status][travisimage]][travislink]

[travisimage]: https://travis-ci.org/tobyz/fluent-php.svg?branch=master
[travislink]: https://travis-ci.org/tobyz/fluent-php

This library is a PHP implementation of [Project Fluent][], a localization
framework designed to unleash the expressive power of the natural language.

It is a simple port of the official JavaScript [@fluent/bundle][] package with a very similar API and source code architecture. It also includes an overlay utility based on [@fluent/dom][] to allow HTML strings to be translated.

[Project Fluent]: https://projectfluent.org
[@fluent/bundle]: https://github.com/projectfluent/fluent.js/tree/master/fluent-bundle
[@fluent/dom]: https://github.com/projectfluent/fluent.js/tree/master/fluent-dom

## Installation

    composer install tobyz/fluent-php

## Usage

```php
use Tobyz\Fluent\Bundle;
use Tobyz\Fluent\Resource;
use Tobyz\Fluent\Overlay;

$resource = new Resource('
-brand-name = Foo 3000
welcome = Welcome, {$name}, to {-brand-name}!
');

$bundle = new Bundle('en-US');
$errors = $bundle->addResource($resource);
if (count($errors)) {
    // Syntax errors are per-message and don't break the whole resource
}

$welcome = $bundle->getMessage('welcome');
if ($welcome) {
    $bundle->formatPattern($welcome['value'], ['name' => 'Anna']);
    // → "Welcome, Anna, to Foo 3000!"
}

// Overlay translations and attributes onto HTML
// See https://github.com/projectfluent/fluent.js/wiki/DOM-Overlays
Overlay::translateHtml(
    '<p><img data-l10n-name="world" src="world.png"></p>',
    [
        'value' => 'Hello, <img data-l10n-name="world" alt="world">!',
        'attributes' => ['title' => 'Hello']
    ]
);
// → <p title="Hello">Hello, <img data-l10n-name="world" alt="world" src="world.png">!</p>
```

## Caveats

* There is no PHP implementation of `Intl.PluralRules`. For now a basic "polyfill" has been included but it only contains the rule for English cardinals.

* PHP includes the [NumberFormatter][] and [IntlDateFormatter][] classes, but these lack some of the functionality of `Intl.NumberFormat` and `Intl.DateTimeFormat`, and thus the full API for the [built-in functions][] cannot be supported. Specifically:

    * In `NUMBER`, the `currencyDisplay` option is not supported.

    * In `DATETIME`, no options are supported except for `timeZone`. However, the [experimental] `dateStyle` and `timeStyle` options are supported.

* The library currently has no tests.

[NumberFormatter]: https://www.php.net/manual/en/class.numberformatter.php
[IntlDateFormatter]: https://www.php.net/manual/en/class.intldateformatter.php
[built-in functions]: https://projectfluent.org/fluent/guide/functions.html
[experimental]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat#Parameters

## Contributing

Fluent PHP is open-source, licensed under the Apache License, Version 2.0. Feel free to send pull requests or create issues if you come across problems or have great ideas.

repository: tobyzerner/fluent-php

repo_name: tobyzerner/fluent-php


text:
---
layout: post
title:  "Welcome to My Site!"
date:   2019-02-15 13:10:20 -0500
categories: miscellaneous
---

This is the example post that accompanies a new Jekyll site. Several great tutorials for creating your own personal
site can be found at

- [Getting Started with Jekyll (plus a Free Bootstrap 3 Starter Theme)][site1]
- [Build A Blog With Jekyll And GitHub Pages][site2]
- [Creating and Hosting a Personal Site on GitHub][site3]
- and this awesome [series on YouTube][site4]

Happy Jekyll-ing

\- William Halsey

# Welcome to Jekyll

You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You
can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web
server and auto-regenerates your site when a file is updated.

To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext`
and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.

Jekyll also offers powerful support for code snippets:

{% highlight ruby %}
def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature
requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].

[site1]: https://scotch.io/tutorials/getting-started-with-jekyll-plus-a-free-bootstrap-3-starter-theme
[site2]: https://www.smashingmagazine.com/2014/08/build-blog-jekyll-github-pages/
[site3]: http://jmcglone.com/guides/github-pages/
[site4]: https://www.youtube.com/playlist?list=PLLAZ4kZ9dFpOPV5C5Ay0pHaa0RJFhcmcB
[jekyll-docs]: https://jekyllrb.com/docs/home
[jekyll-gh]:   https://github.com/jekyll/jekyll
[jekyll-talk]: https://talk.jekyllrb.com/


text:
# Working with Bash in Bazel

Bazel has two out-of-the-box rules, `sh_test` and `genrule`, that can be used
for one-shot custom build targets. If there is some reusable logic behind your
target, consider building a new rule in Skylark instead.

## Platform

There are a number of limitations in the way Bazel will set up the environment
for these Bash scripts when running them, and they differ based on the OS. The
instructions given here will hopefully help you get to a point where your rules
run on all platforms.

## Dependencies

Bazel promises hermeticity, but Bash scripts have access to whatever they want.
As far as I can tell they are not run in any kind of chroot or container (at
least on macOS), although they are run with a restricted PATH (on Linux) and in
a specially set-up folder.

As such, in order to get all of your dependencies available, you need to
specify them in the relevant attributes:
- `srcs` for (source) files required during build; note that in the case of
  `sh_test`, this must be a single-element list that contains just the script
  you intend to run.
- `data` for files required at run time (`sh_test` only).
- `deps` for results of other Bazel rules required at run time.
- `tools` for executables (`genrule` only).

## `genrule`: substitutions

The code of a `genrule` directive is the `cmd` attribute, which is a multiline
string embedding a Bash script. Within that script, you need to use `$$` to
produce a single `$` in the Bash script itself, as `$()` will be expanded by
Bazel's own string interpolation. You can use the `location` and `locations`
functions to get paths for Bazel build results. You should note that the paths
these return is relative to the starting `$PWD` of the script, so if your Bash
script `cd`s somwhere, you have to take that into account.

You can include local files (files present in your workdir that are not the
result of another Bazel rule) as part of your `srcs` by using the `glob`
function, as in:
```
    srcs = glob([
        "package.json",
        "syntaxes/*",
    ]) + [
        "//some:rule",
    ],
```

The script will start running at the root of your workspace. While local files
specified in `srcs` are specified using paths relative to the package root in
the `glob` directive (i.e. relative to the containing directory of the
`BUILD.bazel` file); they are added to the run time directory of the script
using their package-qualified path. If the above snippet came from
`my/package/BUILD.bazel`, the `package.json` file would be at
`my/package/package.json`.

Note that tools and data dependencies will also be given as relative (to the
script's starting directory) paths through the `location` and `locations`
functions.

## Conditionals

Bazel supports simple conditionals in its rules, though I have not found a way
to use them in string substitutions. As some rules have different names under
Windows, this creates a bit of a problem. Aliases provide a way around that;
for example:
```
alias(
    name = "yarn",
    actual = "@nodejs//:bin/yarn.cmd" if is_windows else "@nodejs//:bin/yarn",
)
```
would let you use, in the `cmd` entry of a script:
```
        $$DIR/$(location :yarn)
```
to invoke the correct `yarn` executable regardless of platform.

## Links and speed

Bazel relies a lot on symbolic links to provide what should appear like a new,
isolated environment to each build rule without having to pay the cost of
copying files over each time. However, this means that
1. Everything path-related is different on Windows, because symlinks there are
   not well-supported, and
1. While Bazel can claim some nice speed for creating the environment, every
   read your rule does from a Bazel-provided file takes the hit of going
   through the symlink indirection.
That second point can be very costly when you have to read many small files
(e.g. node dependencies).

## `sh_test`: "runfiles"

Whereas `genrule` takes an inline Bash script as its `cmd` attribute, the
`sh_test` script will run a Bash script defined in a separate file and
specified as the single entry in the `srcs` attribute. This adds the
complication that `location` substitution is not available.

A partial workaround for that is to pass the relevant paths to the script as
the `args` attribute of the `sh_rule`; those will be available as traditional
arguments in Bash (`$@`, `$#`, `$1`, etc.).

However, in order for the test script to work under Windows (where symlinks are
not well supported), another level of indirection is introduced by Bazel: the
paths returned by the `location` function cannot be used directly by the script
given to `sh_test`, and must further be translated to "real", absolute paths
through the use of an `rlocation` Bash function.

To make this function available to your Bash script, the `sh_test` rule must
include an additional dependency:
```
deps = ["@bazel_tools//tools/bash/runfiles"],
```

Then, anything your script needs access to, including executables, needs to be
passed in as arguments (using `location` in the `BUILD.bazel` file). In the
script itself, before using any of the arguments, you have to paste [the
following snippet from the Bazel runfiles]():
```
    # Copy-pasted from the Bazel Bash runfiles library v2.
    set -uo pipefail; f=bazel_tools/tools/bash/runfiles/runfiles.bash
    source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \
      source "$(grep -sm1 "^$f " "${RUNFILES_MANIFEST_FILE:-/dev/null}" | cut -f2- -d' ')" 2>/dev/null || \
      source "$0.runfiles/$f" 2>/dev/null || \
      source "$(grep -sm1 "^$f " "$0.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
      source "$(grep -sm1 "^$f " "$0.exe.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
      { echo>&2 "ERROR: cannot find $f"; exit 1; }; f=; set -e
    # --- end runfiles.bash initialization v2 ---
```
After that, in your Bash script, you can construct the absolute paths by taking
the values Bazel gave you and expanding them like (assuming the first argument
specified in the `BUILD.bazel` file was a `$(location ...)` call) :
```
MY_FIRST_ARG="$(rlocation "$TEST_WORKSPACE/$1")"
```
The `TEST_WORKSPACE` variable is set by Bazel to the current WORKSPACE name.
Note that you should use this name even for dependencies from external
namespaces.

Note that you should use the above method to access _all_ of your dependencies,
_including_ "local" files from the same package as the `sh_test`. Trying to
access those files directly by their expected path, as you can do in
`genrule`s, will not work with `sh_test` on Windows. You may have to wrap your
local files in a `filegroup` to have a valid target for the `$(location ...)`
call you should pass as an `args` to the `sh_test`.

repository: digital-asset/daml

gha_language: Scala

repo_name: digital-asset/daml


text:
# Vagrant Alpine Docker VM

A Vagrant environment to deploy docker/docker-compose/git on an alpine base image.

This project is meant to deploy the same development environment regardless of the hosting platform (Windows/macOS/Linux).

This project is meant to have a fully workable and lightweight docker environment.

## Prerequisites:
### Windows:
* [chocolatey](https://chocolatey.org/install)
* virtualbox 6 - chocolatey
```
choco install virtualbox --version=6.0.16
```
* [vagrant - chocolatey](https://chocolatey.org/packages/vagrant)
* vagrant disksize plugin
```
vagrant plugin install vagrant-disksize
```
* vagrant vbguest plugin
```
vagrant plugin install vagrant-vbguest
```
### OSX
```bash
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Once installed
brew doctor
brew update
# Install Virtual Box Cask
brew cask install virtualbox
# brew cask install vagrant
brew cask install vagrant
# vagrant disksize plugin
vagrant plugin install vagrant-disksize
```

## Configure Vagrant guest host

You can configure the Vagrant guest vm by editing the *nodes.yaml*s.
Duplicate the [nodes.yaml.sample](./nodes.yaml.sample) or rename it into *nodes.yaml* than set params according to your system.

## Usage:

Provision the VM and ssh it:
*NOTE*: *On Windows run your PowerShell terminal as administrator*

```bash
vagrant up
vagrant ssh
```

## Useful commands:

```bash
vagrant destroy #delete the VM, and you will lose all work on the instance
vagrant up      #create a VM
vagrant suspend #suspend the vm
vagrant resume  #resume a suspended vm
```

repository: taherbs/Docker-Vagrant-Alpine-host

repo_name: taherbs/Docker-Vagrant-Alpine-host


text:
OUT OF DATE
===========
These examples are out of date. They will be updated in time, but please refer to the Readme in the main directory for now.

...

These are examples of how to use upnpclient. Since these examples are dependant
on actual physical devices on your network, they will probably not work for
you.

Examples can be run with the `run.sh` file:

    $ ./run.sh discover.py

The following examples are included:

*   `discover.py`

    Discover UPnP devices on the network and print some info.

*   `server.py`

    Directly connect to an UPnP device without discovery.

*   `action_call.py`

    Find and call an action on an UPnP device.

*   `upnp_dump.py`

    Discover all UPnP devices and list all their actions including parameters, etc.

repository: flyte/upnpclient

branch_name: refs/heads/develop

repo_name: flyte/upnpclient


text:
---
title: Keyboard Navigation
page_title: Keyboard Navigation
description: Check our "Keyboard Navigation" documentation article for the RadMenu {{ site.framework_name }} control.
slug: radmenu-keyboard-navigation
tags: keyboard,navigation
published: True
position: 12
---

# Keyboard Navigation

Along with its other features, `RadMenu` supports keyboard navigation. You can easily navigate through the items by just pressing the arrow keys on your keyboard or you can use the access key functionality.

## Arrow Keys

When a RadMenuItem is selected you can navigate through its children using the arrow keys of the keyboard. On the image below you can see a demonstration of different key presses and the result of them.

![{{ site.framework_name }} RadMenu Keyboard Navigation with Arrow Keys](images/RadMenu_Keyboard_Navigation_01.png)

## Access Keys

The Access Keys allows you to reach a specific RadMenuItem inside a RadMenu control by holding down the __Alt__ or __F10__ key and then pressing another key on the keyboard. To define an Access Key of a RadMenuItem you need to place an underscore character before the letter in the Header property of the control.

#### __[XAML] Setting Access Keys__
{{region radmenu-keyboard-navigation-0}}
	<telerik:RadMenu>
		<telerik:RadMenuItem Header="\_File">
			<telerik:RadMenuItem Header="\_New" />
			<telerik:RadMenuItem Header="\_Options" >
				<telerik:RadMenuItem Header="\_Save" />
				<telerik:RadMenuItem Header="\_Paste" />
			</telerik:RadMenuItem>
		</telerik:RadMenuItem>
		<telerik:RadMenuItem Header="\_View" >
			<telerik:RadMenuItem Header="\_Code" />
		<telerik:RadMenuItem Header="\_Sizes" >
			<telerik:RadMenuGroupItem Header="Sizes" >
				<telerik:RadMenuItem Header="\_Small" Height="35" />
				<telerik:RadMenuItem Header="\_Medium" Height="45" />
				<telerik:RadMenuItem Header="\_Large" Height="55"/>
			</telerik:RadMenuGroupItem>
		</telerik:RadMenuItem>
	</telerik:RadMenu>
{{endregion}}

Default behavior requires holding the Alt key and pressing the first letter after the underscore character - for example, *Alt+F* to activate the item with Header "New" from the above example. In case, you want to avoid holding the Alt key, you can set the [IsMainMenu]({%slug radmenu-features-main-menu%}) property of the RadMenu control. This way you can navigate between the RadMenuItems by pressing Alt once, which will display the available access keys. Keep in mind, that in this case, the first RadMenuItem will be focused.

#### __[XAML] Main Menu__
{{region radmenu-keyboard-navigation-1}}
	<telerik:RadMenu IsMainMenu="true">
	 . . . . .
	</telerik:RadMenu>
{{endregion}}

## See Also

 * [Orientation and DropDownPlacement]({%slug radmenu-features-orientation%})

 * [Opening Modes]({%slug radmenu-features-opening-modes%})

 * [Click Modes]({%slug radmenu-features-click-modes%})

repository: telerik/xaml-docs

repo_name: telerik/xaml-docs


text:
# What The GIL Means For Containers

<!-- Make it "Python GIL" for non-Python confs -->

<!-- # Deployment In The Land Of The GIL -->

<!-- # GILd The Lily: Python In Containers -->

## Abstract

The Python Global Interpreter Lock is an eternal monster under the bed of developers, but it doesn't need to be. This talk will teach you how to take the GIL into account when deploying and scaling Python applications in containers: what it means for ops teams, how to design a good Python deployment, and how to ensure it isn't negatively impacting your systems.

## Description

This talk covers a very basic introduction to the Python Global Interpreter Lock from the point of view of container operations and deployment, along with the knowledge and tools to architect high quality Python application infrastructure. This includes how various application servers interact with the GIL, what problems is causes from an ops-centric point of view, and best practices for running Python applications efficiently and at scale despite the limitations.

## Outline

* Intro
* What Is The GIL (5m)
  * Basics of locking
  * Threads and the GIL
  * IOWAIT
  * C extensions
* Anatomy of a Python Web Server (5m)
  * select()
  * Worker
    * Fork
    * Thread
    * Green
  * Pools and contention
  * Parallels for non-web (e.g. Celery worker)
* Complications (5m)
  * Backpressure and health checks
  * Container OOM tracking
  * Prometheus metrics
    * Big bad global variables
  * Non-IO bound code
  * "Just run more" vs. copy on write utilization
    * gc.freeze()?
  * Default settings gunicorn: a comedy of errors
    * Silent OOMs
    * No internal metrics
* Building For Happiness (5m)
  * Threads threads threads
  * Monitor all the things
  * Embrace your distributed system
  * Threaded web servers
    * Spoiler: Twisted
  * Don't fear the GIL
* Questions (5-10m depending on format)

repository: coderanger/talk-ideas

repo_name: coderanger/talk-ideas


text:
## Description

Angular 2 starter kit featuring the official Tour of Heroes tutorial ([link](https://angular.io/docs/ts/latest/tutorial/)) and Webpack.

## Getting started

```bash
git clone https://github.com/michaelbazos/angular2-starter.git

cd angular2-starter

npm install

npm start
```

The application is served at [http://localhost:3000](http://localhost:3000) in watch mode.

## Features

- Angular 2
- Angular router
- Typescript
- Webpack
- Live reload

## License

[MIT](/LICENSE)


text:
# Task 9: Generating a melody using MusicRNN

## Learning objective:
By the end of Task 9, you will be able to generate a melody using magenta.js based on the seed melody of the user


text:
---
title: "lambda-term"
new_website: https://github.com/diml/lambda-term
no_index: true
---

Lambda-Term is a cross-platform library for manipulating the terminal.

* Admins:
  * [user145](/users/user145)
* Members:
  * [user145](/users/user145)
* [Releases](https://download.ocamlcore.org/lambda-term)
* Registered: 2011-03-05 08:54:33
* Archived data:
  * 0 open bugs
  * 0 open feature requests
  * 0 mailing list
  * 1 VCS
  * 5 released files


text:
OPAKAPAKA
=========

A tiny Ajax and comet-based chat system implemented in Scheme.
Visit the [project page on github.com](http://github.com/torus/opakapaka).

REQUIREMENTS
------------

- Gauche 0.8.13 or later
- Apache or lighttpd with CGI support
- Git (for downloading)

DOWNLOAD
--------

 git clone git://github.com/torus/opakapaka.git

SETUP
-----

- chmod +x *.cgi
- Set permission of this directory so that the HTTP daemon can create
  a data directory and log files.
- Access index.html from web browser.

When you access index.html for the first time, a data diretory and a
new log file will be generated automatically.

CONFIGURATION
-------------

Edit opakapaka.conf.cgi.

LICENSE
-------

Same as Gauche (BSD license).

AUTHOR
------

Toru Hisai <toru at torus dot jp> Twitter: [@torus](http://twitter.com/torus)

Enjoy!

repository: torus/opakapaka

repo_name: torus/opakapaka


text:
# Contributing guidelines

This file loosely follows on the tradition of "awesome lists" https://github.com/sindresorhus/awesome/blob/master/contributing.md

I will basically incorporate any suggestion and the definition of a genome visualization is pretty loose

Just keep things in alphabetical order, and add it to a category if there is one

Some categories, such as the large "Other" category should probably be characterized better

The website is not deployed using TOOLS.json

To deploy the website

cd awesome-genome-visualization
npm run deploy

To develop
npm run develop

repository: sehilyi/awesome-genome-visualization

repo_name: sehilyi/awesome-genome-visualization


text:
# srv-core
## Core functionality for server blueprint

Contains classes used by server:
- `Exception` class is an `Error` class with inner error
- `Middleware` class is a base class for binding middle-ware to [Express](https://expressjs.com/) application.
    - overwrite `bindToRouter()` to add functionality (body-parsers, filters, routes etc.) to provided application.
- ResourceFactory class is a base factory class for pooled resources. Implementations of this class used as factories for [generic-pool](https://github.com/coopernurse/node-pool).
    - overwrite `create()` method to create new resource
    - overwrite `destroy()` method to destroy resource
    - overwrite `validate()` method to test resource on borrowing

repository: Aleksandras-Novikovas/srv-core

repo_name: Aleksandras-Novikovas/srv-core


text:
---
layout: post
title: "Musical Tempo and Key Estimation using Convolutional Neural Networks with Directional Filters"
date: 2019-03-26 12:43:09
categories: arXiv_SD
tags: arXiv_SD CNN
author: Hendrik Schreiber, Meinard Müller
mathjax: true
---

* content
{:toc}

##### Abstract
In this article we explore how the different semantics of spectrograms' time and frequency axes can be exploited for musical tempo and key estimation using Convolutional Neural Networks (CNN). By addressing both tasks with the same network architectures ranging from shallow, domain-specific approaches to deep variants with directional filters, we show that axis-aligned architectures perform similarly well as common VGG-style networks developed for computer vision, while being less vulnerable to confounding factors and requiring fewer model parameters.

##### Abstract (translated by Google)

##### URL
[http://arxiv.org/abs/1903.10839](http://arxiv.org/abs/1903.10839)

##### PDF
[http://arxiv.org/pdf/1903.10839](http://arxiv.org/pdf/1903.10839)


text:
What is cpuminer-multi
----------------------

[**tpruvot/cpuminer-multi**](https://github.com/tpruvot/cpuminer-multi) is a multi-threaded CPU miner, fork of pooler's [cpuminer](https://github.com/pooler) (see AUTHORS for list of contributors).

It can mine almost all crypto currencies using CPU. This means you're a lot less likely to get a block, so
you might want to join a pool like https://www.multipool.us/dashboard/help/

Usage example
-------------

  $ docker run --rm wernight/cpuminer-multi cpuminer --cputest

repository: amolinado/docker-cpuminer-multi

repo_name: amolinado/docker-cpuminer-multi


text:
# Tablets

## Microsoft Surface

* https://www.microsoft.com/en-us/d/surface-go-2/8pt3s2vjmdr6
* Pen with pressure & tilt
* LTE
* Detachable keyboard
* A dream?

## Huion

HUION Kamvas Pro 16 Plus 4K UHD Graphics Drawing Tablet with Full Laminated Screen 145% sRGB Battery-Free Stylus PW517 for PC, Mac, Android, 15.6-inch Pen Tablet Display
* https://www.amazon.com/HUION-Resolution-Battery-Free-Sensitivity-15-6in-Grey-dp-B08G8LYT4Z/dp/B08G8LYT4Z $900

2021 HUION KAMVAS 12 Graphics Drawing Tablet with Screen Full Lamination Android Support Battery-Free Sylus Tilt 8 Press Keys Adjustable Stand

* https://www.amazon.com/gp/product/B08P1MR8F

## LCD Writing Tablets

* https://www.amazon.com/Boogie-Board-8-5-Inch-Writing-PT01085BLKA0002/dp/B00AFPR684
* https://www.amazon.com/Boogie-Board-Writing-Drawing-eWriter-dp-B010HWCEFY/dp/B010HWCEFY
* 4.5" ~ https://www.amazon.com/dp/B010HWC6MA
* 8.5 ~ $9 ~ https://www.amazon.com/Writing-Electronic-Drawing-Sunany-Handwriting/dp/B07DLQMN8G/
* 12" https://www.amazon.com/dp/B08W44XFP2/
* 8.5 ~ colorful ~ https://www.amazon.com/dp/B085DDJCNL
* 15" $21 ~ https://www.amazon.com/Fverey-Writing-Colorful-Educational-Electronic/dp/B08ML3Z9ZX
* https://www.amazon.com/Jonzoo-Electronic-Blackboard-Handwriting-Erasable/dp/B07WQWP6V7

## 10 inch Dual SIM

* $146 https://www.amazon.com/Android-Tablet-Tablets-1920%C3%971200-Network/dp/B07SGHJ7HJ

* Samsung Galaxy Tab A7 10.4" (32GB, 3GB, WiFi + Cellular) 4G LTE Tablet GSM Unlocked (Global, T-Mobile, AT&T, Metro) International Model SM-T505 (64GB SD Bundle) ~ https://www.amazon.com/Samsung-Cellular-Unlocked-International-Charging/dp/B08N3BKFXV

## Boox

BOOX Nova3 7.8 ePaper, 300 DPI, Front Light, Android 10 Digital Paper E Ink Notepad

* https://onyxboox.com/files/manuals/BOOX_Nova3_User_Manual.pdf
* https://shop.boox.com/collections/eink-tablet
* https://www.amazon.com/BOOX-Nova3-Android-Digital-Notepad/dp/B08KY4BWQX?ref_=ast_sto_dp

## Wacom

* https://www.amazon.com/Wacom-Cintiq-Drawing-Tablet-DTK1660K0A/dp/B07L77GTTY
* $399 ~ https://www.amazon.com/Wacom-Graphics-Animation-Beginners-DTC133W0A/dp/B082LZXQ6B

repository: theo-armour/pages

repo_name: theo-armour/pages


text:
# S3Browser

The S3Browser is a simple wrapper around Amazon's [S3 Service](https://aws.amazon.com/s3/).
Apart from listing files and managing, S3 doesn't give you a lot of functionality.

This wrapper gives you a couple of killer functions:

* [x] Search
* [x] Sorting
* [x] Automatically update file information
* [x] Upload files
* [x] Download files
* [x] Delete files

## Installation

Add this line to your application's Gemfile:

```ruby
gem 's3browser'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install s3browser

## Usage

Here's an example config.ru for booting S3Browser::Server in your choice of Rack server:

```ruby
# config.ru
#\-o <IP_ADDRESS> -p 9292
require 's3browser/server'
run S3Browser::Server
```

You can mount S3Browser to existing Rack (Sinatra) application as well:

```ruby
# config.ru
require 'your_app'

require 's3browser/server'
run Rack::URLMap.new('/' => Sinatra::Application, '/s3browser' => S3Browser::Server)
```

To run S3Browser rake files, require the tasks file:

```ruby
# Rakefile
require 's3browser/gem_tasks'
```

Run the fetcher

```bash
bundle exec rake s3browser:fetch
```

Run the server

```bash
bundle exec rake s3browser:server
```

Run the worker
```
bundle exec s3browser-worker
```

This will use the default config file `shoryuken-config.yml` generated by the setup process. You can override this and add any shoryuken options you want:

```
bundle exec s3browser-worker -C config.yml -L /var/log/shoryuken.log -P ./tmp/shoryuken.pid
```

## Real time updates

S3 buckets can be configured to send [Event Notifications](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)
when certain events happen in a bucket.

### Setup

Run `bundle exec rake s3browser:setup` to ensure the correct ENV variables are set, and that your AWS setup is correct.

It will:

1. Record the neccesary ENV variables:
  * AWS_ACCESS_KEY_ID
  * AWS_SECRET_ACCESS_KEY
  * AWS_REGION
  * AWS_S3_BUCKET
  * AWS_SQS_QUEUE
2. Create the SQS queue, with the correct permissions
3. Create the S3 bucket, with the correct notification configuration

To do the setup, the IAM profile you're using to run the script should have the following policy in place:

```javascript
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "S3BrowserFullAccess",
            "Effect": "Allow",
            "Action": [
                "s3:GetObject",
                "s3:GetObjectVersion",
                "s3:ListBucket",
                "s3:PutObject",
                "s3:CreateBucket",
                "s3:PutBucketNotification"
            ],
            "Resource": [
                "arn:aws:s3:::*",
                "arn:aws:s3:::*/*"
            ]
        },
        {
            "Sid": "Stmt1460660107000",
            "Effect": "Allow",
            "Action": [
                "sqs:DeleteMessage",
                "sqs:ReceiveMessage",
                "sqs:CreateQueue",
                "sqs:GetQueueUrl",
                "sqs:GetQueueAttributes",
                "sqs:SetQueueAttributes"
            ],
            "Resource": [
                "arn:aws:sqs:*"
            ]
        }
    ]
}
```

After setting up the queue and the bucket, a policy **without** the following actions can be used:

* s3:CreateBucket
* s3:PutBucketNotification
* sqs:CreateQueue
* sqs:GetQueueUrl
* sqs:GetQueueAttributes
* sqs:SetQueueAttributes

## S3Proxy

You might not want to allow public access to your S3 bucket. To work around this, the gem provides a proxy with which the server will fetch the file from S3 and serve it to the client, caching it in between.

It's a simple Sinatra app, so can be mounted on a Rack endpoint as well:

```
# config.ru
#\-o <IP_ADDRESS> -p 9292
require 's3browser/server'
require 's3browser/s3proxy'

run Rack::URLMap.new('/s3' => S3Browser::S3Proxy, '/' => S3Browser::Server)
```

The above example allows you to set the `S3BROWSER_THUMBNAIL_URL` and `S3BROWSER_OBJECT_URL` environmental variables to `/s3` so that you can download and view the files from the browser.

## Development

After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jrgns/s3browser.

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).


text:
---
templateKey: book-page
title: "Ready for Take-off? Integrating Drones into the Transport System"
titleTag: "Ready for Take-off? Integrating Drones into the Transport System"
descriptionTag: "drone transport"
image: /assets/ready_for_takeoff.png
text: |-
  Paris: OECD Publishing, 2021
publisher: OECD Publishing
slug: integrating-drones-transport-system
order: 1
---

## Ready for Take-off? Integrating Drones into the Transport System

Jan Walulik – contributor to parts concerning economic regulation and competition issues. The report presents policy options for the successful integration of drones into the transport system. How can countries reap the benefits of drone transport while limiting risks? The report examines concerns about the acceptability, efficiency and sustainability of drone transport. The analysis covers passenger and freight drones with different payloads and ranges, and also addresses other drone uses that support the transport sector.


text:
# MIP28c7-SP1: Subproposal for Operational Support Domain Facilitator Onboarding

## Preamble
```
MIP28c7-SP#: 1
Author(s): @AmyJung
Contributors:
Status: Formal Submission (FS)
Date Proposed: 2020-10-07
Date Ratified: <yyyy-mm-dd>
---
Domain Role: Operational Support Domain Facilitator
Proposed Applicant: @AmyJung
```

## Application

### Motivation
Working behind the scenes for over a year with Rich Brown on scaling Community Development provided great insights for how MakerDAO could grow in an effective, yet decentralized manner. More recently, I’ve been working closely with LongForWisdom and other community members through working groups such as Autonomous MakerDAO and SourceCred, and Collateral Onboarding Initiatives.

The Operational Support domain is an accumulation of a lot of the work we’ve been doing in the background. Given my experience, I would primarily focus on:
* Resourcing: Bridge and manage effective resource distribution from Maker Foundation and the Protocol.
* People: Identify, recruit, and support individuals of diverse backgrounds in domain teams. Incubate and provide funding for smaller working group/proto-teams.
* Onboarding Experience: Map end-to-end experience for onboarding domain members, including providing operational support for initial team setup.
* Bounties and Grants: Produce and manage additional incentives to promote further growth of important initiatives and provide a path to contributing to a domain.

### Credentials
* Currently Head of Community Development at Maker Foundation as recommended by Rich Brown
* MakerDAO Community Development contributor since July 2019 for Program Operations & Strategy
* Active in Ethereum since 2017, and worked as Design Operations Lead at ConsenSys and incentivized testnet launch at cLabs (Celo)
* Previous work as a consultant to early stage startups (Program Director at a retail and CPG accelerator), and program development for universities (Columbia, Fordham).

### Relevant Information
* https://github.com/amy-jung
* Forum: @AmyJung, @RawHaus
* https://twitter.com/itsamyjung
* https://sharedrealities.co/

repository: NiklasKunkel/mips

repo_name: NiklasKunkel/mips


text:
# Manually running E2E tests

## Define environment variables

See `test/e2e/env.defaults.js` for a list of all environment variables used by E2E tests. You can define variables in the shell (using `export VAR=value` in `~/.bash_profile` or similar) or place values in a `testenv` file at the root of this project. [dotenv docs](https://github.com/motdotla/dotenv#dotenv)

For all E2E tests to pass locally, you will need to define these values. You will need a test org.

The test org should have a configured SPA app with following login redirect callbacks:

```sh
http://localhost:3000/done
```

Each of these origins must be added as [Trusted Origins](https://help.okta.com/en/prod/Content/Topics/Security/API-trusted-origins.htm).

The test org should have at least one 'basic' user available for testing.

## Build release bundles

Before running E2E tests you should build the release bundles

```sh
yarn build:release
```

## Run tests with runner script

The runner script (./runner.js) starts the test app then runs specs or cucumber feature tests against the test app.

```sh
yarn test:e2e
```

To run the cucumber feature tests, you need additional environment variables along with the ones needed to run spec tests

```sh
export RUN_FEATURE_TESTS=true
export A18N_API_KEY=xxxx # API key to use the a18n tool for dynamic user creation (Ask DevEx team)
export OKTA_CLIENT_TOKEN=xxxx # Okta API key for the test org
yarn test:e2e
```

## Run test app and specs separately

### Start test app

```sh
yarn start:test:app
```

### Run specs against the test app

#### Run all specs:

```sh
# Note: config path is relative to ./test/e2e/
yarn workspace @okta/e2e wdio ./wdio.conf.js
```

#### Run single spec:

```sh
yarn workspace @okta/e2e wdio ./wdio.conf.js --spec ./specs/{filename}
```

### Add a new test case

1. [Start test app](#start-test-app).
2. Make test changes.
3. [Run the changed test spec](#run-single-spec), you can also use `fit` or `xit` to focus on the targeted test case.
4. Adjust test case if needed.

## Chrome Binary

To point `wdio` at a specific chrome/chromium binary, set `CHROMIUM_BINARY` to the path of the desired binary file. Make sure to also set `CHROMEDRIVER_VERSION` to the same version as the targeted binary. Latest version numbers can be found at [chromedriver.chromium.org](https://chromedriver.chromium.org/downloads)

### Run cucumber feature tests against the test app

#### Run all feature tests:

```sh
# Note: config path is relative to ./test/e2e/
yarn workspace @okta/e2e wdio ./cucumber.wdio.conf.ts
```

#### Run single feature test:

```sh
yarn workspace @okta/e2e wdio ./cucumber.wdio.conf.ts --spec ./features/{filename}.feature
```

### Add a new feature test

Cucumber feature tests are written in Gherkin language. Refer https://cucumber.io/docs/guides/overview/

1. [Start test app](#start-test-app).
2. Add a new feature file corresponding to your feature
3. Add steps in the step definition files to execute the steps in your feature (given.ts, when.ts, then.ts, after.ts)
4. Run the feature test and adjust as needed

## Debugging

* If you are using vscode, pick `Debug with WebdriverIO` for debugging. You can limit the debugging scope by changing the `specs` field in `wdio.config.js` file (e.g., `specs/**/*.e2e.js` -> `specs/**/basic.e2e.js`).

* You can also add `await browser.debug()` statement in any test case to pause the browser.

* You can run test in `headless mode` by adding `CHROME_HEADLESS=true` or `CI=true` to the environment variables.

* You may need to set the `CHROMEDRIVER_VERSION` environment variable to match the version of Chrome on your machine. For example, `CHROMEDRIVER_VERSION=94.0.4606.41` can be added to the `testenv` file to work with Chrome version 94. Latest version numbers can be found at [chromedriver.chromium.org](https://chromedriver.chromium.org/downloads)

For more debugging information, check out [WebdriverIO debugging](https://webdriver.io/docs/debugging/).

repository: okta/okta-signin-widget

repo_name: okta/okta-signin-widget