text:
# LinkRestorer
Restores Junction Points after Windows Update

Directory links (junction points) from C:\ drive to another drive (e.g. D:\)
often get corrupted by Windows Updates (major updates, service packs).
For example:
"C:\Program Files (x86)\Microsoft SDKs" pointed to "D:\Redirect\Windows SDKs".
Feature update to Windows 10, version 1709 thrashed this link by letting it
point to "C:\Redirect\Windows SDKs" (which doesn't exist). These feature updates
seem to replace all drive letters in links with "C:\".
With LinkRestorer, if you have your junction points all set up, you can make
a snapshot of where they point to, and then after such an update, you can restore
them again.

repository: Jebeli/LinkRestorer

repo_name: Jebeli/LinkRestorer


text:
# d3-dot-animation-background

An animated background using D3

[Try it here!](https://mbeckdev.github.io/d3-dot-animation-background/)

## Directions

- reload the page to see new art made from D3 dots!

## Original Intent

Ah geez, I thought this would work, and maybe it can. Here's where I'm at:

- Trying to put multiple dots on the page with D3 library = done
- Trying to make dots move and put lines between them if dots are close,
  - wait, how do I make things move? Idea1: css transitions, idea2: use canvas
  - If I use transitions, I'll need to know:
    - All dot locations so I can draw lines between them
    - Lines can be little rotated rectangles
    - starting and end points of all circles and lines - could calculate them probably
    - It'll have to repeat the transition to make it look cool
    - Can I create a position at certain times? Sounds like a tick() that might be easier in canvas.

## D3? CSS? canvas?

- Wait, this d3 thing is nice for making circles, but I can see making the shapes in CSS.
- If I use D3 or CSS I can put this section in more than once, because canvas only is allowed once per page. I was thinking of using this as a header, but it might be sweet to use it more than once one a page.

## Project Status

- I'm going to try this in canvas in a new repo and get that working and maybe come back to CSS or D3 way of doing it.
- It's a shame that I named this with d3 in the title, (let that be a lesson to me for naming it like that) so I'm going to start a new repository.
- Enjoy this epic svg art that changes when you reload

license: Unlicense

branch_name: refs/heads/main

extension: md

license_type: permissive


text:
# My Experiment and Me

### Run outputs

After running an experiment, you will see your run folder populated with many files and folders. Here's a quick run-down of what they are:

* `args.json`: Saved a copy of your run arguments for future reference.
* `last_model.p`: Model weights at the end of training.
* `last_model.metadata.json`: Contains the metadata for the best-model-weights (e.g. last step of training).
* `best_model.p`: The best version of the model weights based on validation-subset,
* `best_model.metadata.json`: Contains the metadata for the best-model-weights (e.g. what step of training they were from, validation scores at that point).
* `checkpoint.p`: A checkpoint for the run that allows you to resume interrupted runs. Contains additional training state, such as the optimizer state, so it's at least 2x as large as model weights.
* `{log-timestamp}/loss_train.zlog`: JSONL log of training loss over training steps
* `{log-timestamp}/early_stopping.zlog`: JSONL log of early-stopping progress (e.g. steps since last best model)
* `{log-timestamp}/train_val.zlog`: JSONL log of validation-subset evaluation over the course of training (i.e. what's used for early stopping)
* `{log-timestamp}/train_val_best.zlog`: JSONL log of validation-subset evaluation, only recording the improving runs

license: MIT

repository: nyu-mll/jiant

branch_name: refs/heads/master

gha_language: Python

gha_license_id: MIT

repo_name: nyu-mll/jiant


text:
# GoogleBooks
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

  ## Table of Contents
  - [Description](#Description)
  - [Installation](#Installation)
  - [Usage](#Usage)
  - [Tools_&_Technologies](#Tools_&_Technologies)
  - [Code](#Code)
  - [Repo_Link](#Repo_Link)
  - [Example](#Example)
  - [License](#License)
  - [Author_Info](#Author_Info)

## Description
This app will allow you to search google books and save any book that interest you.

    Note: You will only need to do the installation once.

##  Installation
- Install Node, MongoDb, Robo3T
- Download repo zip file
- Enter "npm i" in VSCode integrated terminal or GitBash/Terminal while in correct folder.

## Usage
### After install
1. Open VSCode integrated terminal or GitBash/Terminal
2. Path to correct folder
3. Run file by entering "npm start"

## Tools_&_Technologies
- JavaScript
- Node
- React
- MongoDb
- npm packages server
    - express
    - if-env
    - axios
    - mongoose
- npm packages client
    - axios
    - bootstrap
    - react-bootstrap
    - react-dom
    - react-router-dom
    - sweetalert

## Code
 User placeholder img if there is not an image link.
```JSX
<Card.Img
    src={
        book.volumeInfo.imageLinks === undefined
            ? 'https://placehold.it/300x300'
            : `${book.volumeInfo.imageLinks.thumbnail}`
    }
    style={{ width: '200px', height: '250px' }}
/>

```
## Repo_Link
- [Application Live Link](https://google-book5.herokuapp.com/)

## Example

![ALT TEXT](misc/img/demo.gif)

## License
- MIT License

Copyright (c) [2021] [Aaron Parnell]

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.

## Author_Info
  Github: [aparnell0130](https://github.com/aparnell0130)
  LinkedIn: [Aaron Parnell](https://www.linkedin.com/in/aaron-parnell-1ab4661b3/)
  Email<EMAIL_ADDRESS>
[Back to top](#GoogleBooks)


text:
# :airplane: FlightTracker :airplane:

### Backstory
As a college student raised in California but studying in Boston, me having to purchase flight tickets was inevitable. Every time the topic would come up, my mom would warn me, "Buy them early! Their always cheapest several months in advance!" When I was buying a ticket for my recent trip to China, my advisor told me how "tickets are just cheapest a couple days before the flight itself!"

I remember even Googling "`Best time to buy a Plane ticket`", which informed me that apparently _Tuesdays around noon_ are the weekly sweet spot. Well it's time to **DISPELL THE MYTHS**!

I will be aggregating data for the next couple of months and plan to publish what I find around late December/early January!

### My Current Intentions
Try to see trends in the price fluctuation in respect to:

- Specific day of week/time of day that correlates to price
- Best “amount of time left” until flight leaves for price
- Which Company

Some other possible variables that I may encorporate in the future could be:

- Region (from which location to which location)
- Any Difference when considering Round Trip flights
- (Feel free to suggest any others! :smile: )

### Metrics
I have decided to choose four flights the day of May 10th (2016). I imagine this date should yield especially volatile prices, so it should be an interesting base line.

**Specific Tickets:**

1.) BOS -> LAX (5/10/16)

2.) NYC -> MIA (5/10/16)

3.) NYC -> SAN (5/10/16)

4.) DFW -> SFO (5/10/16)

(**UPDATE (January 7th, 2016):** _Data has begun being aggregated!_)

#How to set this up Locally!

### Set up our Cassandra Database
1.) [Download](http://cassandra.apache.org/download/) Cassandra

2.) Untar, put her in /opt/, and set the other directories:

```
$ tar -zxvf apache-cassandra-2.1.8-bin.tar.gz
$ sudo mv apache-cassandra-2.1.8 /opt/cassandra
$ sudo mkdir -p /var/log/cassandra
$ sudo mkdir -p /var/lib/cassandra
```
**_Note_ :** _You may have to change the permissions of these directories. If so, do_:

```
$ sudo chown -R _NAME_ /var/log/cassandra
$ sudo chown -R _NAME_ /var/lib/cassandra
```
3.) Add her binaries to our path:

```
$ vim ~/.bashrc
$ export PATH=$PATH:/opt/cassandra/bin (Put this in, and exit vim)
$ . ~/.bashrc
```
**And we're good to go!**

To start up the DB, type:

```
$ cassandra -f
```

If you have any issues, refer to [this](https://github.com/hsgubert/cassandra_migrations/wiki/Preparing-standalone-Cassandra-in-local-machine)!

### Clone this Repository
Before we do this, I thought I'd plug [Virtual-Burrito](https://github.com/brainsik/virtualenv-burrito)! Not necessary, but very convenient for Python projects :)

```
$ git clone https://github.com/NicoHinderling/FlightTracker.git
$ cd FlightTracker
$ pip install -r requirements.txt
$ mv env_variables_example.py env_variables.py
```
Now add your origin, destination, date for the flight, and QPX key into the creds file
( If you're unfamilar, [here](https://developers.google.com/api-client-library/python/guide/aaa_apikeys)'s how to get a Google API key!).

And finally, simply do:

```
$ python worker.py
```

and we're runnin', baby!

**Sidenote:** I'm a cheater and currently use two Google accounts to have two unique QPX API keys. Feel free to follow my footsteps, but otherwise feel free to rip the remains of 'QPX_API_KEY_TWO'. Just beware that QPX delimits you to 50 free calls a day. Just keep in mind that this means if you're doing a call every hour, you'll only be able to aggregate on two different tickets (24 * 2 = 48 aka less than 50).

#License
MIT

repository: NicoHinderling/FlightTracker

repo_name: NicoHinderling/FlightTracker


text:
# Shorthand reference

A *shorthand* is a simple way to define a route handler for common API scenarios. Here's a reference of each shorthand, along with the raw route handler that the shorthand represents.

In Mirage 0.1, shorthands responded with objects and arrays directly from the database. In 0.2, shorthands return Models and Collections, meaning you can customize the format of the response in the [serializer layer](../serializers).

Shorthands use default status codes, based on the HTTP verb:

  - GET, PUT and DEL are 200
  - POST is 201

## GET shorthands

*Collection*

```js
// shorthand
this.get('/contacts');          // finds type by singularizing url
this.get('/contacts', 'users'); // optionally specify the collection as second param

// equivalent
this.get('/contacts', ({ contacts }) => {
  return contacts.all(); // users in the second case
});
```

*Model*

```
// shorthand
this.get('/contacts/:id');         // finds type by singularizing url
this.get('/contacts/:id', 'user'); // optionally specify the type as second param

// equivalent
this.get('/contacts/:id', ({ contacts }, request) => {
  let id = request.params.id;

  return contacts.find(id); // users in the second case
});
```

*Array of Models*

For example, `GET /contacts?ids=1,3`

```js
// shorthand
this.get('/contacts', { coalesce: true });
this.get('/contacts', 'users', { coalesce: true });

// equivalent
this.get('/contacts', ({ contacts }, request) => {
  let ids = request.queryParams.ids;

  return contacts.find(ids); // users in the second case
});
```

---

*Note: there used to be a *Single record with related records *shorthand. You should now use serializers and relationships to solve this problem.*

## POST shorthands

*Creating a resource*

```js
// shorthand
this.post('/contacts');          // finds type by singularizing url
this.post('/contacts', 'user');  // optionally specify the type as second param

// equivalent
this.post('/contacts', function({ contacts }, request) {
  let attrs = this.normalizedRequestAttrs();

  return contacts.create(attrs);
});
```

For this POST shorthand to work, Mirage needs to know the format of the JSON payload your Ember app sends along with the request, so that it can insert the appropriate data into the database. See [the note on normalize](../serializers/#normalizejson) in the Serializer docs for more information.

## PUT shorthands

*Update a resource*

```js
// shorthand
this.put('/contacts/:id');          // finds type by singularizing url
this.put('/contacts/:id', 'user');  // optionally specify the type as second param

// equivalent
this.put('/contacts/:id', function({ contacts }, request) {
  let id = request.params.id;
  let attrs = this.normalizedRequestAttrs();

  return contacts.find(id).update(attrs);
});
```

For this PUT shorthand to work, Mirage needs to know the format of the JSON payload your Ember app sends along with the request, so that it can insert the appropriate data into the database. See the note on normalize in the Serializer docs for more information.

## DELETE shorthands

*Remove a resource*

```js
// shorthand
this.del('/contacts/:id');          // finds type by singularizing url
this.del('/contacts/:id', 'user');  // optionally specify the type as second param

// equivalent
this.del('/contacts/:id', ({ contacts }, request) => {
  let id = request.params.id;

  contacts.find(id).destroy();
});
```

*Remove a resource and related models*

To use this shorthand, make sure you have the appropriate `hasMany`/`belongsTo` relationships defined on your models.

```js
// shorthand
this.del('/contacts/:id', ['contact', 'addresses']);

// equivalent
this.del('/contacts/:id', ({ contacts }, request) => {
  let id = request.params.id;
  let contact = contacts.find(id);

  contact.addresses.destroy();
  contact.destroy();
});
```

## Resource helper

For handling generic CRUD, you can use *resource* helper which will take care of defining all shorthands. The following examples are equivalent:

```js
// shorthand
this.resource('contacts'); // available in 0.2.2+

// equivalent
this.get('/contacts');
this.get('/contacts/:id');
this.post('/contacts');
this.put('/contacts/:id');
this.patch('/contacts/:id');
this.del('/contacts/:id');
```

You can also whitelist which route handlers will be defined using *only* option:

```js
// shorthand
this.resource('contacts', { only: ['index', 'show'] });

// equivalent
this.get('/contacts');
this.get('/contacts/:id');
```

or which route handlers shouldn't be defined using *except* option:

```js
// shorthand
this.resource('contacts', { except: ['update'] });

// equivalent
this.get('/contacts');
this.get('/contacts/:id');
this.post('/contacts');
this.del('/contacts/:id');
```

If your route path and collection names do not match, you can define a relative or absolute path using the *path* option:

```js
// shorthand
this.resource('blog-posts', { path: '/posts' });

// equivalent
this.get('/posts', 'blog-posts');
this.get('/posts/:id', 'blog-posts');
this.post('/posts', 'blog-posts');
this.put('/posts/:id', 'blog-posts');
this.patch('/posts/:id', 'blog-posts');
this.del('/posts/:id', 'blog-posts');
```

Here is the full reference of actions' names you can pass to *only* / *except* options and the shorthands they stand for:

| Action | Shorthand                                    |
|:-------|:---------------------------------------------|
| index  | `this.get('/contacts')`                      |
| show   | `this.get('/contacts/:id')`                  |
| create | `this.post('/contacts')`                     |
| update | `this.patch('contacts/:id')` (or `this.put`) |
| delete | `this.del('/contacts/:id')`                  |

repository: deanmarano/ember-cli-mirage

repo_name: deanmarano/ember-cli-mirage


text:
---
layout: project
type: project
image: img/micromouse/micromouse-robot.png
title: "BUS619: Introduction to Business Statistics and Data Analytics"
permalink: projects/BUS619
# All dates must be YYYY-MM-DD format!
date: 2018-07-01
labels:
  - Analytics Course
summary: Course materials for Introduction to Business Statistics and Data Analytics
---

<div class="ui small rounded images">

</div>
I'm continually evolving the BUS 619 graduate course in Business Statistics and Data Analytics. The approach to this course:

- Hands-on active learning through real-world case exercises
- Applications with a forecasting project using real-data for a publicly traded company
- Develop analytical and communication skills
- Use of common tools (Excel) and web resources

You can learn about BUS 619 at [BUS 619 Course Website](https://dport96.github.io/BUS619/index.html).


text:
# Module 5: Implementing Azure App Service
# Lab: Implementing web apps

### Scenario

 The A. Datum Corporation's public-facing web app currently runs on an IIS web server at the company's chosen ISP. A. Datum wants to migrate this web app into Azure. You must test the Web Apps functionality by setting up a test A. Datum web app. An internal team provides you with a test web app to deploy. You must ensure that they can continue to stage changes to the test web app before deploying those changes to the public-facing site. A. Datum is a global company, so you also want to test Azure Traffic Manager, and show your organization's decision makers how it distributes traffic to instances close to users of the web app.

### Objectives

 After completing this lab, you will be able to:

- Create a new web app.

- Deploy a web app.

- Manage web apps.

- Implement Traffic Manager to load-balance web apps.

### Lab Setup

 Estimated Time: 60 minutes

## Exercise 1: Creating web apps

### Scenario

 You must set up a test web app in Azure. As the first step in the setup process, you want to create a new web app. Later in this lab, you will deploy this web app to the test web app.

The main tasks for this exercise are as follows:

1. Create a web app

2. Add a deployment slot

3. Configure deployment credentials

#### Task 1: Create a web app

1. Ensure that the MSL-TMG1 and 20533C-MIA-CL1 virtual machines are running, and then sign in to 20533C-MIA-CL1 as **Student** with the password **Pa55w.rd**.

2. Open Internet Explorer, browse to the Azure portal, and then sign in using the Microsoft account that is either the Service Administrator or Co-administrator of your subscription.

3. To create a new web app, use the following information:

  - App name: _any unique valid name_

  - Resource Group: **20533C0501-LabRG**

  - Web Hosting Plan Name: **WebAppStandardPlan**

  - Location: _an Azure region near you_

  - Pricing tier: **S1 Standard**

  - Application Insights: _leave at its default value_

#### Task 2: Add a deployment slot

1. In the Azure portal, add a new deployment slot to the web app that you created in the first task, using the following information:

  - Name: **Staging**

  - Configuration Source: _choose the web app you created in Task 1_

2. Open Windows PowerShell window and authenticate to your Azure subscription by signing in using the Microsoft account that is either the Service Administrator or a Co-administrator of your subscription.

3. If you have multiple subscriptions, select the target one by running the Azure PowerShell **Set-AzureRmContext** cmdlet.

4. Use the Azure PowerShell **Get-AzureRmWebApp** and **Get-AzureRMWebAppSlot** cmdlets to identify the web app and staging slot that you created.

5. Keep the Azure PowerShell window open.

#### Task 3: Configure deployment credentials

- Use the Settings blade to set the following deployment credentials for the web app that you created in the first task:

  - FTP/Deployment User Name: _a unique name_

  - Password: **Pa55w.rd**

> **Result**: After completing this exercise, you should have created a new web app in the Azure portal, and configured the new web app with deployment slots and deployment credentials.

## Exercise 2: Deploying a web app

### Scenario

 Now that you created a web app in Azure, and added a deployment slot for the web app, you can publish the internally developed web app that the A. Datum web-development team supplied. In this exercise, you will use a publishing profile in Visual Studio 2015 to connect to the new web app and deploy the web content.

The main tasks for this exercise are as follows:

1. Obtain a publishing profile

2. Deploy a web app

#### Task 1: Obtain a publishing profile

1. From the Azure portal, download the publish profile for the Web app you created in Exercise 1.

2. Open the web-application project stored in D:\\LabFiles\\Lab05\\Starter\\AdatumWebsite\\AdatumWebsite.sln in Visual Studio 2015:

3. Start debugging the web application, examine the contents, and then close Internet Explorer.

> **Note:** When you start the web application in Visual Studio, the web app runs in IIS Express on your local workstation.

#### Task 2: Deploy a web app

1. In Visual Studio, start the Publish Wizard for the **AdatumWebsite** project, and then import the **.PublishSettings** file that you downloaded in task 1 of this exercise.

2. Verify that the publish settings file includes correct connection information.

3. Ensure that the Release configuration is used for the published web app.

4. Preview the file changes, and then **Publish** the new website to Azure.
> **Note:** The publish operation may take approximately two to three minutes. When the operation is complete, Microsoft Edge opens and displays the new web app hosted in Azure.

5. Verify that A. Datum's web app is open in Microsoft Edge, and then verify the web app's current address.

6. Close Microsoft Edge.

7. Leave Visual Studio open.

> **Result**: After completing this exercise, you should have deployed a web app hosted in Azure.

## Exercise 3: Managing web apps

### Scenario

 The web-deployment team created an updated style sheet for the A. Datum's test web app. You have to demonstrate how you can deploy these changes to a staging slot, and then test them, before you deploy to the production A. Datum web app. In this exercise, you will upload the new web app to the staging slot that you created in Exercise 1, and you then will swap the new version of the web app into the production slot.

The main tasks for this exercise are as follows:

1. Deploy a web app for staging

2. Swap deployment slots

3. Roll back a deployment

#### Task 1: Deploy a web app for staging

1. In the Azure portal, download a publishing profile for the Staging slot for your web app.

2. Open the project in D:\\LabFiles\\Lab05\\Starter\\NewAdatumWebsite\\AdatumWebsite.sln in Visual Studio

3. Start the web app publishing process and import the staging publishing profile that you downloaded in the first step.

4. Validate the connection, and then choose the Release configuration.

5. Publish the new web app to the Staging slot.

6. Close Microsoft Edge.

7. Leave Visual Studio open.

#### Task 2: Swap deployment slots

1. In Internet Explorer, in the Azure portal, navigate to the web app that you created in Exercise 1.

2. From the Azure portal, use the **URL** link for your web app to open it in another Internet Explorer tab.

3. Notice that the color scheme has not changed, because the Web app with the new color scheme is still in the staging slot. Close the Internet Explorer tab displaying the A. Datum web app.

4. From the web app blade in the Azure portal, swap the staging and production web-app slots.

5. When the swap completes, use the **URL** link again to browse to the web app and notice that the color scheme has changed.

6. Close the Internet Explorer tab that displays the A. Datum's web app.

#### Task 3: Roll back a deployment

1. In the Azure portal, swap the staging and production slots again.
> **Note:** By swapping the slots a second time, you simulate a deployment rollback.

2. When the swap is complete, browse to the web app. Notice that the color scheme has reverted to the original one.

3. Close the Internet Explorer tab displaying the A. Datum web app.

> **Result**: After completing this exercise, you should have an updated web app in the staging slot and have tested the slot swap functionality.

## Exercise 4: Implementing Traffic Manager

### Scenario

 Because A. Datum has customers around the globe, you must ensure that the A. Datum web apps perform well when serving requests from multiple locations around the world. You must evaluate Traffic Manager to verify that web content is served from a location that is close to customers. To accomplish this, you will set up a deployment of Traffic Manager serving content of a test web app from two different Azure regions.

The main tasks for this exercise are as follows:

1. Deploy a web app to another region

2. Create a Traffic Manager profile

3. Add endpoints, and configure Traffic Manager

4. Test Traffic Manager

5. Reset the Azure environment

#### Task 1: Deploy a web app to another region

1. In Azure PowerShell, identify the settings of your test web app by using the **Get-AzureRmWebApp** cmdlet. Note the name of the web app and its location.

2. Choose an Azure region that is different from the location of the original web app, preferably on a different continent. This will become the _'SecondLocation'_.

3. Use the **New-AzureRmResourceGroup** cmdlet to create a new resource group named **20533C0502-LabRG** located in the _'SecondLocation'_.

4. Use the **New-AzureRmAppServicePlan** cmdlet to create a new App Service plan named **WebAppStandardPlan2** with the Standard pricing tier in the resource group **20533C0502-LabRG** and the _'SecondLocation'_.

5. Use the **New-AzureRMWebApp** cmdlet to create a new web app. Use the following information for the web app:

  - Resource group: **20533C0502-LabRG**

  - Name: _a unique name_ (use the **Test-AzureRmDnsAvailability** cmdlet to identify it)

  - Service plan: **WebAppStandardPlan2**

  - Location: _'SecondLocation'_

6. In the Azure portal, download a publishing profile for the web app you just created.

7. Open the project in D:\\LabFiles\\Lab05\\Starter\\AdatumWebsite\\AdatumWebsite.sln in Visual Studio:

8. Start the Publish Web Wizard, and then import the publish settings file that you just downloaded.
> **Note:** Be sure to import the new publish settings profile on the **Profile** tab, so that you will publish its content to the new web app.

9. Validate the connection, and then choose the Release configuration.

10. Publish the web app, and then close Microsoft Edge and Visual Studio.

#### Task 2: Create a Traffic Manager profile

- In the Azure portal, create a new Traffic Manager profile by using the following information:

  - Name: _a unique domain name_

  - Routing Method: **Performance**

  - Resource Group: **20533C0503-LabRG**

  - Resource group location: _an Azure region near you_

#### Task 3: Add endpoints, and configure Traffic Manager

1. From the Traffic Manager profile blade in the Azure portal, add the web apps that you created in Exercise 1 and Exercise 4 as the Traffic Manager profile endpoints.

2. Fromf the Traffic Manager profile blade, modify the profile configuration by setting the DNS TTL value to 30 seconds.

#### Task 4: Test Traffic Manager

1. From the Azure portal, use the DNS name of the Traffic Manager profile to browse to the web app instance corresponding to the closest endpoint.

2. Use the **nslookup** command to resolve the DNS name of the Traffic Manager profile.
> **Note:** Review the DNS records listed in the output of the command to identify the web app instance returned from the Traffic Manager profile

3. In the Azure portal, disable the Traffic Manager endpoint representing the web app instance you identified in the previous step.

4. Use the **nslookup** command again to resolve the DNS NAME for your Traffic Manager profile. The results should differ from those in step 2.
> **Note:** You might have to wait in order for the endpoint state change to take effect. Wait about 1 minute and re-run the **nslookup** command.

#### Task 5: Reset the Azure environment

1. Close all open applications without saving any files.

2. On the taskbar, right-click **Windows PowerShell**, and then click **Run as administrator**. In the **User Account Control** dialog box, click **Yes**.

3. Type the following command, and then press Enter:

  ```
  Reset-Azure
  ```

4. When prompted (twice), sign in by using the Microsoft account associated with your Azure subscription.

5. If you have multiple Azure subscriptions, select the one you want the script to target

6. When prompted for confirmation, type **y**.

> **Note:** This script may remove Azure services in your subscription. Therefore, we recommend that you use an Azure trial pass that was provisioned specifically for this course, and not your own Azure account.
> The script will take approximately two or three minutes to reset your Azure environment, so that you are ready for the next lab. The script removes all storage, virtual machines, virtual networks, cloud services, and resource groups.
> **Important:** The script may not have exclusive access to a storage account so that it can delete it. If this occurs, you will see an error message. If you find objects remaining after the reset script is complete, you can rerun the **Reset-Azure** script, or use the Azure portal to delete all objects in your Azure subscription manually, with the exception of the default directory. Do not delete it.

> **Result**: After completing this exercise, you should have implemented two Azure web apps and a Traffic Manager profile configured to distribute requests between them.

**Question**
In Exercise 2, you deployed the A. Datum production web app to Azure. In Exercise 3, you deployed a new version of the site to a staging slot. How can you tell, within Internet Explorer, which is the production site and which is the staging site?

**Question**
At the end of Exercise 4, you used an FQDN within the trafficmanager.net domain to access your web app. How can you use your own registered domain name to access this web app?

©2016 Microsoft Corporation. All rights reserved.

The text in this document is available under the [Creative Commons Attribution 3.0 License](https://creativecommons.org/licenses/by/3.0/legalcode "Creative Commons Attribution 3.0 License"), additional terms may apply.  All other content contained in this document (including, without limitation, trademarks, logos, images, etc.) are **not** included within the Creative Commons license grant.  This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes.

This document is provided "as-is." Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. Some examples are for illustration only and are fictitious. No real association is intended or inferred. Microsoft makes no warranties, express or implied, with respect to the information provided here.


text:
---
layout: post
title: The Way of Harmony
categories:
- aikido
comments: false
---
This week is my fourth week as a student of [aikido](http://en.wikipedia.org/wiki/Aikido) (合気道).

__合__ - harmony

__気__ - spirit/power

__道__ - way/path

Aikido, which can be translated as "Way of Harmony with Ki", was developed during the middle of the 20th Century by [O'Sensei Morihei Ueshiba](http://en.wikipedia.org/wiki/Morihei_Ueshiba) (植芝盛平) - by all reports an incredible man.

{% avpimgcenter /wp-content/O_Sensei180px.jpg 180 217  O'Sensei Morihei Ueshiba %}

Aikido is a martial art, and while it could be used to injure other people, the focus is on neutralising (potentially multiple) attackers, and as such it is very effective for self-defence. In fact, O'Sensei was a [deeply spiritual man](http://www.gardenstateaikikai.com/quotes.htm), and an important facet of aikido is the corresponding responsibility given the potential for injury that comes with the knowledge of aikido techniques.

> "Aikido is the bridge to peace and harmony for all mankind."
>
> O'Sensei Morihei Ueshiba

I'm studying aikido at [aikidojo](http://www.iwamaaikido.com.au/) in West Melbourne. Aikidojo practices the [Iwama Style](http://en.wikipedia.org/wiki/Iwama_Ryu) of aikido, which is based on maintaining the aikido as taught by O'Sensei to [Sensei Morihiro Saito](http://en.wikipedia.org/wiki/Morihiro_Saito) in Iwama, the spiritual home of Aikido (the home of both the Iwama dojo and the Aiki shrine).

{% avpimgcenter /wp-content/aikidojo_logo2.jpg 200 205 Aikidojo - Aikido Takemusu in Melbourne %}

Aikidojo is not a large dojo, but there is an incredible level of experience among the members. I went to dinner after one class and by my rough estimate the cumulative experience of the six senior members at the table was around 65 years! I'm very lucky that I get the chance to learn in that environment!

Even after a short time, it's definitely clear to me that aikido is not something you ever "master". Rather it's something that will always involve learning on many levels.

> "Life is growth. If we stop growing, technically and spiritually, we are as good as dead."
>
> O'Sensei Morihei Ueshiba

I think that's one of the things that I find most compelling about it.

extension: markdown


text:
Webhook Proxy
=============

Proxies Github webhooks to internal servers.

## Getting started

### Build

```
make
```

### Creating an endpoint

```
base64EncodedSecret=$(echo -n "foobar" | base64)
curl -X POST \
    -d '{"name": "receive-all-hook", "team": "my-team-name", "secret": "'$base64EncodedSecret'", "url": "http://internal-server.org/myapp"}' \
    http://localhost:8080/hooks
```

The response will be something like:
```json
{
  "id":"368a1500082a071a7629c6ad704f7289e220fcc9",
  "name":"receive-all-hook",
  "team":"my-team-name",
  "url":"http://internal-server.org/myapp",
  "proxy_url":"/hooks/368a1500082a071a7629c6ad704f7289e220fcc9",
  "created_at":"2018-05-16T10:54:58.1838475Z"
}
```

Use `proxy_url` as webhook url when creating the webhook in GitHub and use the secret that you generated when
creating the webhook proxy endpoint (in the example above, this would be `foobar`).

### Listing endpoints

```
curl http://localhost:8080/hooks
```

```json
[
    {
        "id":"368a1500082a071a7629c6ad704f7289e220fcc9",
        "name":"receive-all-hook",
        "team":"my-team-name",
        "url":"http://internal-server.org/myapp",
        "proxy_url":"/hooks/368a1500082a071a7629c6ad704f7289e220fcc9",
        "created_at":"2018-05-16T10:54:58.1838475Z"
    }
]
```

### Listing specific endpoint

```
curl http://localhost:8080/hooks/368a1500082a071a7629c6ad704f7289e220fcc9
```

```json
{
    "id":"368a1500082a071a7629c6ad704f7289e220fcc9",
    "name":"receive-all-hook",
    "team":"my-team-name",
    "url":"http://internal-server.org/myapp",
    "proxy_url":"/hooks/368a1500082a071a7629c6ad704f7289e220fcc9",
    "created_at":"2018-05-16T10:54:58.1838475Z"
}
```

### Deleting endpoint

```
curl -X DELETE http://localhost:8080/hooks/368a1500082a071a7629c6ad704f7289e220fcc9
```

Server responds with `204 No Content` if ok.

---

# Contact us

Code/project related questions can be sent to:

* David Steinsland<EMAIL_ADDRESS>* André Roaldseth<EMAIL_ADDRESS>
## For NAV employees

We are also available on the slack channel #github-webhooks for internal communication.

repository: navikt/webhookproxy

repo_name: navikt/webhookproxy


text:
## How you feel about the concept as a whole? ##

Group A: The whole ideea is very good in generally.

Group B: The app is a very good solution for students to save money.

Group C: Great idea, however they don't see it being very practical, in the sense they wouldn't use it a lot.

Group D: They enjoyed the idea but they are not sure if the rent module is necessary.

Group E: The concept sounds very interesting for them.

## Would you prefer fetching data or downloading bank statements and importing them? ##

Group A: They prefer fetch data because it seems more easy to use.

Group B: They prefer fetch data because it seemas more easy to use and it sounds more safely.

Group C: They prefer fetching data beacuse importing a bank statement looks too long to do it every time when they update their account, especially for those who are often updating it.

Group D: They prefer fetching data because it sounds more easy to use.

Group E: They prefer fetching data because it sounds more easy to use.

## Explain modules and gauge response! ##

Group A: They think the modules include all basic expenditures made by a normal person, and if we can create the app fully functional it would be a wonderfull software to use.

Group B: Generally speaking, they were very plesed about the functionality of the modules, and they realized that it can be very usefull because it can offer to the user a big perspective of how they can save money nowadays

Group C: The group think that the app can be simplified to a easy to use version. It seems that all the modules are quite a bit complex for some of them.

Group D: It seems the group has no issue with the complexity and the functionality of the modules and they are looking forward to see our implementaion of this app.

Group E: The feedback from this group was positive, but some of them think that there is no need for the Tfl module because it is already avaible.

## Would you prefer web based or phone app? ##

Group A: They prefer phone app.

Group B: They prefer phone app.

Group C: They prefer phone app

Group D: They prefer phone app.

Group E: They prefer phone app.

## How would you see the display of the prototype? ##

Group A: The current design of the prototype is working for the user but it doesn't give a very strong feeling. Every user has his own preferences regarding the desplay.

Group B: The group think that the concept of this design can be improved.

Group C: The design of the prototype looks promising for the real implementation of the application, and a good idea for the final design it would be to create a swipe functionality.

Group D: The display it it working for the user but it is nothing impressive.

Group E: The display it is working for the user but it is nothing impressive.

## Whould you prefer the app to be stand alone(explain what does it mean) or server-client(explanin what does it mean)? ##

Group A: They chosed the server-client option, because they all have internet acces during the day and the last thing they want is to have their phone going slow.

Group B: They chosed server-client, because it does not require the user's phone to do anything in addition and using internet is not a problem.

Group C: They chosed server-client, because they do not want their phone to slowing down phone's performances.

Group D: They chosed server-client, because they prefer to use mobile data instead on having their phone working slow

Group E: They chosed server-client, because as the other focus groups said they prefer to "sacrifice" mobile data .

## Anything else you would like to see from thin app? ##

Group A: Everything looks great for them, but a tracking cash module in this app would be usefull.

Group B: They said that the app features sounds very interesting and if we can adapt our app to motivate and encourage the users to use it regulary would be fantastic.

Group C: They do not have anything to add.

Group D: They think that we can have a monzo type card because in this way the user do not need to worry about any data acces.

Group E: They do not have anything to add.

repository: stdlibdoh/swproj-l

path: /docs/Focus Groups/Focus_Group.md

repo_name: stdlibdoh/swproj-l


text:
# Picture ghosts
## What is it
Pictureghosts averages the color values of a set of pictures and generates a image with these values where the values are sorted by date.

Inspired by [http://thecolorsofmotion.com/films](http://thecolorsofmotion.com/films)

## What it does
1. Reads all pictures from a directory
2. Calculates the average color value for each picture
3. Extracts the date from the picture’s EXIF data
4. Sorts the pictures by date
5. Creates a new picture from this information where each a line represents a picture from the directory

## Run
Export your pictures to a directory. To speed things up make the longest edge about 400px. In order to sort the images one of the following fields must be present in the EXIF data:
- `DateTimeOriginal`
- `CreateDate`

`npm install`

`node index.js /path/to/dirwithimages`

## Todo
- Clean up code
- Options for size & output file

repository: chrigu/pictureghosts

repo_name: chrigu/pictureghosts


text:
#  Sati
Simple backup script & Discord bot to flex how "advanced" is your script.

Currently supports MySQL & NGINX config dumps to your Discord porn server and/or cloud storage.

## How to use
> `$` denotes it should be executed within your CLI.

1. Configure `auth.js`; template obtainable via `auth.example.js`
   1. For cloud storage config, look for your provider's config instructions: [click me!](https://italypaleale.github.io/SMCloudStore/index.html)
2. `$ yarn`
   1. If yarn didn't install SMCloudStore provider modules: install any of the cloud storage provider: [click me!](https://github.com/ItalyPaleAle/SMCloudStore#add-to-your-project)
3. `$ yarn test`
4. `$ node .` or `$ yarn pm2`

# Actually, you don't have to use this because this is some dumbshit I've written while bored

repository: gazmull/sati-bot

gha_language: TypeScript

repo_name: gazmull/sati-bot


text:
# Wokwi Elements

Web Components for Arduino and various electronic parts.

[![NPM Version](https://img.shields.io/npm/v/@wokwi/elements)](https://www.npmjs.com/package/@wokwi/elements)

Check out [the component catalog](https://elements.wokwi.com).

## Local development

To prepare for local development, clone this repo, and then install
the dependencies:

```
npm install
```

Then start storybook:

```
npm run storybook
```

This will open a local dev server at http://localhost:6006, where you
can interact with the elements and see your changes live, similar to
[https://elements.wokwi.com].

## Creating a new element

The easiest way to create a new element is to run the generator:

```
npm run new-element --name my-element
```

This will generate a new element called `my-element`. It will also
create a storybook file, so you will be able to see the new element
in storybook (see the "Local development" section above).

## License

Wokwi Elements are released under the [MIT license](LICENSE).

repository: gilf/wokwi-elements

repo_name: gilf/wokwi-elements


text:
#cleber Automation Engine
----
This is a simple expect based automation framework that enables talking with QEMU instances.
It has the concept of pluggins in which users can create a DUT (or SUT). The pluggins are called from the core engine, their spawn id managed and allowed to be communicated with from commands offered by the "cleber" engine.
Terminology leans more towards Agile / DevOps methodology where "stories" rule.

##Requires:
 A valid TCL/expect installation.

##Sample execution:
 `cleber --exp /local/expect --site_plugins /opt/cleber_plugins --plugins ~/plugins --config iotdev1:iotdev1 --cmds /opt/scripts/ulp_cmds.txt`
  OR
  `cleber --exp /local/expect --site_plugins /opt/cleber_plugins --plugins ~/plugins --config ~/myconfigs/iotdev-config --cmds /opt/scripts/ulp_cmds.txt`
 * Important point to note:
  * If the --config option points to a file, it will be prased, else, the config pattern should just be per following format:
  * <plugin>:<plugin>

##ulp_cmds.txt:
```
STORY "MY story"
TESTCASE "My TC"
clock seconds
for { set i 10 } { $i < 20 } { incr i} {
    cli 1 1 1  set complete-on-space false
}

cli 1 1 1  set paginate false
cli 1 1 1  configure
cli 1 1 1  sudo su root
cli 1 1 1  1finity
cli 1 1 1  run show eqpt shelf pi
cli 1 1 1  set system ntp disabled
cli 1 1 1  commit

for { set i 10 } { $i < 20 } { incr i} {
    cli 2 1 1  set complete-on-space false
}

# Address cluster#2, Device#1, cli port#1
cli 2 1 1  set paginate false
cli 2 1 1  configure
cli 2 1 1  sudo su root
cli 2 1 1  1finity
cli 2 1 1  run show eqpt shelf pi
cli 2 1 1  set system ntp disabled
cli 2 1 1  commit

clock seconds
TESTCASE_END
STORY_END

```
For above to work, "iotdev1.sh" will need to exist in the ~/plugins or a site common directory (like /opt/cleber_plugins).
* Please note: For simpliciy, plugins are bash scripts.
* In example above, `iotdev1:iotdev1` translate to cluster 1 and 2 respectively.
* So, `cli 1 1 1` will address first `cli` port of the first card in first cluster.
* Similarly, `cli 2 1 1` will address first `cli` port of the first card in the second cluster.
*

##plugin format:
* A bash script.
* Should provide a executable command-line in the end.
* Look for sample iotdev1 example in the `./plugins`, a subdirectory in this repository
 * After that, add your *plugin* to your local site page and socialize the location.

##Settings file:
 Much like .gdbinit, cleber has a `.cleberinit` file that exists in the user's home directory.
 * One can add the often used configuration parameters to this file.

 ```
 EXPECT=/local/expect
 SITE_CONFIG_DIR=/opt/cleber_plugin
 CONFIG=iotdev1:iotdev1
 CMDS=/opt/scripts/ulp_cmds.txt
```
Then above execution could be simplified to:
 `cleber`

##Commands:
```
 cli <cluster> <card> <port> "command"
 dip <cluster> <card> <port> "command"
 ```
 Right now, it supports, CISCO cli style prompts.

repository: navjitbrar/cleber

repo_name: navjitbrar/cleber


text:
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) > [webex-js](./webex-js.md) > [Webex](./webex-js.webex.md) > [services](./webex-js.webex.services.md)

## Webex.services property

Stores the list of discovered services.

<b>Signature:</b>

```typescript
protected services: Record<string, Service>;
```

repository: InteractiveTimmy/webex-js

repo_name: InteractiveTimmy/webex-js


text:
# educationUser resource type

A user in the system. This is an education-specific variant of the user with the same `id` that Microsoft Graph will return from the non-education-specific `/users` endpoint.
This object provides a targeted subset of properties from the core [user](user.md) object and adds a set of education-specific properties such as primaryRole, student, and teacher data.

## Methods

| Method		   | Return Type	|Description|
|:---------------|:--------|:----------|
|[Get educationUser](../api/educationuser_get.md) | [educationUser](educationuser.md) |Read properties and relationships of an **educationUser** object.|
|[List classes](../api/educationuser_list_classes.md) |[educationClass](educationclass.md) collection| Get an **educationClass** object collection.|
|[List schools](../api/educationuser_list_schools.md) |[educationSchool](educationschool.md) collection| Get an **educationSchool** object collection.|
|[Update](../api/educationuser_update.md) | [educationUser](educationuser.md)	|Update an **educationUser** object. |
|[Delete](../api/educationuser_delete.md) | None |Delete an **educationUser** object. |

## Properties
| Property	   | Type	|Description|
|:---------------|:--------|:----------|
|accountEnabled|Boolean| **True** if the account is enabled; otherwise, **false**. This property is required when a user is created. Supports $filter.    |
|assignedLicenses|[assignedLicense](assignedlicense.md) collection|The licenses that are assigned to the user. Not nullable.            |
|assignedPlans|[assignedPlan](assignedplan.md) collection|The plans that are assigned to the user. Read-only. Not nullable. |
|businessPhones|String collection|The telephone numbers for the user. **Note:** Although this is a string collection, only one number can be set for this property.|
|createdBy|[identitySet](identityset.md)| Entity who created the user. |
|department|String|The name for the department in which the user works. Supports $filter.|
|displayName|String|The name displayed in the address book for the user. This is usually the combination of the user's first name, middle initial, and last name. This property is required when a user is created and it cannot be cleared during updates. Supports $filter and $orderby.|
|externalSource|`educationExternalSource`| Where this user was created from. Possible values are: `sis`, `manual`, `unkownFutureValue`.|
|givenName|String|The given name (first name) of the user. Supports $filter.|
|id|String|The unique identifier for the user. Inherited from [directoryObject](directoryobject.md). Key. Not nullable. Read-only.|
|mail|String|The SMTP address for the user; for example<EMAIL_ADDRESS>Read-Only. Supports $filter.|
|mailingAddress|[physicalAddress](physicaladdress.md)| Mail address of user.|
|mailNickname|String|The mail alias for the user. This property must be specified when a user is created. Supports $filter.|
|middleName| String | The middle name of user.|
|mobilePhone|String|The primary cellular telephone number for the user.|
|passwordPolicies|String|Specifies password policies for the user. This value is an enumeration with one possible value being “DisableStrongPassword”, which allows weaker passwords than the default policy to be specified. “DisablePasswordExpiration” can also be specified. The two can be specified together; for example: "DisablePasswordExpiration, DisableStrongPassword".|
|passwordProfile|[PasswordProfile](passwordprofile.md)|Specifies the password profile for the user. The profile contains the user’s password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the **passwordPolicies** property. By default, a strong password is required.|
|preferredLanguage|String|The preferred language for the user. Should follow ISO 639-1 Code; for example, "en-US".|
|primaryRole|string| Default role for a user. The user's role might be different in an individual class. Possible values are: `student`, `teacher`, `enum_sentinel`.|
|provisionedPlans|[ProvisionedPlan](provisionedplan.md) collection|The plans that are provisioned for the user. Read-only. Not nullable. |
|residenceAddress|[physicalAddress](physicaladdress.md)| Address where user lives.|
|student|[educationStudent](educationstudent.md)| If the primary role is student, this block will contain student specific data.|
|surname|String|The user's surname (family name or last name). Supports $filter.|
|teacher|[educationTeacher](educationteacher.md)| If the primary role is teacher, this block will conatin teacher specific data.|
|usageLocation|String|A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries.  Examples include: "US", "JP", and "GB". Not nullable. Supports $filter.|
|userPrincipalName|String|The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant’s collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the **verifiedDomains** property of [organization](organization.md). Supports $filter and $orderby.
|userType|String|A string value that can be used to classify user types in your directory, such as “Member” and “Guest”. Supports $filter.          |

## Relationships
| Relationship | Type	|Description|
|:---------------|:--------|:----------|
|classes|[educationClass](educationclass.md) collection| Classes to which the user belongs. Nullable.|
|schools|[educationSchool](educationschool.md) collection| Schools to which the user belongs. Nullable.|
|assignments| [educationAssignment](../../Assignments/resources/educationAssignment.md)| List of assignments for hte user. Nullable.|

## JSON representation

The following is a JSON representation of the resource.

<!-- {
  "blockType": "resource",
  "optionalProperties": [

  ],
<EMAIL_ADDRESS>"microsoft.graph.educationUser"
}-->

```json
{
  "id": "string",
  "displayName": "string",
  "givenName": "string",
  "middleName": "string",
  "surname": "string",
  "mail": "string",
  "mobilePhone": "string",
  "createdBy"<EMAIL_ADDRESS>"microsoft.graph.identitySet"},
  "externalSource": "string",
  "mailingAddress"<EMAIL_ADDRESS>"microsoft.graph.physicalAddress"},
  "primaryRole": "string",
  "residenceAddress"<EMAIL_ADDRESS>"microsoft.graph.physicalAddress"},
  "student"<EMAIL_ADDRESS>"microsoft.graph.educationStudent"},
  "teacher"<EMAIL_ADDRESS>"microsoft.graph.educationTeacher"}
}

```

<!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79
2015-10-25 14:57:30 UTC -->
<!-- {
  "type": "#page.annotation",
  "description": "educationUser resource",
  "keywords": "",
  "section": "documentation",
  "tocPath": ""
}-->

gha_language: PowerShell


text:
---
layout: post
title: Week Six
---

My past week was a lot calmer than I expected. In class we learned about a couple new operators (* and **), that are used for list
packing/unpacking and dictionary packing/unpacking respectively. I'd never been exposed to these operators in Python, so I found the
lectures enlightening. We also discussed lambdas and closures, which I'd been exposed to, but don't have a lot of experience in. We briefly
worked on writing our own iterator (a RangeIterator), and are supposed to be picking that up on this week in class.

As of right now, there isn't a lot in my way. We've got an exam coming up in this class, and as a result, we don't have a project to work
on at the moment. I've finished up most of my work that's due for other classes this week.

As for the rest of this week, the plan is to focus on the upcoming test for this class (on Thursday). We're allowed to bring a double-sided
notesheet, with the caveat that we aren't allowed to have any actual code on it. I started studying today, and hope to keep a steady pace
so I'll be prepared for the test. So far, I've been working through the material we've discussed in lecture, and have started building
my notesheet off of that information. After I've reviewed all of that material, I'll review the relevant chapters from the textbook (I've
been neglecting those readings), and then I'll mess around with writing some code. I think the best way to prepare for this test will be to
implement some of the functions and classes we've discussed in class, and then mess around with them. I imagine I'll be spending a bit of
time toying around in the Python interpreter.

##### Tip of the Week
A little more relevant to this class, but the class notes that are on Canvas are very helpful. I hadn't looked at them before today, but
they're thorough and cover the material that was discussed in lecture. It's worth checking out as we get closer to our first exam.


text:
# Cyber Security Resourses File

Please feel free to fork this repository and add resources.

## Application Security (AppSec)

Bugcrowd run a free online conference called LevelUp which is focused on bug bounties

https://www.bugcrowd.com/resources/levelup/

Katie Paxton-Fear

https://www.youtube.com/user/RapidBug

https://www.youtube.com/watch?v=qqmyAxfGV9c

Portswigger Web Security Academy is really good for learning different bug classes

https://portswigger.net/web-security

The DEFCON AppSec village has a few videos on their channel

https://www.appsecvillage.com/

Web App Hacking With Tib3rius | The Hacker Factory With Phillip Wylie

https://itspmagazine.simplecast.com/episodes/web-app-hacking-with-tib3rius-the-hacker-factory-with-phillip-wylie-ESL0dG16

## Capture the Flag (CTF)

CTF Events

https://ctftime.org/event/list/

Hacker101 has a great CTF with the advantage that you can earn private invites

https://www.hacker101.com/

Hack the box

https://tryhackme.com/

RangeForce

https://www.rangeforce.com/

## Cheat Sheets

Cheatsheet-God

https://github.com/OlivierLaflamme/Cheatsheet-God

Wireshark Cheat Sheet

https://www.comparitech.com/net-admin/wireshark-cheat-sheet/

Kali Linux Commands List : Hackers Cheat Sheet

https://www.ethicalhackx.com/kali-linux-commands-list/

Hacking Cheatsheet : List of commands and techniques for penetration testing

https://github.com/kobs0N/Hacking-Cheatsheet

## Cloud Security

SANS book: Practical Guide to Security in the AWS Cloud

https://pages.awscloud.com/Book-SEC-mult-SANS-Practical-Guide-Security-AWS-Cloud.html

## Cyber Hygiene

How effective is basic account hygiene at preventing hijacking

https://security.googleblog.com/2019/05/new-research-how-effective-is-basic.html

## Cybersecurity Magazine

Cybersecurity Quarterly

https://issuu.com/cybersecurityquarterly

## Cybersecurity Organisations

Association for computing Machinary

https://www.acm.org/

AustCyber

https://www.austcyber.com/

CyberSeek

https://www.cyberseek.com.au/

IEEE

https://event.on24.com/eventRegistration/EventLobbyServlet?target=reg20.jsp&partnerref=mktgemail_0217&eventid=2969917&sessionid=1&key=F6B6E6E708C20AC018C10CE516E49D83&regTag=1230562&V2=false&sourcepage=register

https://spectrum.ieee.org/webinars

IoT Security Institute (IoTSI)

https://iotsecurityinstitute.com/iotsec/index.php

Women in the IT Channel

https://www.iotssa.com/women-in-the-it-channel/

## Demonstrations

### Penetration Testing

Live Attack Simulation

https://www.cybereason.com/live-attack-simulation-02-04-21

SQL Injection Demo

https://www.linkedin.com/posts/davidbombal_sql-injection-activity-6793926606864818176-8zpm

Ultimate Password Cracking Techniques Used by Hackers

https://thycotic.com/company/blog/event/webinar-how-your-company-passwords-get-hacked/

## Employment and Job Hunting

ASD jobs:

https://www.linkedin.com/posts/paulwoodsau_ever-considered-working-for-australias-oldest-activity-6782172361790771200-hFV8

Breaking into Cybersecurity cheatsheet

https://www.linkedin.com/posts/noxcyber_cyberjobs-cyberstudy-jobhunt-ugcPost-6765913599803179008-i_sf

Digital Guardians At The Gate: Job Hunting In 2021

https://www.audacy.com/podcasts/itspmagazine-podcast-45828/digital-guardians-at-the-gate-job-hunting-in-2021-with-christina-stokes-your-everyday-cyber-with-limor-kessem-and-diana-kelley-374617082

Recruiter recommendations for junior level cyber security applicants:

https://www.linkedin.com/posts/paulwoodsau_there-are-not-enough-entry-level-security-activity-6775212677720539136-iySZ

Seek

https://www.seek.com.au/

Veterans employment

https://www.withyouwithme.com/

What is the Applicant Tracking System (ATS)?

https://blogs.chapman.edu/career/2021/02/12/what-is-the-applicant-tracking-system-ats/

## Get togethers and Meet Ups

SecTalk Sydney

https://www.linkedin.com/posts/chadsaliby_security-sydney-cyber-activity-6769919241660563456-F7m1

## Github

GitHub Guide

https://guides.github.com/activities/hello-world/

## Home lab for Cybersecurity

Cybersecurity home lab

https://www.linkedin.com/posts/davidbombal_do-you-need-a-cybersecurity-home-lab-activity-6790313531674775553--QEY

## IOT and Cybersecurity

Voluntary Code of Practice Securing the Internet of Things for Consumers

https://www.homeaffairs.gov.au/reports-and-publications/submissions-and-discussion-papers/code-of-practice#

## Living off the Land Attacks

A Wolf in Sheep's Clothing: Dissecting Living off the Land Techniques

https://www.sans.org/webcasts/wolf-sheeps-clothing-dissecting-living-land-techniques-114615

## Online Summits and Conferences

AWS Summit Online for Australia & New Zealand

https://aws.amazon.com/events/summits/online/anz/

Cyber World Congress: Virtual Cyber Security Event

Free registration (voucher on this page): https://www.linkedin.com/events/6742073406709137408/

Dell Technologies’ multi-day summit Building Cybersecurity Pathways for All Students:

https://lnkd.in/eE5APFf

Microsoft Cloud Training Events

https://www.microsoft.com/en-au/cloud-training-events/

Mitre Attack conference

https://attack.mitre.org/resources/attackcon/

New to Cyber Summit 2021 - Live Online

https://www.sans.org/event/newtocyber-summit-2021

OWASP Lightning Events - How to turn your Cybersecurity Hobby into a Career - An Introduction to Bugbounties - March 15, 2021:

https://lightning.owasp.org/

Security Skills Bootcamp

https://www.microsoft.com/en-au/cloud-training-events/security-cloud-skills-in-a-week

Think2021 IBM conference

https://ibm.app.swapcard.com/event/think21

The Modern SOC Summit sumo logic

https://modernsoc21.sumologicevents.com/

Virtual Cybersecurity Summit ANZ

https://events.ismg.io/event/virtual-cybersecurity-summit-anz-2021/

### Other inperson or non-free conferences

Australian Cyber Conference 2021

https://cyberconference.com.au/canberra/

BSides Canberra 2021

https://bsidescbr.com.au/

## Penatration Testing (PenTesting)

How to Write Penetration Testing Report

https://www.linkedin.com/posts/cybersecurity-news_how-to-write-penetration-testing-report-activity-6795040717963194370-4kGO

Burp Suite for Pentester

https://github.com/Ignitetechnologies/BurpSuite-For-Pentester

Penetration Testing Tools Reference Guide

https://www.engetsu-consulting.com/2021/02/05/penetration-testing-tools-reference-guide/

The Pentester Blueprint

https://www.linkedin.com/posts/the-pwn-school-project_the-pwn-school-project-is-hosting-the-pentester-activity-6789931573505609728-qHOX

Upgrade your Hacking Tools

https://robertscocca.medium.com/upgrade-your-common-hacking-tools-45ba700d42bb

Want to Hack? Learn The Cyber Kill Chain

https://www.youtube.com/watch?v=oCUrkc_0tmw

Why Good SOC Analysts Know Offense & Defense

https://www.youtube.com/watch?v=nit5LBiYcNo

## Python

Python Socket server

https://pythonprogramming.net/python-binding-listening-sockets/

## Ransomeware

Ransomware: Survive by outrunning the guy next to you

https://www.zdnet.com/article/ransomware-survive-by-outrunning-the-guy-next-to-you/

## Secuirty Awareness

Gamification is the future of cybersecurity training | Cyber Work Podcast

https://www.infosecinstitute.com/podcast/gamification-making-cybersecurity-training-fun/

https://www.youtube.com/watch?v=F4fZkBe5FUo

## Security Standards and Frameworks

CIS Benchmarks March 2021 Update

https://www.cisecurity.org/blog/cis-benchmarks-march-2021-update/

CORIE framework launched to test cyber resilience of Australia's financial services industry

https://www.cfr.gov.au/news/2020/mr-20-06.html

MITRE Attack

https://www.lockheedmartin.com/en-us/capabilities/cyber/cyber-kill-chain.html

https://attack.mitre.org/

https://www.youtube.com/watch?v=oCUrkc_0tmw

## SQL Injection Attacks

SQL Injection Demo

https://www.linkedin.com/posts/davidbombal_sql-injection-activity-6793926606864818176-8zpm

## Training and Courses

### Free and Virtual

Fortinet NSE 1 and 2 coures

https://training.fortinet.com/local/staticpage/view.php?page=certifications

Splunk Boss of Ops + O11y - May 14 - click on show all events

https://splunk.swoogo.com/2021gps/boo?linkId=115140433

Splunk Education Resources (Fundamentals 1, webinairs, etc)

https://education.splunk.com/free

Splunk Fundamentals 1

https://www.splunk.com/en_us/training/free-courses/splunk-fundamentals-1.html

Microsoft Ignite Skills: Complete/Learn a New Skill & Earn Microsoft Cert. Exam

https://slickdeals.net/f/14873734-microsoft-ignite-skills-complete-learn-a-new-skill-earn-microsoft-cert-exam-free-complete-by-march-30-2021

## Vulnerability Testing

Bad patching practices are a breeding ground for zero-day exploits, Google warns

https://www.cyberscoop.com/project-zero-google-zero-days-patching/

End-of-Support Software Report List

https://www.cisecurity.org/blog/end-of-support-software-report-list-2/

Plex Media servers are being abused for DDoS attacks

https://www.zdnet.com/article/plex-media-servers-are-being-abused-for-ddos-attacks/

## Websites and Blogs

GB hackers on Security

https://gbhackers.com/

## Youtube Accounts to Folow

Gerald Auger - Simply Cyber

https://www.youtube.com/channel/UCG-48Ki-b6W_siaUkukJOSw

OWASP

https://www.youtube.com/channel/UCSmjcWvgVBqF3x_7e5rfe3A

repository: WilliamsCraig/Cyber-Security-Resources

repo_name: WilliamsCraig/Cyber-Security-Resources


text:
With each release we will be adding more Data Vault 2.0 table templates, helpful macros and productivity enhancements.
We hope to tailor new features to the requirements of our community, making the package
the best and most useful it can be.

We will be releasing changes incrementally, so you can reap the benefits as soon as features are developed.

#### Contribute to dbtvault

- Do you have some ideas? [Let us know what you want added](https://github.com/Datavault-UK/dbtvault/issues)
- Want to contribute your own work? [Read our contribution guidelines](https://github.com/Datavault-UK/dbtvault/blob/master/CONTRIBUTING.md)

## Coming soon

These features are currently planned for the near-future.

- Effectivity satellites

## Future releases

In future releases, we hope to include the following:

### Tables

- Multi-active satellites
- Status tracking satellites
- Point-in-Time tables (also know as PITs)
- Bridge tables
- Reference Tables
- Mart loading helpers
- And more!


text:
---
layout: post
published: true
title: Prime time to hit the switch
---
Do you have a talent for factorizing arbitrary large random numbers? I'll show you how to build an educational prime number guessing game using an Arduino that takes roughly 2 hours to build. It will challenge you with random numbers to put your arithmetic skills to the test.

The aim of the game is simple: correctly identify whether a number is prime or not.

_A prime number is a whole number greater than 1, whose only two whole-number factors are 1 and itself._

[![Arduino prime number game](http://img.youtube.com/vi/bANKbJNpxhU/0.jpg)](http://www.youtube.com/watch?v=bANKbJNpxhU "Video Title")

To begin a number is displayed on the screen and you are presented with the option to select 'yes' or 'no'. The question is simply: 'Is this number a Prime number or not?'.

The screen also displays your score so you can challenge yourself or your friends and family.

My implementation uses an Arduino UNO Revision 3, If you're interested in playing or building one for yourself I'll show you how below.

### Instructions

To build this circuit, with or without a breadboard, the components you'll need are:

1. Arduino UNO (used revision 3)
2. Potentiometer
3. Two Switches for input controls, any type you feel like is ok I used push-to-make buttons
4. Any analog input (Capacitor, potentiometer, temp sensors or photo-resistors are all great)
5. An LCD display (at least 16 x 2) I used [LCM1602C]
6. You can power it from 9v battery or USB cable.
7. 10k ohm step down resitors

The circuit looks as follows:

![component view](https://raw.githubusercontent.com/CodeMuz/arduino-projects/master/Extra/Prime_Number_Game/component_vie.png)

I've prototyped the board using circuits.io [here](https://circuits.io/circuits/2458049-prime-number-guesser) for you to play around with. You'll notice the jump wires have different colours to the my circuit as it's clearer to follow the colours btu unfortunately I don't yet have wires with these colours.

The source code is available to [download](https://github.com/CodeMuz/arduino-projects/blob/master/Extra/Prime_Number_Game/primegame.ino) from github under CC BY SA 3.0.

## Schematics

![circuit diagram](https://raw.githubusercontent.com/CodeMuz/arduino-projects/master/Extra/Prime_Number_Game/circuit-diagram.png)

![copper-diagram](https://raw.githubusercontent.com/CodeMuz/arduino-projects/master/Extra/Prime_Number_Game/copper-diagram.png)

## Implementation

An interesting things to note in the source code is the random number generator code:

~~~
/*
Returns an odd integer between 0 and maxNumber
*/
unsigned long generateNewNumber() {

  unsigned long n = random(11 * analogRead(seedPin)) % maxNumber;

  //bias distribution to return higher percent composite
  if(n % 2 == 0 || n % 3 == 0 || n == 1 || n == prevNumber){
    return generateNewNumber();
  }

  prevNumber = n;

  return n;
}
~~~

Firstly I'm using the usigned long data type as that holds 4 bytes of positive numbers (0 to 4,294,967,295), this is because prime numbers are by definition positive numbers. For speed with primality test and to reduce difficulty I've set the max to the 5th Mersenne Prime 8191.

The analogue input device is required to provide more random information to the arduino _random_ function when generating the prime numbers. There's also a check so that the same number does not appear twice as this would be sub optimal for a quiz type game.

The Primality test function is just a naive implementation which is practical for small numbers and tests all the potential prime factors up to the square root of n.

~~~
boolean isPrime(long n) {
  if (n <= 1) {
    return false;
  } else if (n <= 3 ) {
    return true;
  } else if (n % 2 == 0 || n % 3 == 0) {
    return false;
  }
  int i = 5;
  while ((i * i) <= n) {
    if (n % i == 0 || n % (i + 2) == 0) {
      return false;
    }
    i = i + 6;
  }
  return true;
}
~~~

### Testing:

Running the circuit on 10,000 numbers for 6,421ms generates 3796 primes indicating that if you were to select 'No' every answer you would have a 62.04% rate of success.

A better approach would be using the deterministic [Baillie–PSW](https://en.wikipedia.org/wiki/Baillie%E2%80%93PSW_primality_test).

Potential extensions to this project, excluding optimizations, include:

- Varying the input type for responding to the quiz (movement sensors or variable resistors, or connecting to the device over bluetooth or wifi)
- Modifying the response interface, i.e with LEDs or Piezos
- An alternative number game, for example instead of isPrime() you could ask isPerfectNumber() or use any equation with multiples, powers and divisors.


text:
---
title: Berlin, the beating heart
updated: 2016-09-27 15:08
category: life
---

<iframe width="100%" height="200" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/250654932&auto_play=false&hide_related=true&show_comments=false&show_user=false&show_reposts=false&visual=false"></iframe>

### Three nights, two days

That's all it took. That's all it took for me to fall in love with the city. Over the past few days, many people asked me to describe the trip and I often found myself obliged to decline a proper answer for a lack of appropriate vocabulary that would describe the experience. Intense, euphorical, mesmerizing, these are all adjectives that I could paste on a large billboard that would struggle to represent a fraction of my trip.

![alt text](http://polegato.me/assets/fresque.jpg)

#### Berlin, you converted me. Or maybe I converted myself to you.

While in the middle of your chaos, I found art, I found passion, I found spirit and I found beauty. Along your wide avenues, your abandonned buildings and your beaming lights, I walked at night to the rythm of the grounding bass still resonating at dawn from your many clubs, shaking the sidewalks at regular intervals, like a beating heart pumps blood to trigger life.

But it's not only the nightlife that conquered me, it's also the people that find themselves in that environment that I cannot forget. As if united under the same banner, the same vision, that of a global, borderless inclusion. No wonder you're so welcoming of those who need shelter. You understand better than anyone the richness that lies in diversity. In all your aspects, you have learned from harsh division to accomodate as many signs of multiculturality as you could.

I don't know if I could linger in Berlin for years, the emotions that got me were too strong, to the points where I cannot imagine the effect that its sparkling life would have on me over time. Yet at the same time such uncertainty seduces me and calls my name for new challenges and new discoveries.

Berlin, to me, you were the theater of a grand reunion, with people I intensely love and with whom I want to share everything, unconditionally, and unstoppably. I want to feel your cold shaking me inside, I want to feel your industrial vibe beating all the time.

![alt text](http://polegato.me/assets/walk2.png)

gha_language: HTML

gha_license_id: NOASSERTION


text:
---
layout: post
title:  "TechHunt 2022"
permalink: "/media/events/techhunt2022"
category: events
---

![TechHunt 2022](/images/media/events/TechHunt2022-Header2.png)

TechHunt, our exclusive recruitment event series, is back in person! We are hiring technology enthusiasts with the same excitement and passion as us to build tech for the public good.

This year, we are calling for tech talents in the roles of Application Infrastructure Engineer/ Infrastructure Engineer, Digital Business Analyst, Project Manager (Agile) and Software Engineer to join our growing team!

This would be a great opportunity to network with our tech leads, recruiters, and like-minded peers from the industry. Here’s the best part – successful candidates will be notified of their application status within 48 hours of the event. Food and drinks are provided!

Visit our sites for more details, and find out how you can register your interest:

[![TechHunt 2022 - Infrastructure Engineer](/images/media/events/TechHunt2022-InfrastructureEngineer.png)](https://go.gov.sg/techhunt2022-aie){:target="_blank"}

[![TechHunt 2022 - Digital Business Analyst](/images/media/events/TechHunt2022-DigitalBusinessAnalyst.png)](https://go.gov.sg/techhunt2022-dba){:target="_blank"}

[![TechHunt 2022 - Project Manager (Agile)](/images/media/events/TechHunt2022-ProjectManagerAgile.png)](https://go.gov.sg/techhunt2022-pm){:target="_blank"}

[![TechHunt 2022 - Software Engineers](/images/media/events/TechHunt2022-SoftwareEngineers2.png)](https://go.gov.sg/techhunt2022-swe){:target="_blank"}

For any enquiries about TechHunt, please email us at<EMAIL_ADDRESS>

repository: isomerpages/isomerpages-govtech

branch_name: refs/heads/staging

gha_language: SCSS

repo_name: isomerpages/isomerpages-govtech


text:
---
slug: rodriguez-honored-for-outstanding-achievement
title: "Rodriguez honored for outstanding achievement"
date: January 01 2020
---

  An aspiring physician and medical researcher from CSUMB has been chosen for a
  California State University Trustees’ Award for Outstanding Achievement.

  Jason Rodriguez, a senior biology major from the San Fernando Valley, will be
  honored on Sept. 8 at the CSU board meeting in Long Beach.

  The
  Trustees’ Awards
  are the highest recognition of student achievement in the California State
  University system and are accompanied by a scholarship. Awardees must
  demonstrate superior academic performance, personal accomplishments, community
  service and financial need.

  “These trustees’ scholars are leaders on their campus, in the community and
  among their peers,” said CSU Chancellor Timothy White.“Their stories of drive,
  commitment and perseverance – often overcoming great odds – serve as
  testaments to the indomitable spirit of CSU students.”

  Jason is a senior at CSUMB, majoring in biology and preparing for graduate
  school. He works in the university’s Academic Skills Achievement Program,
  where he tutors other students. He felt a great deal of pressure to succeed in
  college as a first-generation student from a single-parent home. A
  lifetime of financial struggles motivated him to prepare for a career that
  will allow him to help support his mother while also being able to help other
  people. To pursue his passion for using science to improve the lives of
  others, Jason plans to pursue a combined M.D.-Ph.D. program, a goal
  solidified by his summer research experience at Dartmouth College’s School of
  Medicine. He wants to be a practicing physician who also does bio-medical
  research. He hopes to attend UCLA or UC San Francisco. Approximately 460,000
  students attend the 23 campuses of the CSU system.

  Only one student from each campus is honored with the Trustees’ Award. The
  program began three decades ago with scholarships endowed by the William
  Randolph Hearst Foundation. Since then, the generosity of current and emeritus
  CSU trustees and many other supporters has allowed the program to expand.

CSU Trustees’ Scholars are nominated by their campus presidents.

repository: csumb-archives/news-gatsby

gha_language: JavaScript

repo_name: csumb-archives/news-gatsby


text:
JavaScript Koans is an interactive learning environment that uses failing tests to introduce students to aspects of JavaScript in a logical sequence.

Thanks to https://github.com/liammclennan/JavaScript-Koans

repository: amysimmons/JavaScript-Koans

repo_name: amysimmons/JavaScript-Koans


text:
<br>
#Bash scripts

It is possible to put some commands into a script, to run automatically.

Here, we will put commands for several tools into a bash script and use it to assemble a bacterial genome.

Bash is a programming language, and we can run a bash script in the bash shell (e.g. the terminal).

##Prepare the bash script

- Open the terminal.
- Open a text editor, e.g., nano.

```bash
nano myscript.sh
```

- We now have a script called myscript.sh
- In the script, write

```bash
#!/bin/bash
echo This is my assembly script
```
- Ctrl-X to exit nano.

- Make the script executable:

```bash
chmod 755 myscript.sh
```

- Run the script to test.

```bash
./myscript.sh
```

- The text should print to the screen:
``` bash
This is my assembly script
```

##Edit the bash script

- Now we will add to the bash script.
- This will be a simple script that is designed to assemble, trim, and correct.
- It will likely only work in simple cases.
- Open nano

```bash
nano myscript.sh
```

- and type in the following
(#comments and echo statements are optional but probably useful):

```bash
#!/bin/bash
#a script for assembling a bacterial genome

#set a variable for the number of CPUS
#this can then be easily changed if needed
CPUS=16

#this script requires 5 arguments
#we will test whether 5 were entered
if [ ! $# -eq 5 ] #if there are not 5 arguments
then
    echo "ERROR: needs 5 arguments"
    echo "usage: $0 outdir genomeSize (e.g. 2.1m) pacbio.fq R1.fq R2.fq"
    #the usage shows what arguments are required
    exit 1 #exits
fi

#report back the arguments entered:
#each argument is assigned a variable name from 1 to 5
#these variables are referred to with the $ sign
echo "your directory with output is called $1"
echo "your genomeSize is $2"
echo "your pacbio reads are in file $3"
echo "your R1 reads are in file $4"
echo "your R2 reads are in file $5"
echo #echo on its own puts in a blank line on the screen

#run canu to assemble the reads
mkdir -p "$1"  #the p creates intermediate directories where required
echo "now running canu"
echo "your canu output is in directory "$1/canu""
nice canu -p canu -d "$1/canu" genomeSize="$2" -pacbio-raw "$3"
#commands are preceeded by 'nice' in this script for particular servers

#test canu output: number of contigs
#make a variable called num_contigs
num_contigs=$(grep -c '>' "$1/canu/canu.contigs.fasta")
echo "number of contigs found by canu is: $num_contigs"
echo
if [ $num_contigs -gt 10 ]
then
    echo "there are more than 10 contigs"
    echo "the analysis is stopping"
    exit 1
#in more complex scripts, you can add the option to repeat the analysis with different parameters, etc.
fi

#run circlator to trim the contigs
echo "now running circlator to trim and orient contigs"
echo "your circlator output is in directory "$1/circlator" "
nice circlator all --threads $CPUS --verbose "$1/canu/canu.contigs.fasta" "$1/canu/canu.correctedReads.fasta.gz" "$1/circlator"
#in more complex scripts, you can add information about which contigs were merged; where contigs were oriented; how contigs were trimmed, etc.
#rename the contigs file
cp "$1/circlator/06.fixstart.fasta" "$1/contigs.fa"
echo "your contigs from circlator are now in the file called contigs.fa"
#note: in this case, these contigs may not have been trimmed.

#find smaller plasmids
echo "now looking in illumina reads for small plasmids"
echo "indexing the contigs.fa file"
nice bwa index "$1/contigs.fa"
echo "aligning illumina reads to the contigs.fa file"
nice bwa mem -t $CPUS "$1/contigs.fa" "$4" "$5" | samtools sort > "$1/aln.bam"
echo "indexing the aln.bam file"
nice samtools index "$1/aln.bam"
echo "extracting the unmapped illumina reads"
samtools fastq -f 4 -1 "$1/unmapped.R1.fastq" -2 "$1/unmapped.R2.fastq" -s "$1/unmapped.RS.fastq" "$1/aln.bam"
echo "assembling the unmapped reads with spades"
echo
nice spades.py -t $CPUS -1 "$1/unmapped.R1.fastq" -2 "$1/unmapped.R2.fastq" -s "$1/unmapped.RS.fastq" -o "$1/spades_assembly"
echo
echo "your output is in the spades_assembly directory"
echo

#check if any contigs are > 1500bp
seqtk seq -L 1500 "$1/spades_assembly/contigs.fasta" > "$1/illumina_contigs.fasta"
echo "extracting contigs > 1500bp into illumina_contigs.fasta"
echo
#in more complex scripts, you can trim and orient these contigs, or do further investigation into whether they are true plasmids

#join the canu pacbio contigs and the small plasmids
cat "$1/contigs.fa" "$1/illumina_contigs.fasta" > "$1/allcontigs.fasta"

echo
echo "joining small contigs to the pacbio contigs as allcontigs.fasta"
echo

#correct this assembly with Pilon
echo "preparing to correct contigs with illumina reads, using Pilon"
echo "indexing allcontigs.fasta"
nice bwa index "$1/allcontigs.fasta"
echo "aligning illumina reads to allcontigs.fasta"
nice bwa mem -t $CPUS "$1/allcontigs.fasta" "$4" "$5" | samtools sort > "$1/aln.bam"
echo "indexing aln.bam"
nice samtools index "$1/aln.bam"
echo "indexing allcontigs.fasta"
nice samtools faidx "$1/allcontigs.fasta"
echo "correcting with Pilon"
nice pilon --genome "$1/allcontigs.fasta" --frags "$1/aln.bam" --output "$1/pilon1" --fix all --mindepth 0.5 --changes --verbose --threads $CPUS
echo
echo "Pilon finished"
echo

#count how many changes were made
pilon_changes=$(wc -l < "$1/pilon1.changes")
echo "there were $pilon_changes corrections made"
echo
echo "Assembly complete"
echo "The sequence is saved as "$1/pilon1.fasta""

exit 1
```

##Run

To run, type in

```bash

./myscript.sh outdir 1.9m subreads.fastq R1.fastq R2.fastq

```
- **outdir** is the name of the output directory
- **1.9m** is the approximate genome size for the species
- **subreads.fastq** is the name of the Pacbio reads file
- **R1.fastq** is the name of the R1 Illumina reads file
- **R2.fastq** is the name of the R2 Illumina reads file

- If the Pacbio and Illumina reads files are not in the current directory, put in the whole path to those files

- The script should run to the end or may exit early if necessary (e.g. the canu assembly found too many contigs).

- There are many refinements and additions that could be made to this script, and some of these are noted as comments above.


text:
# models

## Architecture

**networks/**: networks' architectures

**utils/**: various utilities

**eval/**: all evaluation scripts are defined here

**datasets/**: specific dataset models

**loss_criterions/**: gan loss criterions. Whether they are "basic" (MSE...) or
                     more model specific (AC-GAN)

**merics/**: metrics used to estimate the quality of the trained models

**trainer/**: wrappers used to handle the GAN's training. Things like: number of iterations, logging, visualization... will be handled here.

---
**base_gan.py** : the reference structure for GANs. All GANs must inherit from this class.

This mother BaseGANs handles:
* the GAN training sequence as described in Generative Adversarial Nets
* GPU and multi-GPU
* saving and loading into a file
* gradient penalty
* nature of the loss
* conditional generation (ACGAN)

What should be handled in a child class
* nature of the G and D networks
* kind of optimizers used (will be moved in BaseGAN)
* and other functions model specific

**progressive_gan.py**: an implementation of [NVIDIA's progressive gan](http://research.nvidia.com/sites/default/files/pubs/2017-10_Progressive-Growing-of/karras2018iclr-paper.pdf). This class inherits from the BaseGAN abstract class.

**DCGAN.py**: an implementation of [DCGAN]( https://arxiv.org/pdf/1511.06434.pdf) a very simple and basic GAN structure. This class inherits from the BaseGAN abstract class.

Among other things, it gives the user the possibility to add new layers to the model during the training.

**trainer/std_p_gan_config.py**: standard configuration for a ProgressiveGAN training.
**trainer/std_dcgan_config.py**: standard configuration for a DCAGN training.

All possible configuration parameters for ProgressiveGANTrainer are described here.


text:
Hello,

((candidate_name)) has withdrawn their request for school experience at ((school_name)) which they submitted on  ((requested_on)).

They've provided the following reasons for withdrawing the request:
((cancellation_reasons))

View the cancelled request - ((placement_request_url))

repository: DFE-Digital/schools-experience

gha_language: Ruby

repo_name: DFE-Digital/schools-experience


text:
# 0-stor

[![Build Status](https://travis-ci.org/zero-os/0-stor.svg?branch=master)](https://travis-ci.org/zero-os/0-stor)

A Single device object store.

[link to group on telegram](https://t.me/joinchat/BwOvOw2-K4AN7p9VZckpFw)

## Components

## Server
The 0-stor server is a generic object store that prodive simple storage primitives, read, write, list, delete.

Underneat 0-stor uses [badger](https://github.com/dgraph-io/badger) as key value store. Badger allow to store the keys and the value in two different devices. Because of this separation the LSM tree of keys can most of the time stay in memory. Typically the keys could be kept in memory and depending on the use case, the values could be served from an SSD or HDD.

### Installation

Install the 0-stor server
```
go get -u github.com/zero-os/0-stor/cmd/zerostorserver
```

### How to run the server

## Running the server
Here are the options of the server:
```
   --debug, -d               Enable debug logging
   --bind value, -b value    Bind address (default: ":8080")
   --data value              Data directory (default: ".db/data")
   --meta value              Metadata directory (default: ".db/meta")
   --profile-addr value      Enables profiling of this server as an http service
   --auth-disable            Disable JWT authentification [$STOR_TESTING]
   --max-msg-size value      Configure the maximum size of the message GRPC server can receive, in MiB (default: 32)
   --help, -h                show help
   --version, -v             print the version

```

Start the server with listening on all interfaces and port 12345
```shell
./zerostorserver --bind :12345 --data /path/to/data --meta /path/to/meta
```
## Client

The client is where all the logic of the communicaion with the 0-stor server lies.

The client provide some basic storage primitives to process your data before sending it to the 0-stor server :
- chunking
- compression
- encryption
- replication
- distribution/erasure coding

All of these primitives are configurable and you can decide how your data will be processed before beeing send to the 0-stor.

### Client API
Client API documentation is on godoc

[![godoc](https://godoc.org/github.com/zero-os/0-stor/client?status.svg)](https://godoc.org/github.com/zero-os/0-stor/client)

### Client CLI
You can find a CLI for the client in `cmd/zerostorcli`.

To install
```
go get -u github.com/zero-os/0-stor/cmd/zerostorcli
```

### More documentation

You can find more information about both component in the `/docs` folder of the repository.

* [Server docs](docs/README.md)
* [Client docs](client/README.md)
* [CLI docs](cmd/zerostorcli/README.md)

repository: GlenDC/zerodisk

gha_language: Go

repo_name: GlenDC/zerodisk


text:
# Component Property Editor
## Default Property Editor
If a component defines `props`, Singlepage automatically creates a form for editing component properties. The form can be
opened by selecting `Edit Settings` option in the component dropdown menu accessible by clicking on the `gear` icon on
the component window.

![Component Edit Settings Menu](./component_menu.png)

### Properties Defined as Array
The simplest way to define properties in Vue is to define an array of strings as shown below:

```javascript
props: ['propA', 'propB']
```

In the example property definition shown above, Singlepage will create a component settings form shown below:

![Simple Component Property Editor](./prop_editor_ds1.png)

### Property Object
Vue allows you to define property types. The property specification listed below is taken from Vue.js documentation and
shows how you can define property types.

```javascript
    props: {
      title: String,
      likes: Number,
      isPublished: Boolean,
      commentIds: Array,
      author: Object,
      callback: Function,
      contactsPromise: Promise // or any other constructor
    }
```

Singlepage does not recognize Function and Promise but it creates a property editor shown below. Arrays have to be entered in the
Javascript array notation. Object properties are to be specified as a JSON object. Singlepage validates both of the property types
by attempting to create a Javascript array and an object respectively.

![Simple Component Property Object Editor](./prop_editor_ds2.png)

### Advanced Property Specification
In its most advanced form, Vue.js allows component developers to define properties with their data type and validators.
The example below is also taken from Vue.js documentation.

```Javascript
    props: {
        // Basic type check (`null` and `undefined` values will pass any type validation)
        propA: Number,
        // Multiple possible types
        propB: [String, Number],
        // Required string
        propC: {
          type: String,
          required: true
        },
        // Number with a default value
        propD: {
          type: Number,
          default: 100
        },
        // Object with a default value
        propE: {
          type: Object,
          // Object or array defaults must be returned from
          // a factory function
          default: function () {
            return { message: 'hello' }
          }
        },
        // Custom validator function
        propF: {
          validator: function (value) {
            // The value must match one of these strings
            return ['success', 'warning', 'danger'].indexOf(value) !== -1
          }
        }
      }

```

The property spec above will show the editor shown below. In this case, the validator for propF will be used
to validate the values for propF.

![Advanced Property Editor](./prop_editor_ds3.png)

repository: pdabke/singlepage-js-doc

repo_name: pdabke/singlepage-js-doc


text:
---
layout: post-f2
title: Hiring? Hiring! 👍
permalink: /blog/:categories/:year/:title
featuredimage: /assets/images/posts/f2-bg.png
tags: [ hiring, strategy ]
category: [ founders-founders ]
---

Since many startups of our community are looking for new team members 👥(Bitmaker, Infraspeak, TonicApp) I decided to explore their hiring processes & share them with you (they might come in handy to you). 😉

So how do our start-ups’ HR departments (aka the founders themselves) tackle hiring? 🤔 They

- Reach out to their networks for potential candidates 🌐 (& their team member’s network) – personal referrals are far more valuable than any CV application send ⚖
- Involve their team in the process – employee’s contributions about what are the real needs in the team are valuable 💪 (+ they also help in the selection process)
- Put job ads on their websites (& other related websites) ℹ – here, writing an appealing & clear job description is a must (tell exactly what you want -like in THIS example)
- Pre-evaluating candidates’ skills through CV  revisions, past experiences or challenges 🔍 – like solving a tech/content/sale task – everything to avoid wasting time
- Schedule & implement intense interviews with the the top 5 (max.) final choices ☝ – here they try to meet the candidate from their professional and personal perspectives to assess a team fit ✅
- For the final choice they go with their “gut” feeling 💚 – they opt for the person that “feels” like the best fit
- Over all, they take their time & try not to force the hire. It might take time to find the perfect fit, but once they appear it pays off long-term-wise. 👌Great employees attract great employees. 🔝

Remember, each new hire for the start-ups is crucial, especially in the early beginning❗ You are also building your start-up culture & identity, so for that reason I believe the candidates’ personality, soft skills are equally ♨ (if not more) important as the technical one.

I mean, on the long-term one can learn the required technical skills, but many times the same person cannot become a culture fit to be a good team member.💔

How about you? What’s your hiring strategy❓


text:
---
title: Filtering through RadDataFilter
page_title: Filtering through RadDataFilter
description: Check our "Filtering through RadDataFilter" documentation article for the RadDataServiceDataSource {{ site.framework_name }} control.
slug: raddataservicedatasource-filtering-filtering-through-raddatafilter
tags: filtering,through,raddatafilter
published: True
position: 2
---

# Filtering through RadDataFilter

##

If you bind __RadDataFilter.Source__ to __RadDataServiceDataSource.DataView__, you will get automatic server-side filtering. When the user defines his filtering criteria through __RadDataFilter’s__ UI, __RadDataFilter__ will automatically transfer the resulting __FilterDescriptors__ to __RadDataServiceDataSource__. If __RadDataServiceDataSource.AutoLoad__ is ___true___, the control will automatically go to the server and get the data that matches these __FilterDescriptors__.

#### __XAML__

{{region raddataservicedatasource-filtering-filtering-through-raddatafilter_0}}

	<Grid x:Name="LayoutRoot" Background="White">
	 <Grid.RowDefinitions>
	  <RowDefinition Height="Auto"/>
	  <RowDefinition Height="*"/>
	 </Grid.RowDefinitions>
	 <telerik:RadDataServiceDataSource Name="customersDataSource" QueryName="Customers" AutoLoad="True">
	  <telerik:RadDataServiceDataSource.DataServiceContext>
	   <local:MyNorthwindContext/>
	  </telerik:RadDataServiceDataSource.DataServiceContext>
	 </telerik:RadDataServiceDataSource>
	 <telerik:RadDataFilter Grid.Row="0" Source="{Binding DataView, ElementName=customersDataSource}"/>
	 <telerik:RadGridView Grid.Row="1" ItemsSource="{Binding DataView, ElementName=customersDataSource}"
	    IsBusy="{Binding IsBusy, ElementName=customersDataSource}"
	    ShowGroupPanel="False"/>
	</Grid>
{{endregion}}

On running the application, you may perform the following:

![{{ site.framework_name }} RadDataServiceDataSource Filtering through RadDataFilter](images/RadDataServiceDataSource_FiteringThroughRadDataFilter.png)

>caution If __AutoLoad__ is ___false___, the descriptors will be transferred to __RadDataServiceDataSource__, but no trip to the server will be made until the __Load__ method is called.

repository: telerik/xaml-docs

repo_name: telerik/xaml-docs


text:
# **README.md Generator**
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

  ## Description
  The app is designed to build a professional README.md file based on answers provided by on the command line.

  ## Table of Contents
  * [Installation](#installation)
  * [Usage](#usage)
  * [License](#license)
  * [Contributing](#contributing)
  * [Tests](#tests)
  * [Questions](#questions)

  ## Installation Instructions
  A user will need to clone the repository and install inquirer npm.  Then a user can run the app from the command line by entering, "node index."

  ## Usage Instructions
  For any user who needs a standard README.md file.

  ## License
  MIT

  ## Contributing
  Files are open source, but please adhere to the Contributor Convenant Code of Conduct.

  ## Tests
  none

  ## Questions
  http://www.github.com/DJS593

  Email<EMAIL_ADDRESS>with any additional questions.

   ## Video Link
  https://drive.google.com/file/d/1Rw8yVr-vYJUpMcGuMkXiOhZUQOHSWUUi/view