text:
---
layout: post
title : "How to create a local copy of our wordpress site for testing"
date : 25.02.2016 23:17:00
tags: [wordpress]
---
{% include JB/setup %}

In this post I will briefly describe how to install wordpress on your windows machine and what to consider, when restoring the data of your live wordpress site to your local installation. This procedure can be useful to test wordpress (plugin/theme) updates locally before applying them to the life site.

Note: I assume that you are running wordpress against a MySql database and use a Windows machine for local testing.

## 0. Create a backup of your wordpress site

There are plenty of ways to create backups. The most convenient one is probably to use a plugin like [one of these](https://wordpress.org/plugins/tags/backup) which takes care of everything. If you have direct access to the server, you may also just create a copy of the wp-content folder and your wp-config.php. You also have to copy the mysql database - refer to this [Wordpress Wiki](https://codex.wordpress.org/WordPress_Backups) for detailed instructions.

## 1. Install Wordpress on your machine

*   Go ahead to the [Microsoft Web Platform Site for Wordpress](https://www.microsoft.com/web/wordpress) and hit the button **Install Wordpress**
*   The site will prompt you to download a tool called **Web Platfrom Installer**, or WebPI for short, which will take care of all the technical things like installing IIS, installing [PHP](http://windows.php.net/download/), installing [MySql](https://dev.mysql.com/downloads/windows/), installing [wordpress](https://wordpress.org/download/), and setting everything up.
*   You can find step by step instructions for the installation with WebPI [here](https://codex.wordpress.org/Installing_on_Microsoft_IIS).
*   When your setup is complete, write down the precise url under which your local wordpress installation is available (e.g. [http://localhost/wordpress/](http://localhost/wordpress/))

## 2.  My recommendation is to leave the wordpress database created by WebPI as is and to restore your backup to a database with a different name, say *wordpress-restored*.
*   Overwrite the contents of your local *wp-content* folder with the ones of your live site.
*   Edit the local *wp-config.php* from your live site and enter the login data of your local mysql server and point it to your restored mysql database *wordpress-restored*.

```
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress-restored');

/** MySQL database username */
define('DB_USER', 'wp-restored-user');

/** MySQL database password */
define('DB_PASSWORD', 'wp-restored-pw');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
```

*   Find the section of your live site's *wp-config.php* containing the authorization keys and salts and insert the ones of your live site.

```
define('AUTH_KEY',         'put your unique phrase here');
define('SECURE_AUTH_KEY',  'put your unique phrase here');
define('LOGGED_IN_KEY',    'put your unique phrase here');
define('NONCE_KEY',        'put your unique phrase here');
define('AUTH_SALT',        'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT',   'put your unique phrase here');
define('NONCE_SALT',       'put your unique phrase here');
```

*   Open the *wp-login.php* and find this line:

```
require( dirname(__FILE__) . '/wp-load.php' );
```

insert the following lines below

```
//FIXME: do comment/remove these hack lines. (once the database is updated)
update_option('siteurl', 'http://localhost/wordpress' );
update_option('home', 'http://localhost/wordpress' );
```

*   If you installed a newer wordpress version locally than the one running on your live site, head to the admin portal to initiate a database update.
*   That's it!

gha_language: Ruby


text:
# How to convert markdown to HTML in Laravel and Voyager

Markdown was created by [John Gruber](https://en.wikipedia.org/wiki/John_Gruber) and [Aaron Swartz](https://en.wikipedia.org/wiki/Aaron_Swartz) who contributed on the syntax.

Nowadays Markdown is everywhere, from readme files and writing messages in online discussion forums. I'm even writing this very article in Markdown as well!

Markdown widely used as it offers an easy to write and read plain text format, which then gets converted to HTML.

In this tutorial, I will show you how to use Markdown with your Voyager Admin panel for your Laravel website and how to render the output to HTML on your views!

Before you start you would need to have a `composer` and Laravel application up and running along with Voyager installed.

I will be using a DigitalOcean Ubuntu Droplet for this demo, if you wish you can use my affiliate code to **[get free $100 DigitalOcean credit](https://m.do.co/c/2a9bba940f39)** to spin up your own servers!

If you do not have that yet, you can follow the steps from this tutorial on how to do that:

* [Install Laravel on Ubuntu Server](https://devdojo.com/bobbyiliev/laravel-app-on-digital-ocean-ubuntu-1904-droplet-step-by-step-guide)

Or you could use this awesome script to do the installation:

* [LaraSail](https://devdojo.com/devdojo/larasail-laravel-on-digital-ocean)

Once you have Laravel and Voyager installed, you are ready to follow along!

## Install the Laravel Markdown Package

For this example, we will use the following Laravel Markdown package developed by [Graham Campbell](https://gjcampbell.co.uk/):

[https://github.com/GrahamCampbell/Laravel-Markdown](https://github.com/GrahamCampbell/Laravel-Markdown)

In order to install the package, first `cd` into the directory of your Laravel application and run the following command:

```
composer require graham-campbell/markdown
```

This might take a minute or so to complete.

After that, as stated in the GitHub Readme file, in case that you are not using automatic package discovery, you have to register the `GrahamCampbell\Markdown\MarkdownServiceProvider` service provider in your `config/app.php`.

You can also optionally alias our facade:

```
        'Markdown' => GrahamCampbell\Markdown\Facades\Markdown::class,
```

The package also supports different configurations which you could learn more [about here](https://github.com/GrahamCampbell/Laravel-Markdown#configuration). To keep things simple, we will stick with the default settings.

## Configure your Controller

Once you have the package installed, we are ready to change our Post controller and include the MArkdown facade.

To do so, edit your PostController and add the following line at the top:

```
use GrahamCampbell\Markdown\Facades\Markdown;
```

As an example, my single post method looks like this:

```
    public function single($slug){
        $post = Post::where([['slug', '=', $slug],['status', '=' ,'published']] )->firstOrFail();

      return view('blog.single', compact('post'));

    }
```

In order to incorporate the Markdown changes, you just need to add the following line:

```
$post->body = Markdown::convertToHtml($post->body);
```

So your method would look something like this:

```
    public function single($slug){
        $post = Post::where([['slug', '=', $slug],['status', '=' ,'published']] )->firstOrFail();

      $post->body = Markdown::convertToHtml($post-body);

      return view('blog.single', compact('post'));

    }
```

All that we had to do was to first include the Markdown facade and then use the `convertToHtml` static method to parse our Markdown to HTML and return this to our Post view.

## Change the Input type in Voyager

Now that we have our controller configured to parse markdown to HTML, we need to make sure that we actually, store our posts as markdown in our database.

Luckily Voyager makes that super easy! All you need to do is:

* First, go to your Voyager admin panel
* Then go to Tools -> BREAD
* Find your Posts table and click edit
* Then search for `body` and from the dropdown change input type from `Rick text box` to `Markdown Editor` and then save the changes

![laravel-markdown-voyager-devdojo.PNG](https://cdn.devdojo.com/images/july2020/laravel-markdown-voyager-devdojo.png)

Once this has been done, go to Posts and edit or add a new post.

That way you will be able to write in Markdown via your Voyager control panel and have your markdown parsed to HTML on your frontend!

## Conclusion

Now you know how to use Voyager's Markdown Editor and write your posts in Markdown directly via Voyager!

Hope that you find this helpful!

[Originally posted here](https://devdojo.com/bobbyiliev/how-to-convert-markdown-to-html-in-laravel-and-voyager)

license: MIT

branch_name: refs/heads/main

extension: md

gha_license_id: MIT

license_type: permissive


text:
# Haxe GDPR Consent Demo

[![License](https://img.shields.io/:license-mit-blue.svg?style=flat-square)](https://github.com/Tw1ddle/samcodes-consent-demo/blob/master/LICENSE)

Demo of Google Mobile Ads [Consent SDK bindings](https://github.com/Tw1ddle/samcodes-consent) for Android and iOS Haxe OpenFL targets.

*This is deprecated* - I am no longer updating it because I do not currently use ads requiring GDPR consent in my projects. Feel free to fork this and bring it up to date though!

## Usage

This demo app uses HaxeFlixel and one of my haxelibs, so install these first:

```bash
haxelib install flixel
haxelib install samcodes-consent # Or use lib/samcodes-consent submodule in the repo
```

Enter your AdMob publisher id in the ```ConsentWrapper``` class for the Consent SDK to work with. You can also optionally set your privacy policy URL.

## Screenshots

Pre-rendered consent screen:

![](screenshots/prerendered-consent-dialog.png?raw=true)

Screenshot of the actual demo:

![](screenshots/app-screenshot.png?raw=true)

## Notes
 * Run the JavaScript build [here](https://github.com/Tw1ddle/samcodes-consent-demo/index.html). There's no web-based consent support yet.
 * Got an idea or suggestion? Open an issue on GitHub, or send Sam a message on [Twitter](https://twitter.com/Sam_Twidale).

branch_name: refs/heads/master


text:
# Getters

## Prerequisites

This guide assumes prior knowledge of composables. If you don't know what they are or how to use them, see the [Composables](./composables.html) guide.

## What are getters?

Reading the same composable's data in a few places in your application can be cumbersome, especially if that data is deeply nested.

That's why every composable has a dedicated getter, which is a helper for extracting commonly used data. For example, the `useUser` composable has the `userGetters`.

You should use getters whenever possible unless the given getter doesn't have a method that returns the data you need.

## Anatomy of a getter

Getters are objects with a set of methods that accept either:

- the [primary state](./composables.html#anatomy-of-a-composable) from their composable,
- or result from other getter methods.

Let's take a closer look at how it might look like using the [userGetters](/reference/api/core.usergetters.html) as an example:

<img
  src="../images/userGetters-getter-anatomy.webp"
  alt="Anatomy of the userGetters getter"
  style="display: block; margin: 0 auto;">

In this example, the getter has four methods:

- `getEmailAddress()`,
- `getFirstName()`,
- `getFullName()`,
- `getLastName()`.

Each accepts the `user` object from the `useUser` composable as a parameter.

## Usage

Let's see how you can use the [userGetters](/reference/api/core.usergetters.html) to get the user's full name:

```vue
<script>
import { useUser, userGetters } from '{INTEGRATION}';
import { useFetch, computed } from '@nuxtjs/composition-api';

export default {
  setup() {
    const { load, user } = useUser();

    /**
     * Create variable which extracts the full user name from the `user`
     * object. Until we load user data, the value is `undefined`.
     */
    const userFullName = computed(() => userGetters.getFullName(user.value));

    /**
     * Load user data. This updates the `user` object,
     * which as a result, updates the `userFullName` variable.
     */
    useFetch(async () => {
      await load();
    });

    /**
     * Return the `userFullName` object to make it available in the template
     */
    return {
      userFullName
    };
  }
};
</script>
```

You might have noticed that above, we called the getter function inside the `computed` function.

That's because getter methods are not reactive and don't observe changes in the values you pass. To make them reactive, you need to wrap them in `computed` functions.

```javascript
/**
 * ❌
 * Calling getter methods like this will only read their values
 * once and never update, even when the value of the `user` changes
 */
const nonReactive = userGetters.getFullName(user.value);

/**
 * ✔
 * Wrapping the same method call inside `computed` will observe
 * the changes in the `user` object and re-run the getter method
 */
const reactive = computed(() => userGetters.getFullName(user.value));
```

repository: vuestorefront/vue-storefront

gha_language: TypeScript

repo_name: vuestorefront/vue-storefront


text:
---
layout: post
title: Overview of SOLIDWORKS eDrawings API
description: Detailed overview of eDrawings API, creating Windows Forms and WPF application, using markup API, creating the batch export to PDF without SOLIDWORKS using only eDrawings API
image: /res/2019-07-09-edrawings-api-overview/edrawings.png
labels: edrawings,markup,pdf
---
{% include img.html src="/res/2019-07-09-edrawings-api-overview/edrawings.svg" width=350 alt="SOLIDWORKS eDrawings" align="center" %}

eDrawings is a free SOLIDWORKS file viewer. Software can be downloaded from the [eDrawingsViewer](https://www.edrawingsviewer.com/) web-site. This application not only allows to view, markup, measure and print SOLIDWORKS, DXF and DWG files without having SOLIDWORKS installed, but also provides API for a programmatic access to its features.

In this blog article I will guide you though the basics of eDrawings API. I will show how to host the eDrawings control on Windows Forms or WPF application. Introduce to the eDrawings markup API to extract the measurements. And finally describe 3 most common use cases where eDrawings can be useful for, including the application to batch export SOLIDWORKS drawing to PDF format without having SOLIDWORKS installed or even without a need to own a SOLIDWORKS license.

## Creating Windows Forms application

{% include youtube.html id="-O1kLCsrFl0" width=560 height=315 %}

eDrawings interop provides signatures of API methods which can be used when programming in C# or VB.NET and located in the installation folder of eDrawings: *%commonprogramfiles%\eDrawings[Version]\eDrawings.Interop.EModelViewControl.dll*.

Simply create a wrapper around eDrawings ActiveX control and add it to your form. Now you can explore eDrawings API!

~~~ cs
public class EDrawingHost : AxHost
{
    public EDrawingHost() : base("22945A69-1191-4DCF-9E6F-409BDE94D101")
    {
        m_IsLoaded = false;
    }
}
~~~

Follow the [Hosting eDrawings control in Windows Forms](https://www.codestack.net/edrawings-api/gettings-started/winforms/) for detailed instruction and code examples.

## Creating WPF application

{% include img.html src="\res\2019-07-09-edrawings-api-overview\edrawings-wpf-window.png" width=350 alt="eDrawings control in WPF form" align="center" %}

If you are using the modern Windows Presentation Foundation (WPF) framework and want to host your eDrawings control in there you can do it by wrapping your control in the [WindowsFormsHost](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.integration.windowsformshost?view=netframework-4.8)

~~~ cs
public partial class eDrawingsHostControl : UserControl
{
    private EModelViewControl m_Ctrl;

    public eDrawingsHostControl()
    {
        InitializeComponent();

        var host = new WindowsFormsHost();
        var ctrl = new EDrawingHost();
        host.Child = ctrl;
        this.AddChild(host);
    }
}
~~~

Follow the [Hosting SOLIDWORKS eDrawings control in Windows Presentation Foundation (WPF)](https://www.codestack.net/edrawings-api/gettings-started/wpf/) for detailed instruction and code examples.

## Markup

One of the cool eDrawings features is an ability to add markups to the files. This includes stamps, comments, lines, arcs, clouds etc. It is also possible to perform measurements directly in the eDrawings viewer. Markup API is available in [IEModelMarkupControl](http://help.solidworks.com/2016/english/api/emodelapi/eDrawings.Interop.EModelMarkupControl~eDrawings.Interop.EModelMarkupControl.IEModelMarkupControl.html) interface.

Follow [Utilizing markup functionality using SOLIDWORKS eDrawings API](https://www.codestack.net/edrawings-api/markup/) tutorial for a guide and project example of using eDrawings markup API.

## Use Cases

Although eDrawings API is relatively small compared to SOLIDWORKS API, it is still very powerful and can be used in the number of applications. Below are the most common scenarios of utilizing eDrawings API

### Batch export to pdf

There is no way to export eDrawings files into foreign format, however the file can be printed and if PDF printer is setup, eDrawings can be used to effectively batch convert drawings into a PDF format. You can find the application which is doing this by following: [Batch export SOLIDWORKS files to PDF via eDrawings API (without SOLIDWORKS)](https://www.codestack.net/edrawings-api/output/print-to-pdf/) link.

### File viewer

This would be probably the most common use of eDrawings. If you are building Product Data Management or Product Catalogue applications and want to enable viewing of files eDrawings would provide simple and lightweight way to do this.

### Inspection tool

Using eDrawings markup capabilities it is possible to implement the inspection tool where users will be able to add markups, review comments and stamps to the files in the business workflow.

repository: codestack-net/blog

repo_name: codestack-net/blog


text:
# cpu collector

The cpu collector exposes metrics about CPU usage

|||
-|-
Metric name prefix  | `cpu`
Classes             | [`Win32_PerfRawData_PerfOS_Processor`](https://msdn.microsoft.com/en-us/library/aa394317(v=vs.90).aspx)
Enabled by default? | Yes

## Flags

None

## Metrics

Name | Description | Type | Labels
-----|-------------|------|-------
`wmi_cpu_cstate_seconds_total` | Time spent in low-power idle states | counter | `core`, `state`
`wmi_cpu_time_total` | Time that processor spent in different modes (idle, user, system, ...) | counter | `core`, `mode`
`wmi_cpu_interrupts_total` | Total number of received and serviced hardware interrupts | counter | `core`
`wmi_cpu_dpcs_total` | Total number of received and serviced deferred procedure calls (DPCs) | counter | `core`

### Example metric
_This collector does not yet have explained examples, we would appreciate your help adding them!_

## Useful queries
_This collector does not yet have any useful queries added, we would appreciate your help adding them!_

## Alerting examples
_This collector does not yet have alerting examples, we would appreciate your help adding them!_


text:
---
id: 693
title: Dinosaurs, snow and giant statues
date: 2011-05-11T15:08:13+00:00
author: happyseizure
layout: post
guid: http://happyseizure.wordpress.com/?p=693
permalink: /2011/05/dinosaurs-snow-and-giant-statues/
categories:
  - China
  - Mongolia
tags:
  - Dinosaurs
  - Erenhot
  - Erlian
  - Genghis Khan
  - Gobi Desert
  - The Beatles
  - Ulaanbaatar
---
From Beijing we took an early morning train up to Erenhot… or Erlian, we’re not quite sure (the town seems to have 2 names, but it’s hard to work out). We passed time by sleeping and eating food, but mostly by playing games of Big 2 or Uno (High School Musical 2 edition!). The scenery was pretty samey, after the first couple hours out of Beijing and its mountainous terrain we wound up heading through the Gobi Desert, and subsequently filled our carriage with sand and dust.

We arrived to Erenhot in the late evening to discover it was a surprisingly awesome little town. First thing we did was look for a hostel, but then we figured we probably deserved to treat ourselves to a real hotel.

    We splashed out at a ridiculous $7 each for the room

Soon we were back outside exploring the delights Erenhot had to offer. First point of awesomeness: Tank-shaped electric buggies for riding around the main square

Turns out they’re also big on dinosaurs

Apparently this area is pretty big for fossil discoveries so they’re made it a point of tourism.  It was no Drumheller, but it was still pretty sweet.

We figure the tourism angle Erenhot is taking is probably mostly for the domestic sector as being the only white kids in town turned us into instant stars. Everybody wanted pictures with us.

The cab driver then drove us some 25 km’s out to the kissing dinosaurs that guard the city limits. Unsubstantiated fact #3723: the city is lobbying to Guinness World Records to have them officially recognised as the worlds largest dinosaur statue(s?).

From Erenhot it was another 12 or so hours by overnight train up to Ulaan Baator. Surprisingly Mongolia has a lot more undulating landscape than we were expecting, and also we saw a fair bit of snow around the place. It was by no means complete coverage, but still weird to see.

We killed time in much the same way as the last trip, but this time we debated whether you could fit (ie. smuggle) a person in the overhead luggage compartment. I was pretty sure it wasn’t possible, but Damien was out to prove me wrong. For what I expect was only the second or third time I have ever been wrong in my life, Damien proved that it_ was_ possible, but with hilarious pictures to prove it so I’m ok with losing that round.

None of us really knew what to expect of Mongolia or its capital, UlaanBaatar, but what we got is not at all what we expected. The city is fairly modern and there are European and Soviet influences all over the joint. They’re super proud of Genghis Khan (locally he’s known as Chiingis), and there are statues of him all over the place.

Back to the Soviet influence, there are monuments to Lenin and the like, with a big communist statue and mosaic on the hillside overlooking the city.

    There was also a giant gold buddha on the mountain

From Lenin to Lennon, Damien and I also stumbled upon a homage to The Beatles. It doesn’t make much sense, but Beatles, YAY! I guess?

It snowed here a little overnight, and it’s a sign of how damn cold it’s been getting here. It shouldn’t really surprise me, but I thought I had left the worst of winter behind me back in Canada. Our hostel hooked us up with a driver who took us all out to the national park which wasn’t all too amazing, but it was cool to see a more natural and traditional style mongolia.

    A bit of snow outside our hostel.

After that our driver took us to a massive monument to Genghis Khan in the middle of nowhere. He is huge! Something like 41 metres tall.

    Giant boot... just because.

Our time in Mongolia is now almost up, tomorrow we set our sights on Russia.

repository: mikeolivotto/happy-seizure

gha_language: SCSS

repo_name: mikeolivotto/happy-seizure


text:
# CakePHP Queue Plugin

[![Latest Stable Version](https://poser.pugx.org/token27/cakephp-queue-plugin/v/stable.svg)](https://packagist.org/packages/token27/cakephp-queue-plugin)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.2-8892BF.svg)](https://php.net/)
[![License](https://poser.pugx.org/token27/cakephp-queue-plugin/license)](https://packagist.org/packages/token27/cakephp-queue-plugin)
[![Total Downloads](https://poser.pugx.org/token27/cakephp-queue-plugin/d/total)](https://packagist.org/packages/token27/cakephp-queue-plugin)
[![Coding Standards](https://img.shields.io/badge/cs-PSR--2--R-yellow.svg)](https://github.com/php-fig-rectified/fig-rectified-standards)

This branch is for use with **CakePHP 4.0+**.

## Background

This is a very simple and minimalistic job queue (or deferred-task) system for CakePHP.
If you need a very basic PHP internal queue tool, this is definitely an option.

The plugin is an attempt to provide a basic, simple to use method to enable deferred job execution,
without the hassle of setting up or running an extra queue daemon, while integrating nicely into
CakePHP and also simplifying the creation of worker scripts.
You can also easily provide progress and status information into your pages.

### Why use deferred execution?

Deferred execution makes sense (especially in PHP) when your page wants to execute tasks, which are not directly related to rendering the current page.
For instance, in a BBS-type system, a new users post might require the creation of multiple personalized email messages,
notifying other users of the new content.
Creating and sending these emails is completely irrelevant to the currently active user, and should not increase page response time.
Another example would be downloading, extraction and/or analyzing an external file per request of the user.
The regular solution to these problems would be to create specialized cronjobs which use specific database states to determine which action should be done.

The Queue plugin provides a simple method to create and run such non-user-interaction-critical tasks.

Another important reason is that specific jobs can be (auto)retried if they failed.
So if the email server didn't work the first time, or the API gateway had an issue, the current job to be executed isn't lost but kept for rerun. Most of those external services should be treated as failable once every x calls, and as such a queue implementation can help reducing issues due to such failures. If a job still can't finish despite retries, you still have the option to debug its payload and why this job cannot complete. No data is lost here.

While you can run multiple workers, and can (to some extent) spread these workers to different machines via a shared database, you should consider using a more advanced system for high volume/high number of workers systems.

## Installation and Usage
See [Documentation](docs).


text:
Mirkat

    SSH self spreading worm written in python3 to propagate a botnet.

----

> # Install tutorial.

```
cd ./script && sh setup.sh
```

> # Support me.

* ⚠ If this repository was empty, its because the project stay in **developpement**.
* Thanks for looking at this repository, if you like to press the ⭐ button!
* Made with 💖 by [Vichy](https://github.com/Its-Vichy).
* RCΛ Love u.

    Informations


text:
# manna

## Definition:

Manna was a white, grain-like food that God provided for the Israelites to eat during the 40 years of living in the wilderness after they left Egypt.

* Manna looked like white flakes which appeared each morning on the ground under the dew. It tasted sweet, like honey.
* The Israelites gathered the manna flakes every day except on the Sabbath.
* On the day before the Sabbath, God told the Israelites to gather twice the amount of manna so they wouldn’t have to gather it on their day of rest.
* The word “manna” means “what is it?”
* In the Bible, manna is also referred to as “bread from heaven” and “grain from heaven.”

## Translation Suggestions

* Other ways to translate this term could include “thin white flakes of food” or “food from heaven.”
* Also consider how this term is translated in a Bible translation in a local or national language. (See: [How to Translate Unknowns](../../translate/translate-unknown))

(See also: [bread](../other/bread.md), [desert](../other/desert.md), [grain](../other/grain.md), [heaven](../kt/heaven.md), [Sabbath](../kt/sabbath.md))

## Bible References:

* [Deuteronomy 8:3](rc://en/tn/help/deu/08/3)
* [Exodus 16:27](rc://en/tn/help/exo/16/27)
* [Hebrews 9:3-5](rc://en/tn/help/heb/09/03)
* [John 6:30-31](rc://en/tn/help/jhn/06/30)
* [Joshua 5:12](rc://en/tn/help/jos/05/12)

## Word Data:

* Strong’s: [[H4478]], [[G03131]]

repository: mandolyte/uw-obsidian

repo_name: mandolyte/uw-obsidian


text:
# Contributing guidelines

### Contributing A Patch

1. Submit an issue describing your proposed change to the repo in question.
2. If your proposed change is accepted you can fork, develop and test your code changes.
3. If it's possible add unit-tests and e2e tests. Please check your code style by running
   ```
   flake8 kubernetes_asyncio/
   isort --diff kubernetes_asyncio/
   ```
4. Submit a pull request.

### Parts Generated By OpenAPI Generator ###

There are lot of files wich are generated by [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) based on [Kubernetes API OpenAPI Spec](
https://github.com/kubernetes/kubernetes/tree/master/api/openapi-spec). You can determine generated files by reading a preamble of file, there is a notice that the file is auto-generated. If you need to change such file you will probably need to update the generator or the spec first. If it's not possible in your case you can create "patch" to apply in the generating script (scripts/update-client.sh).

### Adding Dependencies

If your patch depends on new packages, add those packages to [requirements.txt](requirements.txt) and [setup.py](setup.py).

### Rebuild Client

This client is built (as other Kubernetes clients) by scripts from [kubernetes-client/gen](https://github.com/kubernetes-client/gen).
These scripts prepare a docker image with preinstalled tools (eg. openapi-generator).
It's time consuming but finally this image is cached on your local machine and next regenerations will work smoothly.

To simplify set up the environment here is a script named `scripts/update-client.sh` which clones
[kubernetes-client/gen](https://github.com/kubernetes-client/gen) and launches regenerating process.

gha_language: Python


text:
# If you run docker on mac os x, get the IP address to the virtualbox middleware, which is the one you need to connect to to view the webpage.
# Other OS can utilize localhost:<port> or whatever is available.

- `docker build -t onlineweb4 .`  build from scratch
- `docker-compose up -d`  run ow4 (runserver) (-d = detached)

- `docker run web python manage.py <django cmd>`  # run django commands from host, e.g. `migrate`

branch_name: refs/heads/develop


text:
# Submit an Issue

###### Last updated March 15, 2018

:::

##### Found a Bug?

Before you [submit an issue](https://github.com/HealthCatalyst/Fabric.Cashmere/issues), search the archive. Maybe your question was already answered.

If your issue appears to be a bug and hasn't been reported, open a new issue. Help us maximize the effort we spend fixing issues and adding new features by not reporting duplicate issues. Providing the following information increases the chances your issue is dealt with quickly:

-   **Overview of the issue**. If an error is being thrown, a non-minified stack trace helps.
-   **Angular and Cashmere version**. Note which versions are affected.
-   **Motivation or use case**. Explain what you are trying to do and why the current behavior is a bug for you.
-   **Browsers and operating systems**. Answer "Is this a problem with all browsers?"
-   **Reproduce the error**. Provide a live example (using CodePen, JsBin, Plunker, etc.) or a unambiguous set of steps.
-   **Screenshots**. Due to the visual nature of Cashmere, screenshots help the team triage issues far more quickly than a text description.
-   **Related issues**. Answer "Has a similar issue been reported before?"
-   **Suggest a fix**. If you can't fix the bug yourself, point to what might be causing the problem (e.g., a line of code or commit).

Even better, submit a pull request with a fix!
:::

:::

##### Want a Feature?

Request a new feature by submitting an issue to our [GitHub Repository](https://github.com/HealthCatalyst/Fabric.Cashmere/issues). If you would like to implement a new feature, please submit an issue with a proposal for your work first to be sure we can use it. Please consider what kind of change it is:

-   For a major feature, first open an issue and outline your proposal so it can be discussed. This also allows us to better coordinate our efforts, prevent duplicate work, and help you craft the change so it is successfully accepted into the project.
-   Small features can be crafted and directly submitted as a pull request.

:::

branch_name: refs/heads/dev


text:
# Data

Files :

* plane_based_Observations.xlsx --> observations
	Worksheet 1 : contains data obtained when measuring the height of two checkerboards (top and bottom)
	Worksheet 2 : contains height of one checker
	Worksheet 3 : contains the data when the camera was tilted. this data was created to find that the distance given by camera is parallel to camera plane or not.
	Worksheet 4 : nomral height measurement data
	Worksheet 5 and 6 :  contains data collected for distance measurement and variation of data in a specific block. From this we created the iterate function to reach to proper distance value over a given area.

* Recent_Observations.xlsx -->
	Updated version of plane_based_Observations.
	Worksheet 1-5 are same.
	Worksheet 6 : Contains the data for human distance measurement
	Worksheet 7 : contains data when the subject head was moving.

* record_15.pkl--> Contains recorded data of 15 frames. contains depth and color image.

repository: adityavyasbme/HeightMeasurement

repo_name: adityavyasbme/HeightMeasurement


text:
# RoomieReloaded
Zimbra room booking overview.

## Build/Start with docker
docker-compose up -d
(will take some time at the first run)

## Build/Start/Develop with Visual Studio oder Jetbrains Rider
Install dotnet core SDK (https://dotnet.microsoft.com/download) matching your OS
Install npm (should work with versions 5.6.0+)
Open solution in Visual Studio or Jetbrains Rider and start the app

Visual Studio Code also works, should automatically detect the solution when the folder is opened and ask to install C# development tools.

## To decouple frontend development from Visual Studio / Jetbrains Rider
To use another editor for frontend development and still have the backend running in debug mode, just start the app from visual studio or Rider. After that, open the client app folder in your favourite editor.

It should also be possible to start the app with docker and feed it the development folder instead of the built app, but I have not yet tested it. The Dockerfile as is won't work here, as it does a "dotnet publish", which builds the frontend app.

## Configuration
To overwrite local configuration, follow these steps:

1. Create a new file "appsettings.local.json" (will be loaded last if its present)
2. Copy this into the file:
{
  "Zimbra": {
    "Host": "",
    "UserName": "",
    "Password": ""
  },
  "Rooms": [
    {
      "Name": "",
      "Mail": "",
      "NiceName": ""
    }
  ]
}
3. Update Zimbra connection info and add rooms. "Name" is the room's internal name, "Mail" the rooms email address and "NiceName" the string that will be shown in the UI.
4. DO NOT check in appsettings.local.json and/or remove it from .gitignore

repository: hiersekornc/RoomieReloaded

repo_name: hiersekornc/RoomieReloaded


text:
Self-contained sample applications for Algernon
===============================================

Give an .alg file as the first argument to algernon to run it.

* `first.alg` just displays a simple message
* `withplugins.alg` runs a Go plugin (compiled for 64-bit Linux)

(`.alg` files are `.zip` files, just like `.war` files for Java)


text:
---
layout: post
date:	2013-01-24 16:58:00
title:  Permanence and Transience...
tags: [archived-posts]
categories: archives
permalink: /:categories/:year/:month/:day/:title/
---
On the banks of Kunigal Dodda Kere (big lake), I found the age-old temple of Someshwara, and on the gopura, which has stood for centuries, I found this already broken wasps' nest:

It made me muse on what is permanent,and what is transient...the reality of the matter is that this gopura, the land on which it stands, and the earth on which we are...are all, in their time, as transient as the paper crescents and the honeycomb cells of the wasps' nest...

My life is short, compared to an ocean's or a planet's; long, compared to the termite which flies out at dusk after rain, and dies in a few hours....all creation, I think, is just a drop falling into the infintie sea of the Universe. What, then, IS permanent? I do not now...and as I turn to other matters, my transient thoughts, too, pass away....


text:
# Quay Installation

Installation steps for Quay Registry, Quay Container Storage, and Quay Bridge.

## Prerequisites

Make sure OCS is installed.

1.  Install the OpenShift Container Storage operator through OperatorHub

2.  Create storage class

```
oc apply -f ./storage.yaml
```

## Install Quay

1.  Install the Quay operator through OperatorHub

2.  Create namespace for registry

```
oc new-project quay-registry
```

3.  Create Quay registry, this takes a few minutes

```
oc create -f ./quay.yaml

# this command will give you the Quay endpoint
oc describe QuayRegistry quay-registry -n quay-registry | yq e ".Status" - | grep 'Registry Endpoint' | sed 's/Registry Endpoint: //g'
```

4.  Open the Quay endpoint in a new url and create a new user and set a password, rest of steps assuming this quay endpoint is `https://quay-registry-quay-quay-registry.apps.cluster-b6a3.b6a3.sandbox1438.opentlc.com`

## Install Quay Container Security Operator

1.  Install the Quay Container Security Operator through the OperatorHub

## Install Quay Bridge Operator

### Installation

1.  Create organization in Quay, call it `openshift`

2.  Create New Token

    Go to `https://quay-registry-quay-quay-registry.apps.cluster-b6a3.b6a3.sandbox1438.opentlc.com/organization/openshift?tab=applications` and create a new application.  Give it all the permissions and agree to everything.  You will then get a single token.  Copy it.

3.  Create secret with token you copied

```
# assuming token is nNyomNGEfIHIBCesUzrYfIAkmAhwzOVh9C2Vvli4
oc create secret generic quay-integration -n openshift-operators --from-literal=token=nNyomNGEfIHIBCesUzrYfIAkmAhwzOVh9C2Vvli4
```

4.  Create Webhook

```
oc create -f ./quay-webhook.yaml
```

5.  Generate Cert

```
./webhook-create-signed-cert.sh --namespace openshift-operators --secret quay-bridge-operator-webhook-certs --service quay-bridge-operator
```

6.  Get generated Cert

```
oc get configmap -n kube-system \
   extension-apiserver-authentication \
   -o=jsonpath='{.data.client-ca-file}' | base64 | tr -d '\n'
```

7.  Apply Cert

Using the value you obtained above, replace `caBundle` from the `quay-mutating-webhook.yaml` file.  Then apply it.

```
# replace caBundle value
oc create -f ./quay-mutating-webhook.yaml
```

8.  Install Quay Bridge Operator through the OperatorHub.  Wait a few minutes for this to complete.

9.  Create namespace for watching.  In this case we will name it `hello`

```
oc new-project hello
```

10.  Modify Quay Hostname and Apply

```
# replace `quayHostname` in `quay-integration.yaml` with yours
oc apply -f ./quay-integration.yaml
```

### Fix Certs

1. Download certificate

   I generally use Chrome.  The filename will be something like<EMAIL_ADDRESS>
2. Generate `crt` file from `cer` file

```
openssl x509 -inform DER -in<EMAIL_ADDRESS>-out cert.crt
```

3. Add Cert to OCP as a configmap named `registry-cas`

```
oc create configmap registry-cas -n openshift-config --from-file=quay-registry-quay-quay-registry.apps.cluster-b6a3.b6a3.sandbox1438.opentlc.com=cert.crt
```

4. Patch OCP to include this new cert

```
oc patch image.config.openshift.io/cluster --patch '{"spec":{"additionalTrustedCA":{"name":"registry-cas"}}}' --type=merge
```

5.  Verify the change was correct

```
oc edit image.config.openshift.io/cluster
```

6.  Add this cert to the CSO

```
oc create secret generic container-security-operator-extra-certs --from-file=cert.crt -n openshift-operators
```

7.  Restart the CSO Operator pod, changes won't mount inside the running pod

### Add Cert to Local Machine - Mac Only

To add the certificate to your local keychain means you'll be able to push the image directly into your Quay instance.

1.  Add cert to keychain

```
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ./cert.crt
```

2.  Restart docker

3.  Login to quay registry

```
docker login quay-registry-quay-quay-registry.apps.cluster-b6a3.b6a3.sandbox1438.opentlc.com
```

repository: jkeam/quay-installation

repo_name: jkeam/quay-installation


text:
# Landing Page Project

In this project, you will find a landing page displaying four sections.

## Features

- Each section can be accessed by clicking on the dynamically created navigation or by scrolling through the page.
- When a section is visible or it's in the viewport, a random linear gradient background is added to specify that the section is active, and the navigation link will also have a black background.
- The navigation bar will be hidden when you're not scrolling.
- When scrolling below the hero, a return to top button will appear.

## Demo

https://lauraeromerod.github.io/udacity-landingpage/

## Feedback

If you have any feedback, please reach out to me at<EMAIL_ADDRESS>
## License

MIT License

Copyright (c) [2021] [Elena Romero]

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.

repository: lauraeromerod/udacity-landingpage

repo_name: lauraeromerod/udacity-landingpage


text:
# React Image Finder
This is a image finder app built with React, Material-ui and the Pixabay api.

### Installing

Install dependencies

```
npm install
```

Start the server

```
npm start    Served on localhost:8080
```

Build for production

```
npm run build
```

## Built With

* [React js](https://reactjs.org)
* [Material-ui](https://material-ui.com)
* [Pixabay api](https://pixabay.com)

## Author

 **Jimmy Landron**

## License

This project is licensed under the MIT License

repository: jimmylandron/react-image-finder

repo_name: jimmylandron/react-image-finder


text:
#Design-migration

![Platforms](https://img.shields.io/badge/platform-Windows|MacOS-lightgray.svg)
![.NET](https://img.shields.io/badge/.NET%20Core-3.1-blue.svg)
[![License](http://img.shields.io/:license-MIT-blue.svg)](http://opensource.org/licenses/MIT)

[![Design-Automation](https://img.shields.io/badge/Design%20Automation-v3-green.svg)](http://developer.autodesk.com/)
![Inventor](https://img.shields.io/badge/Inventor-2021-yellow.svg)

# Description

Design migration is a web application that migrates other CAD files into Inventor files. It also visualize the migrated file using "Forge Viewer" API. Other CAD files like CATIA, Solidworks, Unigraphics NX, Step, IGES, STL files etc., are migrated into Inventor files (Note: Still, working on creo files to migrate). This project is wokring only for part files and extended to work for assembly files shortly.

## Thumbnail

![thumbnail](thumbnail.gif)

# Setup

## Prerequisites

1. **Forge Account**: Learn how to create a Forge Account, activate subscription and create an app at [this tutorial](http://learnforge.autodesk.io/#/account/).
2. **.NET Core** basic knowledge with C#
3. **ngrok**: Routing tool, [download here](https://ngrok.com/).

## Running locally

Clone this project or download it. It's recommended to install [GitHub desktop](https://desktop.github.com/). To clone it via command line, use the following (**Terminal** on MacOSX/Linux, **Git Shell** on Windows):

    git clone https://github.com/chandra6ma/design-migration

**ngrok**

When a `Workitem` completes, **Design Automation** can notify our application. As the app is running locally (i.e. `localhost`), it's not reachable from the internet. `ngrok` tool creates a temporary address that channels notifications to our `localhost` address.

After downloading [ngrok](https://ngrok.com/), run `ngrok http 3000 -host-header="localhost:3000"`, then copy the `http` address into the `FORGE_WEBHOOK_URL` environment variable. For this sample, do not use the `https` address.

![](https://github.com/Autodesk-Forge/learn.forge.designautomation/blob/master/media/webapp/ngrok_setup.png)

# Further Reading

Documentation:

- [Design Automation v3](https://forge.autodesk.com/en/docs/design-automation/v3/developers_guide/overview/)
- [Learn Forge Tutorial](https://learnforge.autodesk.io/#/tutorials/modifymodels)

Other APIs:

- [.NET Core SignalR](https://docs.microsoft.com/en-us/aspnet/core/signalr/introduction?view=aspnetcore-2.2)

## License

This sample is licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT). Please see the [LICENSE](LICENSE) file for full details.

## Written by

Chandrashekar G, [Developer Technical Consultant](http://forge.autodesk.com)

repository: MadhukarMoogala/design-migration

repo_name: MadhukarMoogala/design-migration


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

### Description

Mozilla Netscape Portable Runtime (NSPR) before 4.10.6 allows remote attackers to execute arbitrary code or cause a denial of service (out-of-bounds write) via vectors involving the sprintf and console functions.

### POC

#### Reference
- http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
- http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html

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

repository: trickest/cve

gha_language: HTML

repo_name: trickest/cve


text:
### CSR Generator

Sample usage od RSA Utils from https://github.com/alapierre/java-commons - you need clone and install it first.

Simple GUI to generate Certificate Requests and apply them to generated keys.

If you want use Java WebStart to run this GUI, you can use https://openwebstart.com/ or Oracle Java 8.
WebStart support was deprecated in Oracle JDK / JRE distributions with Java 9 and removed in Java 11.

This app needs JavaFx - which is not part od OpenJdk by default. You need use https://openjfx.io

JavaFx can be install on Linux simply by:

```
sudo apt-get install openjfx
```

Read mere here: https://stackoverflow.com/questions/18547362/javafx-and-openjdk

repository: alapierre/pki-csr-generator

gha_language: Java

repo_name: alapierre/pki-csr-generator


text:
---
layout: post
cover: 'assets/images/bluetooth_ubuntu_1.jpg'
title: Ralink RT 3290 bluetooth kernel module for linux
date:   2017-12-23 00:00:00
tags: DevOps
subclass: 'post tag-fiction'
categories: 'casper'
navigation: True
logo: 'assets/images/home.png'
---

Bluetooth has been a pain point on my Ubuntu from the start. I did not mind it but now having recently bought a wireless earphones it irks me. A large part of the community suffers from this problem with the Ralink RT 3290 card. WiFi works fine but Bluetooth is always disabled under settings.

Turns out the installed driver for RT 3290 card is buggy and we are better off using a third party one. Download the latest release of the [driver](https://github.com/loimu/rtbth-dkms). Unzip it. I put the source on Desktop.

- Update package lists and install kernel header files.

		sudo apt-get update
		sudo apt-get install build-esspeential linux-headers-generic

- Now in our directory (I put it in `~/Desktop/rtbth-dkms-3.9.5`) where we unzipped the source run the following commands

		make
		sudo make install

- Put the source in `/usr/src`

		sudo cp -r ~/Desktop/rtbth-dkms-3.9.5 /usr/src/rtbth-3.9.5

- Dynamically install kernel module

		sudo dkms install rtbth/3.9.5

- Lastly ask the kernel to load the module at boot time. Add `rtbth` at the end of the file and save it.

		sudo vim /etc/modules

- Reboot your machine.

This got my bluetooth working. Hopefully it will get yours to work too! Time to enjoy a movie with my earphones XD.

Ref: [askubuntu](https://askubuntu.com/questions/778615/ralink-rt-3290-bluetooth-problem-on-ubuntu-16-04)

Credits: [blaze](https://github.com/loimu), [N.Sinha](https://askubuntu.com/users/703994/n-sinha)

gha_language: CSS


text:
# ECS

Setup ECR, ECS and CodePipeline.

## 1. Build CDK project

```shell
npm run build
cdk synth
```

## 2. Create ECR

```shell
cdk deploy 'ecr-service-*'
```

## 3. Build and push to ECR

```shell
cd service-js
follow push commands

cd service-py
follow push commands
```

## 4. Create ECS

```shell
cdk deploy ecs
```

repository: sonufrienko/experiment-aws

repo_name: sonufrienko/experiment-aws


text:
WikiDragon is a creative collaboration engine, a way for users to create and remix Free IP.

Installation
============
You need to have an operational Ruby on Rails (2.2.2) environment to run WikiDragon.  If you don't start at http://rubyonrails.org.

1. Download: git clone git://github.com/onesunone/wikidragon.git
2. In a terminal window, change to the wikidragon directory.
3. Execute 'rake db:migrate'
4. Execute 'script/server'
5. Browse to http://localhost:3000 -- you should see WikiDragon.

Inspiration
===========
Read about [the ideas behind WikiDragon][wd].

Disclaimer
==========
This was my first rails app as a newbie, so it's clunky in places, but works fine.

[wd]: http://enlightenedstructure.info/pub/WikiDragon

repository: ebryn/wikidragon

extension: markdown

repo_name: ebryn/wikidragon


text:
# Portfolio_Template
Portfolio mobile version
<img src="template5Images/20210814_111337.jpg" width="350">

![](https://img.shields.io/badge/Microverse-blueviolet)

# Brahim didi's Portofolio

Welcome to my Portofolio Mobile version.

## Built With

- Major languages : HTML/CSS;
- IDE : VisualStudio Code;
- Web Browsers :  Google Chrome;

### Testing

- Microverse Linters

### Prerequisites

- Web browser
- Code editor

### Setup

- Download the repository.
- Open the index file with your browser.
### Install

- Not needed

### Author
Brahim didi

## Show your support

Give a ⭐ if you like this project!

## Acknowledgments
- [@Figma](https://www.Figma.com) for the template

A


text:
# Abstracts

The `abstracts/` folder gathers all Sass tools and helpers used across the project. Every global variable, function, mixin and placeholder should be put in here.

The rule of thumb for this folder is that it should not output a single line of CSS when compiled on its own. These are nothing but Sass helpers.

* `_variables.scss`
* `_mixins.scss`
* `_functions.scss`
* `_placeholders.scss`

When working on a very large project with a lot of abstract utilities, it might be interesting to group them by topic rather than type, for instance typography (`_typography.scss`), theming (`_theming.scss`), etc. Each file contains all the related helpers: variables, functions, mixins and placeholders. Doing so can make the code easier to browse and maintain, especially when files are getting very long.

The `abstracts/` folder might also be called `utilities/` or `helpers/`, depending on what you prefer.

## Structure

```
styles/
|
|– abstracts/
|   |– _variables.scss    # Sass Variables
|   |– _functions.scss    # Sass Functions
|   |– _mixins.scss       # Sass Mixins
|   |– _placeholders.scss # Sass Placeholders
```

## Source

[https://sass-guidelin.es](https://sass-guidelin.es/?utm_source=CSS-Weekly&utm_campaign=Issue-145&utm_medium=RSS#architecture)

repository: groupe-sii/clea-cli

gha_language: JavaScript

repo_name: groupe-sii/clea-cli


text:
# `inc` Usage and options

Increment the version number in both the `bower.json` and `package.json` files.

_Warning: this package assumes that the version is always a valid [SEMVER](https://semver.org/)._

## Usage

Following the rules of [SEMVER](https://semver.org/), increment the
version of your repo consistently across files without having to do any math yourself!

```sh
inc [major | minor | patch]
```
The following are guidelines to knowing how to change the version:

> - `major` version when you make incompatible API changes,
> - `minor` version when you add functionality in a backwards-compatible manner, and
> - `patch` version when you make backwards-compatible bug fixes.
>
> [From [semver.org](https://semver.org/#summary)]

## Examples

Say you add a new function that is still backwards compatible with previous
versions. Just run the following and the tool will update both the bower and
package files.

```
inc minor

# Outputs:
#    Moving 1.1.8 --> 1.2.0
#    bower.json updated.
#    package.json updated.
```

If you run `inc` with out specifying a type of change, you will get the following
menu:

```
Current Version is 1.1.8, What should I make the the new release to be? (enter option number)
        1 - Major: 2.0.0
        2 - Minor: 1.2.0
        3 - Patch: 1.1.9
```

Enter `2` for a minor change and so on.

repository: kyle-west/bashful

gha_language: Shell

repo_name: kyle-west/bashful


text:
# Alexa (& Friends) Reminders & Talking Clock :chicken:

[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/custom-components/hacs)

## New Features and Updates - v3.0
### User Defined Reminders
Let Alexa be your personal assistant and give you personal reminders. Reminder Schedule can be Daily, Weekdays, Weekends, or Mon, Tue, Wed, Thu, Fri, Sat, Sun
### Local Language
Time Alerts and Reminders in your Local Language
### Sonos Support
Set bell:false and remove the voice effects section (kudos to @5and0)
### Whisper, Pitch, Volume, Rate and Bell Controls
Set "Bell" to False and "Rate" to 50 for a creepy announcement. Awesome for Halloween, or just to scare someone!
### Multiple Speakers
Target multiple speakers in your home with one app

NOTE: :boom:**Please update your apps.yaml with the new configuration structure**:boom:

Amazon Alexa, Google Home, Sonos (or other smart speakers) will keep on reminding you of the time from morning till night and also courteously greet with a good morning, good afternoon, and a good night & sweet dreams all without you having to lift a finger (or speak a word). Sweet!

Please ⭐ this repo if you like my work and also check out my other repos like
- [Home Assistant 'STEROIDS' Configuration](https://github.com/UbhiTS/ha-config-ataraxis)
- [Alexa (& Friends) Reminders & Talking Clock](https://github.com/UbhiTS/ad-alexatalkingclock)
- [Alexa (& Friends) Doorbell](https://github.com/UbhiTS/ad-alexadoorbell)
- [Alexa (& Friends) Door/Window Announce](https://github.com/UbhiTS/ad-alexadoorwindowannounce)
- [Alexa (& Friends) Smart Talking Thermostat](https://github.com/UbhiTS/ad-alexasmarttalkingthermostat)
- [Auto 'Crappy Internet' Rebooter](https://github.com/UbhiTS/ad-autointernetrebooter)

Also, if you want to see a walkthrough of my Home Assistant configuration, I have my video walkthrough on youtube below
- [Home Automation on 'STEROIDS' : Video Walkthrough](https://youtu.be/qqktLE9_45A)

## Installation
**Needs the [Alexa Media Player or Sonos](https://github.com/custom-components/alexa_media_player) integration**

Use [HACS](https://github.com/custom-components/hacs) or [download](https://github.com/UbhiTS/HASS-AlexaTalkingClock/tree/master/apps/alexa_talking_clock) the `alexa_talking_clock.py` from inside the `apps` directory to your local `apps` directory, and add the following configuration to enable the app.

## App Configuration (config/appdaemon/apps/apps.yaml)

```yaml
alexa_talking_clock:
  module: alexa_talking_clock
  class: AlexaTalkingClock
  alexas:
    - media_player.kitchen_alexa
    - media_player.master_bedroom_alexa
  announcements:
    bell: true  # for SONOS, set to False
    start_time: "07:30:00"
    end_time: "21:30:00"
    half_hour: true
    quarter_hour: true
    default_speech: "It's {time}." # {day} {date} and {time} can be used. Can be defined in your local language
  voice: # for SONOS, remove this section
    volume_offset: 0 # -40 to 4, default 0
    pitch_offset: 0 # -33 to 50, default 0
    rate: 100 # 20 to 250, default 100
    whisper: false
  reminders:
    # daily
    - schedule: "daily, 07:30:00"
      reminder: "Good morning. Today is {day}, {date}, and it's {time}."
    - schedule: "daily, 12:00:00"
      reminder: "Good afternoon. Today is {day}, {date}, and it's {time}."
    - schedule: "daily, 17:00:00"
      reminder: "Good evening. It's {time}."
    - schedule: "daily, 21:30:00"
      reminder: "It's {time}. Good night. And sweet dreams."
    # weekdays
    - schedule: "weekdays, 09:30:00"
      reminder: "It's {time}. Quick reminder. Did you go to gym today?"
    # weekends
    - schedule: "weekends, 09:30:00"
      reminder: "It's {time}. Question. Are you planning to go for a run or a hike today?"
    # mon, tue, wed, thu, fri, sat, sun
    - schedule: "tue, 21:00:00"
      reminder: "It's {time}. Quick Reminder. Did you take out the garbage?"
    - schedule: "wed, 09:30:00"
      reminder: "It's {time}. What day is it? It's Hump Day! Yaaaay!"
    - schedule: "fri, 04:30:00"
      reminder: "The weekend is almost here. Better plan it now, or waste it forever!"
  debug: false
```

key | optional | type | default | description
-- | -- | -- | -- | --
`module` | False | string | alexa_talking_clock | The module name of the app.
`class` | False | string | AlexaTalkingClock | The name of the Class.
`alexas` | True | list | # alexa_media_players # | The Alexa (or Sonos) to target for the time reminder speech.
`announcements\|bell` | True | bool | True | Enable or disable the Alexa announcement bell before the time speech. For Sonos set to False
`announcements\|start_time` | True | time | 07:30 | The time to start announcements. This is in 24h format.
`announcements\|end_time` | True | time | 21:30 | The time to end announcements. This is in 24h format.
`announcements\|half_hour` | True | bool | True | Announce every half hour (It's 8 AM, It's 8:30 AM, It's 9 AM)
`announcements\|quarter_hour` | True | bool | False | Announce every 15 minutes (It's 8 AM, It's 8:15 AM, It's 8:30 AM, It's 8:45 AM, It's 9 AM)
`announcements\|default_speech` | True | text | "It's {time}." | Set the time alert as per your preference and in your **local language**. Remember, you can use  **{day} {date} {time}** placeholders within the text and they will be replaced with actual values when played
`voice\|volume_offset` | True | int | 0 | Set between -40 and 4. Default 0
`voice\|pitch_offset` | True | int | 0 | Set between -33 and 50. Default 0
`voice\|rate` | True | int | 100 | Set between 20 to 250. Default 100
`voice\|whisper` | True | bool | False | Whisper Mode
`reminders\|schedule` | True | schedule, time |  | Reminder Schedule. The frequency can be **daily, weekdays, weekends, mon, tue, wed, thu, fri, sat, sun**
`reminders\|reminder` | True | text |  | The text for Alexa to speak at the defined schedule. You can use **{day} {date} {time}** placeholders within the text and they will be replaced with actual values when played
`debug` | True | bool | False | Announces time instantly when you save the apps.yaml. Also, when set, will not honor start and end times and speak throughout the day and night

## Thank you for your time! (get it ;) :raised_hands:
This app was a result of my amazing wife's request (who is a mother of 2 beautiful princesses BTW) to help her manage her time wisely ;). So this is dedicated to my wife Reena, without whom this world would not be worth my time :)

This also wouldn't be possible without the amazing work done by the developers and community at **[Home Assistant](https://www.home-assistant.io/)**

A very special thanks to **Keaton Taylor** and **Alan Tse** whose work on **[Alexa Media Player](https://github.com/custom-components/alexa_media_player)** was the basis of my inspiration and my work to code all the above listed apps!

Ever since we've set this up in our home, it has become an indispensable part of our lives. It's amazing to see how a simple reminder of the current time in the day can make people more efficient :), I hope this app helps others as it has helped us.

If you like my work and feel gracious, you can buy me a beer below ;)

# License
[Apache-2.0](LICENSE). By providing a contribution, you agree the contribution is licensed under Apache-2.0. This is required for Home Assistant contributions.

repository: UbhiTS/ha-config-ataraxis

repo_name: UbhiTS/ha-config-ataraxis


text:
# encrypted-part-7

My quick and dirty Python solution to the Encrypted challenge by Nigels Life, part 7

Code licensed under [the MIT license](/LICENSE). Ray Bradbury's *Fahrenheit 451* is copyright its original publisher and author. [`451.txt`](/451.txt) is an adaptation of the work from PDF where pages are separated by form feeds `\f` and lines are separated by new lines `\n`.


text:
#The universall medicine, or, The virtues of the magneticall, or antimoniall cup confirmed to be a health-procuring, health-preserving, and health-restoring effectuall medicine by extant monuments of antiquity, by testimonies of Honourable personages, by 100 admirable and rare experiments, by 200 persons of quality that have experienced the same / collected by John Evans ...#

##Evans, John, Minister and preacher of God's word.##
The universall medicine, or, The virtues of the magneticall, or antimoniall cup confirmed to be a health-procuring, health-preserving, and health-restoring effectuall medicine by extant monuments of antiquity, by testimonies of Honourable personages, by 100 admirable and rare experiments, by 200 persons of quality that have experienced the same / collected by John Evans ...
Evans, John, Minister and preacher of God's word.

##General Summary##

**Links**

[TCP catalogue](http://www.ota.ox.ac.uk/tcp/)  •
[HTML](http://tei.it.ox.ac.uk/tcp/Texts-HTML/free/A38/A38771.html)  •
[EPUB](http://tei.it.ox.ac.uk/tcp/Texts-EPUB/free/A38/A38771.epub) •
[Page images (Historical Texts)](https://data.historicaltexts.jisc.ac.uk/view?pubId=eebo-12144129e&pageId=eebo-12144129e-54910-1)

**Availability**

This keyboarded and encoded edition of the
	       work described above is co-owned by the institutions
	       providing financial support to the Early English Books
	       Online Text Creation Partnership. This Phase I text is
	       available for reuse, according to the terms of Creative
	       Commons 0 1.0 Universal. The text can be copied,
	       modified, distributed and performed, even for
	       commercial purposes, all without asking permission.

**Major revisions**

1. __2004-09__ __TCP__ *Assigned for keying and markup*
1. __2004-09__ __Aptara__ *Keyed and coded from ProQuest page images*
1. __2004-10__ __Jonathan Blaney__ *Sampled and proofread*
1. __2004-10__ __Jonathan Blaney__ *Text and markup reviewed and edited*
1. __2005-01__ __pfs__ *Batch review (QC) and XML conversion*

##Content Summary##

#####Front#####

1. TO THE
Honorable and Illustrious Assembly the
Knights, Citizens and Burgesses of the
Commons House of PARLIAMENT.

1. To the Reader.

#####Body#####
A Compendious declaration of the most
admirable Virtues of the Magneticall Cup.1. IT purgeth the bodA Confirmation of the Medicinall Virtues
of the Antimoniall Cup: Collected out of the most
Famous, L
    _ A Confirmation of the Medicinall Virtues
of the Antimoniall Cup: Collected out of the most
Famous, Learned, and best Approved Philosophers
and Physitians, that have
written of that Subject.

    _ The second part.

1. A Table of the Cures done by the Antimoniall
Cup, as they succeed in order.

1. A true Relation of one hundred Admirable
Experiments and Rare Cures, performed upon
severall Persons, of severall Constitutions, Infirmed
with divers and severall Infirmities and diseases, and restored
to perfect health, by the alone Vse and Medicinall
Virtues thereof; faithfully collected
for the confirmation of this Truth.

1. The Manner and Order how to make Vse
of my Magneticall or Antimoniall Cup.

1. The names of such Ancient Philosophers, and Learned Physitians
that have written of the Medicinall Virtues of this
Magneticall or Antimoniall Cup.

**Types of content**

  * There are 4 **verse** lines!
  * Oh, Mr. Jourdain, there is **prose** in there!

There are 12 **ommitted** fragments!
 @__reason__ (12) : illegible (12)  •  @__resp__ (12) : #OXF (12)  •  @__extent__ (12) : 2 letters (1), 1 letter (11)

**Character listing**

|Text|string(s)|codepoint(s)|
|---|---|---|
|Latin-1 Supplement|òèóà|242 232 243 224|
|Combining             Diacritical Marks|̄|772|
|General Punctuation|•|8226|
|Geometric Shapes|▪|9642|

##Tag Usage Summary##

###Header Tag Usage###

|No|element name|occ|attributes|
|---|---|---|---|
|1.|__author__|2||
|2.|__availability__|1||
|3.|__biblFull__|1||
|4.|__change__|5||
|5.|__date__|8| @__when__ (1) : 2005-03 (1)|
|6.|__edition__|1||
|7.|__editionStmt__|1||
|8.|__editorialDecl__|1||
|9.|__extent__|2||
|10.|__idno__|6| @__type__ (6) : DLPS (1), STC (2), EEBO-CITATION (1), OCLC (1), VID (1)|
|11.|__keywords__|1| @__scheme__ (1) : http://authorities.loc.gov/ (1)|
|12.|__label__|5||
|13.|__langUsage__|1||
|14.|__language__|1| @__ident__ (1) : eng (1)|
|15.|__listPrefixDef__|1||
|16.|__note__|4||
|17.|__notesStmt__|2||
|18.|__p__|11||
|19.|__prefixDef__|2| @__ident__ (2) : tcp (1), char (1)  •  @__matchPattern__ (2) : ([0-9\-]+):([0-9IVX]+) (1), (.+) (1)  •  @__replacementPattern__ (2) : http://eebo.chadwyck.com/downloadtiff?vid=$1&page=$2 (1), https://raw.githubusercontent.com/textcreationpartnership/Texts/master/tcpchars.xml#$1 (1)|
|20.|__projectDesc__|1||
|21.|__pubPlace__|2||
|22.|__publicationStmt__|2||
|23.|__publisher__|2||
|24.|__ref__|2| @__target__ (2) : https://creativecommons.org/publicdomain/zero/1.0/ (1), http://www.textcreationpartnership.org/docs/. (1)|
|25.|__seriesStmt__|1||
|26.|__sourceDesc__|1||
|27.|__term__|2||
|28.|__textClass__|1||
|29.|__title__|3||
|30.|__titleStmt__|2||

###Text Tag Usage###

|No|element name|occ|attributes|
|---|---|---|---|
|1.|__abbr__|2||
|2.|__am__|1||
|3.|__bibl__|2||
|4.|__body__|12||
|5.|__closer__|14||
|6.|__desc__|12||
|7.|__div__|23| @__type__ (23) : title_page (1), dedication (1), to_the_reader (1), list (1), part (3), subpart (2), document (12), table_of_cures (1), lists (1)  •  @__n__ (2) : 1 (1), 2 (1)|
|8.|__epigraph__|1||
|9.|__ex__|1||
|10.|__expan__|1||
|11.|__floatingText__|12| @__xml:lang__ (12) : eng (0)|
|12.|__g__|531| @__ref__ (531) : char:EOLhyphen (504), char:punc (16), char:cmbAbbrStroke (10), char:abque (1)|
|13.|__gap__|12| @__reason__ (12) : illegible (12)  •  @__resp__ (12) : #OXF (12)  •  @__extent__ (12) : 2 letters (1), 1 letter (11)|
|14.|__head__|14| @__type__ (1) : sub (1)|
|15.|__hi__|265| @__rend__ (3) : sup (3)|
|16.|__item__|328||
|17.|__l__|4||
|18.|__list__|10||
|19.|__p__|169||
|20.|__pb__|66| @__facs__ (66) : tcp:54910:1 (2), tcp:54910:2 (2), tcp:54910:3 (2), tcp:54910:4 (2), tcp:54910:5 (2), tcp:54910:6 (2), tcp:54910:7 (2), tcp:54910:8 (2), tcp:54910:9 (2), tcp:54910:10 (2), tcp:54910:11 (2), tcp:54910:12 (2), tcp:54910:13 (2), tcp:54910:14 (2), tcp:54910:15 (2), tcp:54910:16 (2), tcp:54910:17 (2), tcp:54910:18 (2), tcp:54910:19 (2), tcp:54910:20 (2), tcp:54910:21 (2), tcp:54910:22 (2), tcp:54910:23 (2), tcp:54910:24 (2), tcp:54910:25 (2), tcp:54910:26 (2), tcp:54910:27 (2), tcp:54910:28 (2), tcp:54910:29 (2), tcp:54910:30 (2), tcp:54910:31 (2), tcp:54910:32 (2), tcp:54910:33 (2)  •  @__rendition__ (3) : simple:additions (3)|
|21.|__q__|14||
|22.|__seg__|3| @__rend__ (3) : decorInit (3)|
|23.|__signed__|13||
|24.|__trailer__|1||


text:
# Change Log

## [0.0.1]

- Initial release

## [0.0.2]

- Add icon and document snippets in README file

## [0.0.3]

- Remove Installation section from README.md as there are no special installation steps required.
- Release Notes in README now only point to this file to avoid managing the same on 2 places

## [0.0.4]

- Updated to support both commonly used Elixir extensions
  - The new [ElixirLS: Elixir support and debugger](https://marketplace.visualstudio.com/items?itemName=JakeBecker.elixir-ls)
  - The old and no longer updated [vscode-elixir](https://marketplace.visualstudio.com/items?itemName=mjmcloug.vscode-elixir)

## [0.0.5]

- Fix the exec_block from `<%- %>` to `<% %>` as it is in documentation
- Add additional trigger `ee` for exec_block `<% %>`

## [0.0.6]

- Add snippet `eex_link_block` with trigger `ltb`

## [0.0.7]

- Merged [#5](https://github.com/stefanjarina/vscode-eex-snippets/pull/5) from @zolrath
  - Adds support for new compliant language identifiers `eex` and `html-eex`

## [0.0.8]

- Merged [#7](https://github.com/stefanjarina/vscode-eex-snippets/pull/7) from @malloryerik
  - Add phoenix-heex and surface support

repository: stefanjarina/vscode-eex-snippets

repo_name: stefanjarina/vscode-eex-snippets


text:
---
title: "Bee bikini top: Fabric Options"
---

### Main and Lining Fabric

The main and lining fabric are the same type of material. Bee is made with swimwear fabrics such as lycras.

<Note>

You only need lining fabric if you intend to make the pattern reversible or if you want the band for the cross back tie variant to be a constrasting fabric. Otherwise you can cut all the required pieces from your main fabric.

</Note>

repository: freesewing/freesewing

repo_name: freesewing/freesewing


text:
# smsblast-frontend

**Note:** This project is now calling `gvoice` directly from the command line rather than the `smsblast` bash script. This will provide better Windows compatibility.

## Prerequisites

- Node.js 0.10.x and up with NPM
- Bower package manager (`npm install -g bower`)
- pygooglevoice (several versions out there, we use https://code.google.com/r/kkleidal-pygooglevoiceupdate/)

## Installation

1. Run `git clone https://github.com/richdunajewski/smsblast-frontend.git`
2. `cd` into the **smsblast-frontend** directory.
3. Run `npm install` to install the Node.js dependencies.
4. `cd` into the assets directory.
5. Run `bower install` to install frontend dependencies.
6. Run `cd ..`
7. Copy **gv_credentials-example.json** to **gv_credentials.json** and update with your Google Voice account information.
8. `node app.js` to start the server.
9. Open http://localhost:7000/ in your browser.
10. Enjoy!

repository: richdunajewski/smsblast-frontend

repo_name: richdunajewski/smsblast-frontend


text:
---
id: 1160
title: More than 7 in 10 road accidents in Nepal are caused by negligent drivers
date: 2016-03-24T22:14:09-04:00
author: codefornepal
layout: revision
guid: https://codefornepal.org/2016/03/1157-autosave-v1/
permalink: /2016/03/1157-autosave-v1/
---
Road accidents in Nepal have increased over the last few years. We looked at a report published by Nepal Police in 2015 to see what causes most accidents in Nepal. More than 7 in 10 accidents in Nepal are caused by negligence of drivers in Nepal, according the data published by Nepal Police. “Data covers the range of July, 2014 to June 2015, provided & verified by PHQ Traffic Directorate.”

There were over 8,700 accidents in Nepal between July 2014 and June 2015. Over 6.600 were caused by negligent drivers. Check out the chart below to see what else caused accidents.

Data source: Nepal Police (PDF)


text:
# WebVid

WebVid-10M is a large-scale dataset of short videos with textual descriptions
sourced from the web. The videos are diverse and rich in their content.

WebVid-10M contains:

* 10.7M video-caption pairs.
* 52K total video hours.

During processing, videos are converted to a fixed resolution, framerate,
and duration. Videos that fail to be processed are dropped.

repository: tensorflow/datasets

repo_name: tensorflow/datasets


text:
# Section III - Data Flow

Provisioning logic will be forever changing, so we need to ...

1. ensure that process is not brittle
2. the workflow is self-guided
3. data records are not bundled

![DaaS Pattern](../.gitbook/assets/event-provisioning.png)

repository: dsietz/tdg-workshop

repo_name: dsietz/tdg-workshop


text:
# Hackathon-2-AV--Credit-Card

**Credit Card Lead Prediction
**
Credit Card Lead Prediction Happy Customer Bank is a mid-sized private bank that deals in all kinds of banking products, like Savings accounts, Current accounts, investment products, credit products, among other offerings.

The bank also cross-sells products to its existing customers and to do so they use different kinds of communication like tele-calling, e-mails, recommendations on net banking, mobile banking, etc.

In this case, the Happy Customer Bank wants to cross-sell its credit cards to its existing customers. The bank has identified a set of customers that are eligible for taking these credit cards.

Now, the bank is looking for your help in identifying customers that could show higher intent towards a recommended credit card, given:

Customer details (gender, age, region etc.) Details of his/her relationship with the bank (Channel_Code,Vintage, 'Avg_Asset_Value etc.)

Dataset Dictionary:
ID: Unique Identifier for a row

Gender: Gender of the Customer

Age: Age of the Customer (in Years)

Region_Code: Code of the Region for the customers

Occupation: Occupation Type for the customer

Channel_Code: Acquisition Channel Code for the Customer (Encoded)

Vintage: Vintage for the Customer (In Months), How old is customer registered with bank

Credit_Product: If the Customer has any active credit product (Home loan,Personal loan, Credit Card etc.)

Avg_Account_Balance: Average Account Balance for the Customer in last 12 Months

Is_Active: If the Customer is Active in last 3 Months

Is_Lead(Target): If the Customer is interested for the Credit Card

 - 0 : Customer is not interested
 - 1 : Customer is interested
My Inferences from Data Dictionary:
Seeing the Data Dictionary, I can very well Conclude the following variables to be of great importance in prediction whether a customer avails for a credit card or not as per the priority:

Credit_Product
Is_Active
Avg_Account_Balance
Occupation
Though other data points can also contribute in prediction, but as far my inference these should be the most important ones.

Let's get the wheels rolling now...........

![image](https://user-images.githubusercontent.com/66025137/122057697-887ebe80-ce08-11eb-8c1d-1d5f9cff1ac7.png)


text:
# Event Loop

The game state is updated on an event loop which ticks 4 times per second. Each tick has a number of states described
here.

## States

### tickStart

This is the start of each tick. Every sprite's `tickStart()` method is called in a random order. The current tick
counter is updated before calling each sprite.

### tickQueue

All events that have been added to the event loop using `EventLoop.queue(atTick())` are called here, once only. Each
event must return a `Promise<any>`, which will be awaited before continuing with the next state.

### tickEnd

This is the end of each tick. Every sprite's `tickEnd()` method is called in a random order.

### tickWait

Any events that have been added to the event loop using `EventLoop.queue(afterMs())` are called here, once only.
Events may only occur at most once per millisecond during this period.

## Adding Events

Events can be added to the event queue using the `EventLoop.queue()` method. The method takes two parameters, the first
specifying when to run the event and the second is a function returning a `Promise<any>`.

The first parameter can be generated using either `afterMs()` or `atTick()`.

`afterMs()` takes a single argument, the number of milliseconds from now to run the event. The event may be delayed and
the callback can check the delay in milliseconds with `moment().valueOf() - event.when.time`.

`atTick()` takes a single argument, the game tick at which to run the event. If the argument is less than or equal to
the current tick number, it will be run on the next game tick (in the `tickQueue` state).

repository: dparrish/rockysboots

repo_name: dparrish/rockysboots


text:
# Events and Announcements (ENA) Portal
<!-- todo change data model to match current model used -->
A web app boilerplate for keeping track of all events and announcements for an organization and displaying them to public users, and allowing admin users to accept requests to host and/or promote events.

## Overview

Running and organization is one thing, getting an organization to be organized is a job in itself. The ENA Portal is a web app for keeping track of all events and announcements for an organization, displaying them, accepting requests to host and/or promote events.

Users are able to view announcements (general or event-based) without logging in. However, if they wish to submit/edit an event (editing of events they submitted), they must sign up/log in. Each event will include statuses of whether they have been approved by the admin office as a viable date to hold the event, or included in the promotional queue.

<!-- Admins who log into the site will have a different view. They will be able to see all announcements and be able to approve or deny the request, put events on postponement with a note of details, and see/edit the announcement queue (based on the admin status).  -->

## Features

<!-- * admin panel - create (or add custom) rsvp codes to db -->
* use a config file for db security

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

* Node
* NPM
* MongoDB

### Installing

```
git clone https://github.com/candacej97/ena_portal.git
cd ena_portal
npm install
npm start
```

## Testing

go to your browser and go to `localhost:3000`

## Built With

* NodeJS
    * express
    * express-session
    * mongoose
    * mongoose-url-slugs
    * hbs
    * path
    * bcryptjs
* MongoDB

## Wireframes

![Public Homepage of the ENA Portal as of 11/07/18](docs/img/home.png?raw=true "Public Homepage of the ENA Portal as of 11/07/18")

![Sign Up page of the ENA Portal as of 11/07/18](docs/img/sign_up.png?raw=true "Sign Up page of the ENA Portal as of 11/07/18")

![Sign In page of the ENA Portal as of 11/07/18](docs/img/sign_in.png?raw=true "Sign In page of the ENA Portal as of 11/07/18")

![User homepage of the ENA Portal as of 11/07/18](docs/img/user_homepage.png?raw=true "User homepage of the ENA Portal as of 11/07/18")

![Add announcement page of the ENA Portal as of 11/07/18](docs/img/add_announcement.png?raw=true "Add announcement page of the ENA Portal as of 11/07/18")

![Edit announcement page of the ENA Portal as of 11/07/18](docs/img/edit_announcement.png?raw=true "Edit announcement page of the ENA Portal as of 11/07/18")

## Site Map

![Site Map of the ENA Portal as of 11/07/18](docs/img/site_map.png?raw=true "Site Map of the ENA Portal as of 11/07/18")

## User Stories or Use Cases

1. as non-registered user, I can register a new account with the site
2. as non-registered user, I can view all the announcements that have been approved by an admin
3. as a user, I can log in to the site
4. as a user, I can submit a new announcement form
5. as a user, I can view all of the announcement forms I've submitted
6. as a user, I can edit my submitted announcement forms
7. as an admin user, I can approve, deny or postpone/delay submitted announcement forms for live view

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgements

* [ExpressJS-Session](https://github.com/expressjs/session) - [my code (line 7-12)](src/app.js#L7)

<!-- * [passport.js authentication docs](http://passportjs.org/docs) - (add link to source code that was based on this) -->


text:
# Project 02 - Books

[![Python Language](https://img.shields.io/badge/language-python-4280B1.svg)](https://python.org)
[![Flask Microframework](https://img.shields.io/badge/framework-Flask-000000.svg)](http://flask.pocoo.org/)
[![PostgreSQL Database](https://img.shields.io/badge/database-PostgreSQL-008FBF.svg)](https://www.postgresql.org/)
[![Heroku Web Hosting Service](https://img.shields.io/badge/web%20hosting%20service-Heroku-79589F.svg)](https://www.heroku.com/)

The full project specification can be found [here](https://cs50.github.io/web/projects/1).

## Requirements

In this project, you’ll build a book review website. Users will be able to register for your website and then log in using their `username` and `password`. Once they log in, they will be able to search for books, leave reviews for individual books, and see the reviews made by other people. You’ll also use the a third-party `API` by [Goodreads](https://www.goodreads.com/api), another book review website, to pull in ratings from a broader audience. Finally, users will be able to query for book details and book reviews programmatically via your website’s `API`.

- **Registration** : Users should be able to register for your website, providing (at minimum) a `username` and `password`.

- **Login** : Users, once registered, should be able to log in to your website with their username and password.

- **Logout** : Logged in users should be able to log out of the site.

- **Import** : Provided for you in this project is a file called `books.csv`, which is a spreadsheet in CSV format of 5000 different books. Each one has an `ISBN nubmer`, a `title`, an `author`, and a `publication year`. In a Python file called `import.py` separate from your web application, write a program that will take the books and import them into your `PostgreSQL` database. You will first need to decide what table(s) to create, what columns those tables should have, and how they should relate to one another. Run this program by running `python3 import.py` to import the books into your database, and submit this program with the rest of your project code.

- **Search** : Once a user has logged in, they should be taken to a page where they can search for a book. Users should be able to type in the ISBN number of a book, the title of a book, or the author of a book. After performing the search, your website should display a list of possible matching results, or some sort of message if there were no matches. If the user typed in only part of a title, ISBN, or author name, your search page should find matches for those as well!

- **Book Page** : When users click on a book from the results of the search page, they should be taken to a book page, with details about the book: its title, author, publication year, ISBN number, and any reviews that users have left for the book on your website.

- **Review Submission** : On the book page, users should be able to submit a review - consisting of a rating on a scale of 1 to 5, as well as a text component to the review where the user can write their opinion about a book. Users should not be able to submit multiple reviews for the same book.

- **Goodreads Review Data** : On your book page, you should also display (if available) the average rating and number of ratings the work has received from Goodreads.

- **API Access** : If users make a GET request to your website’s `/api/<isbn>` route, where `<isbn>` is an ISBN number, your website should return a `JSON` response containing the book’s title, author, publication date, ISBN number, review count, and average score. The resulting `JSON` should follow the format:

````JSON
{
    "title": "Memory",
    "author": "Doug Lloyd",
    "year": 2015,
    "isbn": "1632168146",
    "review_count": 28,
    "average_score": 5.0
}
````
If the requested ISBN number isn’t in your database, your website should return a `404 error`.

## Notes

You should be using **raw SQL commands** (as via `SQLAlchemy`’s execute method) in order to make database queries. You **should not use** the `SQLAlchemy ORM` (if familiar with it) for this project.

In `README.md`, include a **short writeup** describing your project, what’s contained in each file, and (optionally) any other additional useful information about your project.
If you’ve added any `Python` packages that need to be installed in order to run your web application, be sure to add them to `requirements.txt`!

repository: SolangeUG/web-programming

repo_name: SolangeUG/web-programming


text:
W1 - Make me an interactive map
================
Peter Thramkrongart

#### Describe a problem or question in your field for which spatial analysis could be applicable.

Creating emergency evacuation plans for large scale terror attacks or
hot-spot city catastrophes such as large explosions.

#### List 5 data layers that you think are necessary to answer your question/solve your problem. Find on the internet github.and then describe examples of two or three of your listed layers.

###### five layers could be:

1:A vector map of roads.

2:A Vector map of buildings.

3:An overlay heat map of population density.

4:Points of suspected terror objectives or vulnerable catastrophe spots.

5: A Map of building heights.

A wealth of city maps of roads, buildings, elevations and so on is
freely available through Leaflet.

``` r
pacman::p_load(pacman,tidyverse, leaflet,htmlwidgets)#load packages
places <- read_csv("RCFeature.csv")#read data
```

    ##
    ## -- Column specification --------------------------------------------------------
    ## cols(
    ##   uuid = col_double(),
    ##   FeatureID = col_double(),
    ##   FeatureType = col_character(),
    ##   FeatureTimestamp = col_datetime(format = ""),
    ##   Latitude = col_double(),
    ##   Longitude = col_double(),
    ##   Northing = col_double(),
    ##   Easting = col_double(),
    ##   Accuracy = col_double(),
    ##   Description = col_character(),
    ##   Material = col_character(),
    ##   geospatialcolumn = col_character()
    ## )

``` r
places %>% glimpse()#look at data
```

    ## Rows: 257
    ## Columns: 12
    ## $ uuid             <dbl> 1.00011e+18, 1.00004e+18, 1.00005e+18, 1.00004e+18...
    ## $ FeatureID        <dbl> 2000, 4000, 6000, 4001, 5000, 4002, 6001, 6002, 50...
    ## $ FeatureType      <chr> "Other", "Artefact scatter", "Masonry", "Isolated ...
    ## $ FeatureTimestamp <dttm> 2018-04-21 21:44:43, 2018-04-22 00:43:47, 2018-04...
    ## $ Latitude         <dbl> -33.71817, -33.75828, -33.75846, -33.75825, -33.75...
    ## $ Longitude        <dbl> 150.3107, 150.2924, 150.2915, 150.2922, 150.2922, ...
    ## $ Northing         <dbl> 6265844, 6261351, 6261328, 6261354, 6261351, 62613...
    ## $ Easting          <dbl> 250796.0, 249212.8, 249135.6, 249201.8, 249201.4, ...
    ## $ Accuracy         <dbl> 3.0, 0.9, 0.8, 0.8, 0.9, 0.9, 0.9, 3.0, 0.8, 0.7, ...
    ## $ Description      <chr> "YHA startpoint", "two pieces of blue green bottle...
    ## $ Material         <chr> NA, "Glass", "Ceramic - Glass - {Brick} - Other", ...
    ## $ geospatialcolumn <chr> "POINT(250796.002961 6265844.465518)", "POINT(2492...

``` r
#create a funtion for making labels
labs <- lapply(seq(nrow(places)), function(i) {
  paste0( "<b>","FeatureID: ", places[i, "FeatureID"],'</b><br/>',
          "FeatureType: ", places[i, "FeatureType"], '<br/>',
          "Description: ",places[i, "Description"],"<br/>")
})

  #create function for creating a color pallette for coloring markers by the FeatureType

colors <- colorFactor(palette = 'RdYlGn', levels(as.factor(places$FeatureType)))

map <- leaflet() %>% # make leaflet map
  addTiles() %>%
  addMiniMap() %>%
   addMeasure() %>% #add measuring tool
  #add circle markers
  addCircleMarkers(
    data = places,
    lat = ~ places$Latitude,
    lng = ~ places$Longitude,
    color = ~ colors(as.factor(places$FeatureType)),
    popup = places$Description,
    label = lapply(labs, htmltools::HTML),#adding labels as HTML
    clusterOptions = markerClusterOptions(),#cluster close markers
    opacity = 0.95
  ) %>%
  #add legend for colors
   addLegend('bottomleft', pal = colors, values = as.factor(places$FeatureType),
            title = 'Feature Type',
            opacity = 1)
```

    ## Warning in validateCoords(lng, lat, funcName): Data contains 1 rows with either
    ## missing or invalid lat/lon values and will be ignored

``` r
#save map
saveWidget(map, "map.html", selfcontained = TRUE)
```


text:
---
title: as - ///_hyperscript
---

## The `as` Expression

### Syntax

```ebnf
  <expression> as [ a | an ] CONVERSION
```

### Description

Hyperscript provides a pluggable conversion system with the `as` expression. It will look up the conversion of the given name and apply it to the input expression.

By default, hyperscript provides the following conversions:

* `Array` - convert to Array
* `Date` - convert to Date
* `Float` - convert to float
* `Fragment` - converts a string into an HTML Fragment
* `HTML` - converts NodeLists and arrays to an HTML string
* `Int` - convert to integer
* `JSON` - convert to a JSON String
* `Number` - convert to number
* `Object` - convert from a JSON String
* `String` - convert to String
* `Values` - converts a Form (or other element) into a struct containing its input names/values
* `Values:Form` - converts a Form (or other element) into form encoded string
* `Values:JSON` - converts a Form (or other element) into json encoded string
* `Fixed<:N>` - convert to a fixed precision string representation of the number, with an optional precision of `N`

Some examples:

```hyperscript
  log '10' as Int            -- logs 10
  log '3.141568' as Fixed:2  -- logs '3.14'
  log '{"foo":10}' as Object -- logs { "foo": 10 }'
  log 10 as String           -- logs "10"
```

You can add new conversions by adding them to the `_hyperscript.config.conversions` object:

```js
_hyperscript.config.conversions["MyConversion"] = function (val) {
  return "I converted: " + val;
};
```

which can then be used like so in hyperscript:

```html
<button _="on click put 'foo' as MyConversion into my innerHTML">
  Call my conversion
</button>
```

You also have the option to create a dynamic conversion, which will be called
before all conversions, and allow you to create more flexible conversion naming schemes

```js
_hyperscript.config.conversions.dynamicResolvers.push(function (
  conversionName,
  val
) {
  if (conversionName.indexOf("MyConversion:") == 0) {
    var arg = conversionName.split(":")[1];
    if (arg === "Short") {
      return "I converted : " + val;
    } else if (arg === "Long") {
      return "I am happy to announce I converted : " + val;
    }
  }
});
```

This conversion could now be used like so:

```html
<button _="on click put 'foo' as MyConversion:Short into my innerHTML">
  Call my conversion
</button>
```


text:
# Professional Markdown Generator
## Description
This is a markdown generator that you can use to create professional README files for your coding projects! It can be used for any type of project in order to really make it look like you know what your'e doing!
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Contributions](#contributions)
- [Credits](#credits)
- [Tests](#tests)
- [Contact](#contact)
## Installation
You'll need vsCode or something similar, and will need to install inquirer from the npm database. Once you create your .gitignore, use npm init -y in an integrated terminal. Next, input npm install inquirer.
## Usage
Once everything is installed, input node index.js to initiate the app and follow the promps! At the end, you'll have your brand new README!
# [Demonstration Video](https://drive.google.com/file/d/1qe7aoUZbYHGA0P5ZflXnsbDTEhZVFO3a/view?usp=sharing)
![Demonstration pictures](https://github.com/JusticeGTR/ProfessionalREADMEGenerator/blob/main/assets/media/Screenshot%20(96).png)
![Demonstration pictures](https://github.com/JusticeGTR/ProfessionalREADMEGenerator/blob/main/assets/media/Screenshot%20(97).png)
![Demonstration pictures](https://github.com/JusticeGTR/ProfessionalREADMEGenerator/blob/main/assets/media/Screenshot%20(98).png)

## License
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[View License](https://choosealicense.com/licenses/mit/)

## Contributions
Contributions and code for new functionality is welcome. Submit pull requests for suggested additions and they will be added on a case by case basis.
## Credits
Big thanks to all contributors and the instructors for guidance.
## Tests
Initiate node index.js to test and see what it outputs, and make changes as necessary. No other tests currently.
## Contact
[Email<EMAIL_ADDRESS>
[GitHub](https://github.com/JusticeGTR)

repository: JusticeGTR/ProfessionalREADMEGenerator

repo_name: JusticeGTR/ProfessionalREADMEGenerator


text:
### [CVE-2022-22672](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22672)
![](https://img.shields.io/static/v1?label=Product&message=iOS%20and%20iPadOS&color=blue)
![](https://img.shields.io/static/v1?label=Product&message=macOS&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3C%2011.6%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Version&message=%3C%2012.3%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Version&message=%3C%2015.4%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Version&message=%3C%202022%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=A%20malicious%20application%20may%20be%20able%20to%20execute%20arbitrary%20code%20with%20kernel%20privileges&color=brighgreen)

### Description

A memory corruption issue was addressed with improved memory handling. This issue is fixed in iOS 15.4 and iPadOS 15.4, Security Update 2022-003 Catalina, macOS Monterey 12.3, macOS Big Sur 11.6.5. A malicious application may be able to execute arbitrary code with kernel privileges.

### POC

#### Reference
No PoCs from references.

#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/b1n4r1b01/n-days


text:
# Market - Fiverr Project

* **Languages and Tools:** Java and JavaFX
* **Project Description:** The objective of the project was to develop a Java Program, using JavaFX, to add products to an inventory and other things.
* **Interface Print (Example):**
> <img src="https://github.com/GJordao12/Fiverr-Market/blob/main/InterfacePrint.PNG">


text:
# Running Nomad Jobs

With the Nomad servers and agents fully bootstrapped you now have the ability to submit and run [Nomad Jobs](https://www.nomadproject.io/docs/operating-a-job/index.html).

## Run the Example Jobs

Example Jobs under the jobs directory:

* `version` - Run a exec driver calling Singularity --version.

### Run the version Job

The `version` Job Check the Singularity version on host.

Execute a plan for the `version` Job:

```
nomad plan jobs/version.nomad
```

```
+ Job: "version"
+ Task Group: "example" (1 create)
  + Task: "version" (forces create)

Scheduler dry-run:
- All tasks successfully allocated.

Job Modify Index: 0
To submit the job with version verification run:

nomad run -check-index 0 jobs/version.nomad

When running the job with the check-index flag, the job will only be run if the
server side version matches the job modify index returned. If the index has
changed, another user has modified the job and the plan's results are
potentially invalid.
```

Submit and run the `version` Job:

```
nomad run jobs/version.nomad
```

```
==> Monitoring evaluation "XXXXXXXX"
    Evaluation triggered by job "version"
    Allocation "XXXXXXXX" created: node "XXXXXXXX", group "version"
    Evaluation status changed: "pending" -> "complete"
==> Evaluation "XXXXXXXX" finished with status "complete"
```

Check the status of the `version` Job:

```
nomad status version
```

```
ID            = version
Name          = version
Submit Date   = XX/XX/XX XX:XX:XX PDT
Type          = batch
Priority      = 50
Datacenters   = highwind
Status        = running
Periodic      = false
Parameterized = false

Summary
Task Group  Queued  Starting  Running  Failed  Complete  Lost
example     0       0         1        0       0         0

Allocations
ID        Node ID   Task Group  Version  Desired  Status   Created At
XXXXXXXX  XXXXXXXX  example     0        run      running  XX/XX/XX XX:XX:XX PDT
```

Retrieve and view the logs for the `version` Job:

```
nomad logs -job version
```

```
2.3.9-development.ge92fc6a8
```

> The nomad logs command requires remote access to the Nomad worker node running the Job. This works because of the consul cluster deployed before the nomad cluster

The `version` Job is set to run as batch.(Run until success or error exit)

Stop and purge the `version` Job:

```
nomad stop -purge version
```

```
==> Monitoring evaluation "XXXXXXXX"
    Evaluation triggered by job "version"
    Evaluation status changed: "pending" -> "complete"
==> Evaluation "XXXXXXXX" finished with status "complete"
```
<!--
EOF!
-->

repository: ArangoGutierrez/Singularity-on-Nomad

repo_name: ArangoGutierrez/Singularity-on-Nomad


text:
# SPAI-course-project-code
This is the folder including the code and audio files of group02 from the 2020 SPAI course project.

------------

Insert brief description to run the code.

Instructions and executable (ConneXounds2020.exe) are provided within the two subfolders

------------

Members of the group:
- Elliot Coone
- Yannick Daelemans
- Emmelien Deckers
- Remi De Coster
- Stijn Reniers
- Sebastiaan Seijnaeve
- Maxim Yudayev