text:
# Vault API

### Prerequisites

- Node.js 8.x+ (https://nodejs.org/it/download/)
- Yarn (https://yarnpkg.com/lang/en/docs/install/#debian-stable)
- Docker (https://docs.docker.com/v17.09/engine/installation/)
- Docker compose (https://docs.docker.com/compose/install/)

#### Installation instruction

```bash
$ yarn
$ cp .env.example .env

```

#### Execute the service in development (with autoreload)

```bash

$ yarn docker:dev

  ....

  vault-api_1  | Server started on port 3010 (development)

```

#### Interacting with the API

```bash
$ curl --request PUT  \
       --url 'http://localhost:3010/v1/vault/test123?encryption_key=PASSWORD123' \
       --header 'Content-Type: application/json' \
       --data '{"test": 123, "test1":{"a":0.1,"b":"HELLO"}}'
```

```json
{"saved":true}
```

```bash
$ curl --request PUT \
      --url 'http://localhost:3010/v1/vault/test456?encryption_key=PASSWORD123' \
      --header 'Content-Type: application/json' \
      --data '{"test": 456, "test1":{"a":0.2,"b":"HELLO2"}}'

```

```json
{"saved":true}
```

```bash
$ curl --request GET \
       --url 'http://localhost:3010/v1/vault/test*?decryption_key=PASSWORD123'
```

```json
[
   {"id":"test123","value":{"test":123,"test1":{"a":0.1,"b":"HELLO"}}},
   {"id":"test456","value":{"test":456,"test1":{"a":0.2,"b":"HELLO2"}}}
]
```

#### Run tests

```bash
$ yarn docker:test
```

#### Run in production

The app require a MongoDB instance running. It production-like environment can
be started with the following command:

```bash
$ ./bin/run_prod_docker.sh
```

### Boilerplate

Boilerplate code to https://github.com/danielfsousa/express-rest-es2017-boilerplate

repository: leoperria/vault

gha_language: JavaScript

repo_name: leoperria/vault


text:
# Hands on Lab - Environment Setup

These steps will be performed in the morning before the workshop starts. You will need to walk through each of the following steps to make sure that you can complete all exercices.

1. Open a new InPrivate/Incognito web browser session Make sure your are opening a new InPrivate/Incognito web browser session throughout this setup to avoid any conflict between your sessions/logins;

   If you don't already have an Azure subscription, follow the next steps:
   - Setup a proper Microsoft account:
     - Important note: For the purpose of the labs during this training you will use a free 200$ Azure credit with a dedicated Azure subscription. You may need to use a different Microsoft/LiveId account if yours is already attached to an Azure subscription. That’s why here we highly recommend you  use an email who is not attached to any Azure subscription. If you don’t have one, you could easily create one here: https://login.live.com/;
   - Get a free Azure Subscription from (https://azure.microsoft.com/en-ca/free/)
2. Download and install Azure Storage Explorer from https://azure.microsoft.com/en-us/features/storage-explorer/);
3. Download and install/compile Service Bus Explorer from (https://github.com/paolosalvatori/ServiceBusExplorer).
4. If you're not using Visual Studio 2017, download and install Visual Studio Code from (https://code.visualstudio.com/).

## Open Azure Cloud Shell

Azure Cloud Shell is a free, interactive shell that you can use to run the steps in this article. Common Azure tools are preinstalled and configured in Cloud Shell for you to use with your account. Just select the **Copy** button to copy the code, paste it in Cloud Shell, and then press Enter to run it. There are a few ways to open Cloud Shell:

- Select the **Cloud Shell** button on the menu in the upper-right corner of the [Azure portal](https://portal.azure.com). ![Cloud Shell from the portal](/Labs/images/cloud-shell-1.png)
- Open a new tab and navigate to https://shell.azure.com

### Set up your resources using Azure CLI

The script below will create the following resources:

- IoTHub
- IoT Simulated Device called **Contoso-Gateway**
- Azure Storage Account
- Service Bus Namespace & Queue
- CosmosDB Account & Database

Copy and paste this script into Cloud Shell. Assuming you are already logged in, it runs the script one line at a time.

The variables that must be globally unique have `$RANDOM` concatenated to them. When the script is run and the variables are set, a random numeric string is generated and concatenated to the end of the fixed string, making it unique.

```azurecli-interactive
# This is the IOT Extension for Azure CLI.
# You only need to install this the first time.
# You need it to create the device identity.
az extension add --name azure-cli-iot-ext

# Set the values for the resource names that don't have to be globally unique.
# The resources that have to have unique names are named in the script below
#   with a random number concatenated to the name so you can probably just
#   run this script, and it will work with no conflicts.
location=canadaeast
resourceGroup=IoTHandsOn
iotHubConsumerGroup=ContosoConsumers
containerName=contosoresults
iotDeviceName=Contoso-Gateway

# Create the resource group to be used
#   for all the resources for this tutorial.
az group create --name $resourceGroup \
    --location $location

# The IoT hub name must be globally unique, so add a random number to the end.
iotHubName=ContosoTestHub$RANDOM
echo "IoT hub name = " $iotHubName

# Create the IoT hub.
az iot hub create --name $iotHubName \
    --resource-group $resourceGroup \
    --sku S1 --location $location

# Add a consumer group to the IoT hub.
az iot hub consumer-group create --hub-name $iotHubName \
    --name $iotHubConsumerGroup

# The storage account name must be globally unique, so add a random number to the end.
storageAccountName=contosostorage$RANDOM
echo "Storage account name = " $storageAccountName

# Create the storage account to be used as a routing destination.
az storage account create --name $storageAccountName \
    --resource-group $resourceGroup \
    --location $location \
    --sku Standard_LRS

# Get the primary storage account key.
#    You need this to create the container.
storageAccountKey=$(az storage account keys list \
    --resource-group $resourceGroup \
    --account-name $storageAccountName \
    --query "[0].value" | tr -d '"')

# See the value of the storage account key.
echo "$storageAccountKey"

# Create the container in the storage account.
az storage container create --name $containerName \
    --account-name $storageAccountName \
    --account-key $storageAccountKey \
    --public-access off

# The Service Bus namespace must be globally unique, so add a random number to the end.
sbNameSpace=ContosoSBNamespace$RANDOM
echo "Service Bus namespace = " $sbNameSpace

# Create the Service Bus namespace.
az servicebus namespace create --resource-group $resourceGroup \
    --name $sbNameSpace \
    --location $location

# The Service Bus queue name must be globally unique, so add a random number to the end.
sbQueueName=ContosoSBQueue$RANDOM
echo "Service Bus queue name = " $sbQueueName

# Create the Service Bus queue to be used as a routing destination.
az servicebus queue create --name $sbQueueName \
    --namespace-name $sbNameSpace \
    --resource-group $resourceGroup

# Create the IoT device identity to be used for testing.
az iot hub device-identity create --device-id $iotDeviceName \
    --hub-name $iotHubName

# Retrieve the information about the device identity, then copy the primary key to
#   Notepad.

license: MIT

branch_name: refs/heads/master

extension: md

license_type: permissive


text:
### [CVE-2020-29394](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-29394)
![](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

A buffer overflow in the dlt_filter_load function in dlt_common.c from dlt-daemon through 2.18.5 (GENIVI Diagnostic Log and Trace) allows arbitrary code execution because fscanf is misused (no limit on the number of characters to be read in the format argument).

### POC

#### Reference
- https://github.com/GENIVI/dlt-daemon/issues/274

#### Github
- https://github.com/Live-Hack-CVE/CVE-2020-29394

repository: trickest/cve

branch_name: refs/heads/main

gha_language: HTML

gha_license_id: MIT

repo_name: trickest/cve


text:
# node.js training
This repo has some simple code samples for node.js starters

## How to use
- Install [node.js](https://nodesource.com/products/nsolid)
- Install the dependencies with this command `npm i`
- Run your code `node <filename>` example node server.js
- Open the url in the browser [localhost:1111](http://localhost:1111)

## For support
Please raise a issue [here](https://github.com/upendradevsingh/node-training/issues)

## You can also view
[ironhead](https://github.com/js-factory/ironhead)<br/>
[onejs](https://github.com/js-factory/onejs)

repository: upendradevsingh/node-training

repo_name: upendradevsingh/node-training


text:
#  Query suggestions & Categories implementation example

Search experience consisting of two results sections:
- Query suggestions list
- Product categories list

Demonstrates simultaneous search for hits (suggestions) and facet values.

<img src="./demo.gif" width="300"/>

repository: algolia/instantsearch-ios-examples

gha_language: Swift

repo_name: algolia/instantsearch-ios-examples


text:
## Backbone Template

This is a basic template in backbone to help change or build a basic bootstrap website into a BackboneJS powered Web Application.
This is a basic template to help you get started and build your applications on top of this template.
There are some templates given as examples here to help you get started, which you can modify (Refer to Customizing section).
Underscore templating has been used in the project which can be easily changed to Underscore or Jade

## Demo

Demo of this project can be found on : https://backbonetemplate.firebaseapp.com/

## Getting Started

To use this template, choose one of the following options to get started:
* Fork this repository on GitHub
* Deploy the files in local server
* Run index.html on the local server

## Customizing the template

* If you are wish to change any of the pages, open templates folder. Paste your HTML code inside the template you wish to change. Save the file and launch index.html.
* This is a great place to find more HTML snippets you can customize - http://bootsnipp.com/
* You can add any models in the models folder and collections in the collections folder.
* All the views are customizable and all of them are appended to the postContent div in the index.html

## Contribute

Submit a pull request with new templates or any modifications to the existing javascript files.
Looking to add some collection views and models in the upcoming updates.

## Bugs and Issues

Have a bug or an issue with this template? [Open a new issue] here on GitHub or leave a comment .


text:
# liblistrankmf: An implementation of ListRank-MF
Copyright (c) 2014 Gabriel Poesia <gabriel.poesia at gmail.com>

## Description

Implementation of the ListRank-MF algorithm presented in the following paper:

Shi, Yue, Martha Larson, and Alan Hanjalic.
"List-wise learning to rank with matrix factorization for collaborative filtering."
Proceedings of the fourth ACM conference on Recommender systems. ACM, 2010.

ListRank-FM is a List-wise Learning to Rank algorithm for Recommender Systems.
It takes as input a matrix with known ratings that users gave to some items,
and produces as output two matrices, one for users and one for items.
Each of these matrices has a (latent) feature vector for each user or item.
The predicted score of an item for a user is then given by the inner product
of their feature vectors. These scores have no intrinsic meaning, and
are optimized for ranking, not rating prediction.
They only serve the purpose of sorting the items by (predicted) preference
for each user. Using this, one can produce recommendations.

## Example

An example program is given in `example.cpp`. It reads a matrix from
standard input with each line containing the known ratings for one user.
The ratings are given in the sparse format ``item_id:rating``. For example,
1:2 means the user gave a rating of 2 to item 1. For example, the following
is a valid input file:

```
1:2 3:5 4:5
2:3 6:1 3:2
5:5 6:5
6:2 1:5 2:5
```

This input has 4 users. The first, second and fourth have 3 known ratings each,
and the third has two. The example program will use this file as a training
set for ListRank-MF and output another file in the same format, but with
the predicted scores for each user with respect to each item. Running the
program given the input above gives the output:

```
1:0.851643 3:1.08888 4:1.11222 2:1.46886 6:0.197725 5:0.885626
1:0.593794 3:0.524859 4:0.713789 2:0.915647 6:0.123612 5:0.707199
1:0.71775 3:0.810566 4:0.980269 2:1.37975 6:0.285633 5:0.824209
1:0.746979 3:0.688814 4:0.974642 2:1.06619 6:0.13357 5:0.698586
```

Using this output, we can infer user 1 would prefer to see item 2 (which
has a score of 1.11222 for him) than item 6 (which has a lower predicted score
of 0.197725). Note that the predicted scores tend to be consistent (with
respect to their relative order) with the observed ratings given in the
input. This happens for all users in this example.

## License

This library is released under the MIT license. In practice, this means
you can use it freely provided that you keep the copyright notice.

## Last words

If you find this library useful for any purpose, I'd be very pleased
to hear about that! I'll appreciate if you send me an email simply
telling me what you are using liblistrankmf for (research, personal
projects, etc).

repository: AlfredGao/listrankmf

repo_name: AlfredGao/listrankmf


text:
# **Vehicle with a Dual-Clutch Transmission**
Copyright 2011-2020 The MathWorks, Inc.

[![View Dual Clutch Transmission Model in Simulink on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/32246-dual-clutch-transmission-model-in-simulink)

This model contains a dual-clutch transmission built using Simscape and
Simscape Driveline that can be configured for control algorithm development
or optimization tests. The clutch states and pre-selection of the gears
via dog clutches is controlled by a state machine modeled in Stateflow.

Model variants for the transmission and vehicle dynamics can be selected
using variant subsystems. MATLAB scripts demonstrate how to optimize a shift
schedule for maximum fuel economy, and how to speed that process using
parallel computing.

This model can be configured for hardware-in-the-loop testing.

1. You open project Dual_Clutch_Trans.prj to set the path and load key values.

2. DCT_Model_Demo_Script.html will walk you through most parts demo.

3. Note: the project does not place generated files in the work folder
   because the Simulink.BlockDiagram.buildRapidAcceleratorTarget
   method needs that code to be in a local folder.

repository: mathworks/Simscape-Dual-Clutch

repo_name: mathworks/Simscape-Dual-Clutch


text:
# Logbook for Spring 2018 CEE 4540 Updates

This file will contain weekly updates into my work. All changes will be pushed to a non-master branch, and I will only have one branch at a time for whatever project I am working on. Every week (the day depends on my work schedule that week), I will send Monroe an email containing a link to this file's page on GitHub in addition to supplementary material. For example, this first week I will send him the example of the 'extra' slides for his viewing pleasure (or displeasure).

***
##List of Big Ideas and Big Concerns
1. It is not ideal to have both a confluence and a GitHub page that contain course resources. This will confuse students very much, they will be unable to find or unwilling to look for the simple things, and they will pester the TAs.
**Ambitious idea: Move everything to GitHub**
Confluence, in all its glory, is not well liked by students and has a tendency to get very messy. Despite the fact that it seems like the perfect tool, I've only every heard complaints from students, both in AguaClara and 4540. Documents and information are oftentimes difficult to find
    - Is it possible to make a good looking syllabus on GitHub? Will investigate. Shouldn't be too difficult with table functionality in markdown
2.

***

## First Progress Report: Arrived in Argentina 2/7/18

### Done
1. Installed and played with atom until comfortable
1. Looked into how to handle extra slides, input from Cynthia and Zoe. Small example ready
1. Simplified a few slides- notably one on Darcy-Weisbach
1. Began to transfer equations in the powerpoints to LaTeX from MathType
    - `Flow Control and Measurement` and  `Rapid Mix` are done and uploaded to my branch.
    - Looked into changing the LaTeX math font, as I like the MathType font far more. I wasn't able to find any good options in a couple hours of searching
    - I've only got 14 more days left of MathType

### To Do
1. Finish transferring all equations to IguanaTeX before MathType runs out
1. Once all equations are transferred, branch point (my preference bolded):
    - **Update/simplify/clarify slides,** OR
    - Begin to create summary sheets for each unit process/course topic OR
    - Look into skeleton structure for textbook (equation numbering and citations)

***

## Second Progress Report: Last day in Argentina 2/14/18

### Done
1. Completed transferring equations to LaTeX from MathType in `Flocculation Model`. Took more time than the previous topics due to its heaftier equation volume and the following bullet.
1. Began to understand the huge difficulty with work-life-family balance. As I work and my grandpa just looks at me somewhat sadly. Short-term productivity suffered.

### To Do
1. Finish transferring equations for `Flocculation Design`, `Sedimentation`, and `Filtration` powerpoints, along with the scattered extras.
    - `Sedimentation` and `Filtration` powerpoints don't appear to be in the `CEE_4540` repo. I'll take them from the 4540 syllabus. I imagine Monroe didn't change them too much since last semester.
    - I will need to purchase Mathtype, or download another free trial. I can use another email and wipe Mathtype from my computer before re-installing? I'll try that
1. Look into changing the font color on IguanaTeX. Learn more about LaTeX and IguanaTeX in general.

***

## Third Progress Report: 3 productive days in Abu Dhabi 2/21/18

### Done
1. Figured out how to add color to the IguanaTeX equations. Not too tough, but it took longer than I would have liked.
1. Finished transferring equations for:
    - `Flocculation Model`
    - `Flocculator Extras`
    - `Sedimentation`
    - `Filtration`
    - `Disinfection`
    - `Disinfection Extras`
    - `Prelim 1 Review`
    - `Prelim 2 Review`
    - Presentations that haven't been transferred to LaTeX: `Sedimentation Extras`, `Filtration Extras`, `Open Channel Flow`, `Manifolds`, and `Floc Blanket Model`, which is just a collection of slides from the Flocculation slides.
    - MathType ran out :( but I finished everything I intended to and more :D
1. Went back and labeled all the equations that were off the slides for future clarity
1. Reorganized the `Lectures` folder in GitHub. I think it is a lot more clear now.
1. Beginning to edit presentations for clarity while reformatting the extra slides. Extra slides will now be a separate powerpoint.
Extra slides finished for:
    - `Introduction`
1. Created functional "Overviews" for the following presentations:
    - `State of the planet`
    - `AguaClara Slideshow`
    - `Flow Control and Measurement`
    - `Introduction` halfway done- does it make sense to have such structure for the non-technical presentations?

### To-Do
1. Continue to edit and clarify technical presentations. This will take a long time. I will begin sequentially, with `Flow Control and Measurement`.
1. Talk to Monroe about the `Drinking Water Contaminants` presentation structure

**Non-imminent action item for Monroe**

Please go back over the non-physics/math/engineering presentations to make sure that they are of adequate length. Those presentations are, in a way, the most important ones of the course, as they inspire people. Their delivery should not be rushed. If some slides have to become 'extras' to ensure that each remaining slide is given the time and gravity it deserves, that's ok.

For the following presentations, let me know what slides you want to be considered extras, if any. You can simply add/remove the oh-so-common `extra` tag to them and push them to GitHub (once you've pulled my changes! I've made some minor edits to the non-technical presentations), I'll create the extra slide decks for them. I imagine you have a way better feel for how long the presentations should be than I do!
- `State of the planet`
- `Drinking Water Contaminants`
- `AguaClara Slideshow`
- `Public Health`
- `Last Lecture`

***
## Fourth Progress Report: Return from Japan, beginning of long-term, stable working period! 4/5/2018

### Done
1. Began `Flow Control and Measurement.md` cheat sheet. There are many, many ways of writing a guide. The more eyes that look at this and offer advice, the better. I'm planning on sending it out to many people to (hopefully) look at it and offer advice on what is good, what is bad, and what could be different.
    - This is a significant project!
2. Made consistent Bernoulli/energy equation variables in slides ($\rho g$ vs $\gamma$, $v$ vs $V$)
3. Continuing to clarify the `Flow Control and Measurement` powerpoint.

### To Do, all in `Flow Control and Measurement.md`
1. Find a good site to link to 'head'.
2. Find the 'AguaClara standard unit convention' that's floating around somewhere and add it to the introduction.
3. Figure out how to get markdown in atom to download/read the \cancel package in MikTex for math.
4. Include control volumes into the streamline assumption of the Bernoulli equation section
5. Solicit feedback from people on the cheat sheet.

***
## Fifth Progress Report: 4/12/2018
### Done
1. Finished first drafts of [minor loss equation derivation](https://github.com/AguaClara/CEE4540_DC/blob/master/AguaClara%20Water%20Treatment%20Plant%20Design/Summary%20Sheets/Derivation_minor_loss_equation.md "Minor loss equation derivation document") and [flow through a simple hypochlorinator](https://github.com/AguaClara/CEE4540_DC/blob/master/AguaClara%20Water%20Treatment%20Plant%20Design/Summary%20Sheets/Derivation_flow_through_simple_hypoclorinator.md).
2. Finished Fluids Review in `Flow Control and Measurement.md` summary sheet first draft. Sent it out to Fletcher and Clare to look over and provide feedback.
3. Edited `Flow Control and Measurement.pptx` slides up to slide 33. Eliminated derivations, removed clutter from slides. Will send out new version for review.

### To Do
1. Find a good site to link to 'head.'
2. Keep going. Review feedback from Fletcher and Clare when they respond. Begin on Section 2 'Introduction to Flow Control: The Search for Constant Head.'

***
## Sixth Progress Report: 4/17/2018
This interim progress report is due to 2 factors. My family and I are going on vacation from the 18th until the 21st of April, and I will only be able to work a few hours on those days, if at all. On the 17th, the [Green Business Summit 2018](https://events.economist.com/events-conferences/emea/Greenbusinesssummit) is being held two blocks from where I live. I signed up and am going to learn about things and see if I can schmooze with  businessmen and pitch AguaClara. That is why this week will be light on work.

### Done
1. I need to be a bit more organized and broaden my scope to consider more than just the summary sheets at any given time. One day out of every week, I will zoom out of my current project, which will be summary sheets/powerpoints in the near future, and look at the general organization/structure of the class.
2. Is it a problem that we are presumably using the same repo to give subsequent years of students their DCs? Is it possible for them to checkout a previous commit to get the DC solutions from previous years?
    - I think that it is not a huge deal. There are so many ways to cheat in any class if a student tries hard enough. Most students won't have any prior knowledge of github anyways, and will be unlikely to even know this is possible.
3. I have checked out the possibility of moving everything from confluence to github. Not only is it possible, but it wouldn't even be that difficult. The only concern would be the locations of certain images and files, but that is not a legitimate reason not to do the switch. It would take me 10 hours MAX and probably a lot less. Organizing the file structure on github would be the only tricky part.
    - I have made the first line of the sample syllabus via a markdown table, you may find it [here](https://github.com/AguaClara/CEE4540_DC/blob/Flow_Control_and_Measurement_v2/Sample_Syllabus.md). The raw file is still a mess exactly like the confluence one, but I believe that is unavoidable. By expanding the atom window/shrinking the text size each row can take up one line, which makes the table begins to look normal and navigable.

### To Do
1. Umm... everything. Summary sheet making is a slow process if a quality product is desired. Which of course it is.
2. **Should I begin to make the switch from confluence to github?**

path: /AguaClara Water Treatment Plant Design/Juan_logbook.md


text:
cfgtrack
========

Download: https://github.com/fboender/cfgtrack/releases/

Packages available for: Debian, Ubuntu, Redhat, .tar.gz.

About
-----

cfgtrack tracks and reports diffs in files between invocations.

It lets you add directories and files to a tracking list by keeping a separate
copy of the file in a tracking directory. When invoked with the '`compare`'
command, it outputs a Diff of any changes made in the files since the last
time you invoked with the '`compare`' command. It then automatically updates the
tracked file. It can also send an email with the diff attached.

Limitations (otherwise known as "features")

- Does not track file attribute changes (future?)
- Does not track who made the change (future?)
- Does not track additions to directories (but does track removals of tracked
  files) (future?).
- It's not a configuration management system.
- It's not an intrusion detection system.

cfgtrack is useful when you want to stay informed about changes happening to
files by third-parties or automatic updates.

Example:

    [fboender@jib]~$ sudo ./cfgtrack track /etc/crontab
    Now tracking /etc/crontab

    # Two weeks later

    [fboender@jib]~$ sudo ./cfgtrack compare
    --- ./etc/crontab   2015-01-23 18:23:06.906938089 +0100
    +++ /./etc/crontab  2015-01-23 18:23:26.842937817 +0100
    @@ -12,6 +12,3 @@
    25 6 * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
    47 6 * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
    52 6 1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
    -# MISSION CRITICAL: DO NOT REMOVE
    -00 3    1 * *   root    /usr/local/bin/fix_all_the_things.py
    -

    [fboender@jib]~$ echo "Oh god, why???" | mail -s "YOU'RE FIRED" --to<EMAIL_ADDRESS>

Installation
------------

cfgtrack is written as a straight-forward portable shell script. No special
installation is required other than downloading and copying the script to a
directory.

If you want to to use the mail function (-m/--mail), you'll need Python.

### Debian / Ubuntu / Linux Mint installation

1. Download the .deb file from https://github.com/fboender/cfgtrack/releases/
2. Install the package: `sudo dpkg -i cfgtrack*.deb`
3. To uninstall: `apt-get purge cfgtrack`

If you want to use the mail (-m) option, Python (v2.5+) must be installed.
Python is available on nearly all unices.

### RedHat / Centos / RPM-based

1. Download the .rpm file from https://github.com/fboender/cfgtrack/releases/
2. Install the package: `sudo rpm -i cfgtrack*.rpm`

If you want to use the mail (-m) option, Python (v2.5+) must be installed.
Python is available on nearly all unices.

### Manual install

1. Download the .tar.gz or .zip file from https://github.com/fboender/cfgtrack/releases/
2. Unpack it with `tar -vxzf cfgtrack-*.tar.gz`
3. Change to the cfgtrack directory: `cd cfgtrack*`
4. Install it on your system with `sudo make install`
5. Uninstall it from your system with `sudo make uninstall`

If you want to use the mail (-m) option, Python (v2.5+) must be installed.
Python is available on nearly all unices.

Usage
-----

To start tracking an entire tree of files:

    $ sudo cfgtrack track /etc/

To track a single file:

    $ sudo cfgtrack track /etc/apt/apt.conf.d/50unattended-upgrades

Note that cfgtrack keeps a copy of the files that are tracked in a separate
directory.  If you track large directories (which you really shouldn't), this
will take up twice as much space.

To show differences between the last time you ran 'compare' and now:

    $ sudo cfgtrack compare

To send an email upon changes:

    $ sudo cfgtrack --silent --mail<EMAIL_ADDRESS>compare

To stop tracking changes to an entire tree of files:

    $ sudo cfgtrack untrack /etc/

To stop tracking changes to a single file

    $ sudo cfgtrack untrack /etc/apt/apt.conf.d/50unattended-upgrade

To get a daily report via email of changes and put the resulting diffs in the archive:

    $ vi /etc/cron.daily/cfgtrack
    #!/bin/sh

    /usr/bin/cfgtrack -a -s -m<EMAIL_ADDRESS>compare >/dev/null

    $ chmod 755 /etc/cron.daily/cfgtrack

See also `man 1 cfgtrack`

repository: fboender/cfgtrack

repo_name: fboender/cfgtrack


text:
---
title: "Development Rack"
draft: false
slug: Development Rack
url: /installation/development-rack
---
# Development Rack

A development Rack runs on your local workstation and allows you to work on your
[App](../../reference/primitives/app) in an environment nearly identical to production.

## Installation

Please choose your local workstation's operating system to view its specific installation steps.
- [macOS - Intel/x86_64](macos) / [macOS - M1/ARM64](macos-m1)
- [Ubuntu](ubuntu)

repository: convox/convox

gha_language: Go

repo_name: convox/convox


text:
---
layout: post
title: "Electron scattering due to dislocation wall strain field in GaN layers"
date: 2009-02-27 09:13:31
categories: arXiv_CV
tags: arXiv_CV GAN
author: S.E. Krasavin
mathjax: true
---

* content
{:toc}

##### Abstract
The effect of edge-type dislocation wall strain field on the Hall mobility in n-type epitaxial GaN was theoretically investigated through deformation potential within the relaxation time approach. It was found that this channel of scattering can play a considerable role in the low-temperature transport at the certain set of the model parameters. The low temperature experimental data were fitted by including this mechanism of scattering along with ionized impurities and charge dislocation ones.

##### Abstract (translated by Google)

##### URL
[https://arxiv.org/abs/0902.4774](https://arxiv.org/abs/0902.4774)

##### PDF
[https://arxiv.org/pdf/0902.4774](https://arxiv.org/pdf/0902.4774)


text:
PotatoCSS

Simple CSS framework for hackers. Simple as potato.

___

PotatoCSS is a beautiful CSS framework for hackers: boasting a responsive 12 column grid, ready to use built-in forms and buttons, it's clean, simple and easy-to-use.

## Demo

Demo is available [**here**](http://potatocss.com/)

## Installation and Usage

[**PotatoCSS**](http://potatocss.com/) can be installed via the methods below.

Thanks for taking interest!

## License

[**PotatoCSS**](http://potatocss.com/) is licensed under the [**MIT License**](license.md).

## Credits

[**PotatoCSS**](https://github.com/PotatoCSS/PotatoCSS) was created for [**Hacktoberfest**](https://hacktoberfest.digitalocean.com/) by [**Edvins Antonovs**](https://twitter.com/edvinsantonovs).

Big thanks to all the [**contributors**](../../graphs/contributors) who work and have worked on PotatoCSS.


text:
---
layout: page
title: Privacy Policy
include_in_header: false
include_in_footer: true
locale: en
---

**Last updated**
May 1 2021

## Privacy Policy

Filebox is a file management app for iOS that supports music player, video player and text editor.

This privacy policy applies to the iOS main app itself, its embedded frameworks and app extensions, and official examples we provided, but obviously not to files that you aaded yourself.

**Data Collected by Filebox**

In short, the Filebox app itself does not collect any data from you. Yes, we don't do any data tracking technology for growth purpose, we don't even count how many users we have. We just want to provide a file management system, and do not care how "success" we are, or how the app is being used by users.

Please be confident about our service, all secrets stay on your device, we don't have control over them.

**Cookies**

Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device's internal memory. Filebox does not use these "cookies" explicitly.

**Changes to This Privacy Policy**

We may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. We will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately after they are posted on this page.

**Contact Us**

If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact us at<EMAIL_ADDRESS>.


text:
# **Traffic Sign Recognition**

## Writeup
---

**Build a Traffic Sign Recognition Project**

The goals / steps of this project are the following:
* Load the data set (see below for links to the project data set)
* Explore, summarize and visualize the data set
* Design, train and test a model architecture
* Use the model to make predictions on new images
* Analyze the softmax probabilities of the new images
* Summarize the results with a written report

**Dependencies**
This lab requires:

* [CarND Term1 Starter Kit](https://github.com/udacity/CarND-Term1-Starter-Kit)

The lab environment can be created with CarND Term1 Starter Kit. Click [here](https://github.com/udacity/CarND-Term1-Starter-Kit/blob/master/README.md) for the details.

[//]: # (Image References)

[image1]: ./examples/visualization.png "Visualization"
[image2]: ./examples/grayscale.png "Grayscaling"
[image3]: ./examples/original.png "Original"
[image4]: ./test_images/13_yield.jpg "Traffic Sign: Yield"
[image5]: ./test_images/3_speed_limit_60.jpg "Traffic Sign: Speed 60"
[image6]: ./test_images/14_stop.jpg "Traffic Sign: Stop"
[image7]: ./test_images/19_dangerous_curve_to_left.jpg "Traffic Sign: Dangerous curve (left)"
[image8]: ./test_images/35_ahead_only.jpg "Traffic Sign: Ahead Only"
[image9]: ./examples/table.png "Data Distribution"

## Rubric Points

---
### Writeup / README

#### 1. Provide a Writeup / README that includes all the rubric points and how you addressed each one. You can submit your writeup as markdown or pdf. You can use this template as a guide for writing the report. The submission includes the project code.

You're reading it! and here is a link to my [project code](./Traffic_Sign_Classifier.ipynb)

### Data Set Summary & Exploration

#### 1. Provide a basic summary of the data set. In the code, the analysis should be done using python, numpy and/or pandas methods rather than hardcoding results manually.

I used the pandas library to calculate summary statistics of the traffic
signs data set:

* The size of training set is 34799
* The size of the validation set is 4410
* The size of test set is 12630
* The shape of a traffic sign image is (32, 32, 3)
* The number of unique classes/labels in the data set is 43

#### 2. Include an exploratory visualization of the dataset.

Here is an exploratory visualization of the data set. It is a bar chart showing how the data distribute according to each lable. The table is showing the detailed specification of the dataset.

![alt text][image1]

![alt text][image9]

### Design and Test a Model Architecture

#### 1. Describe how you preprocessed the image data. What techniques were chosen and why did you choose these techniques? Consider including images showing the output of each preprocessing technique. Pre-processing refers to techniques such as converting to grayscale, normalization, etc. (OPTIONAL: As described in the "Stand Out Suggestions" part of the rubric, if you generated additional data for training, describe why you decided to generate additional data, how you generated the data, and provide example images of the additional data. Then describe the characteristics of the augmented training set like number of images in the set, number of images for each class, etc.)

As a first step, I decided to convert the images to grayscale and normalize to reduce calculation cost by simpliying the features.

Here is an example of a traffic sign image before and after grayscaling.

![alt text][image3]
![alt text][image2]

#### 2. Describe what your final model architecture looks like including model type, layers, layer sizes, connectivity, etc.) Consider including a diagram and/or table describing the final model.

My final model consisted of the following layers:

| Layer         		|     Description	        					|
|:----------------------|:----------------------------------------------|
| Input         		| 32x32x1 grayscaled image   				    |
| Convolution 5x5     	| 1x1 stride, same padding, outputs 28x28x6 	|
| RELU					|												|
| Max pooling	      	| 2x2 stride,  outputs 14x14x6		    		|
| Convolution 5x5	    | 1x1 stride, same padding, outputs 10x10x16    |
| RELU					|												|
| Max pooling	      	| 2x2 stride,  outputs 5x5x16		    		|
| Flatten   	      	| outputs 400               		    		|
| Dropout       		|         							    		|
| Fully connected		| outputs 120        							|
| RELU					|												|
| Dropout       		|         								    	|
| Fully connected		| outputs 84        							|
| RELU					|												|
| Dropout       		|         								    	|
| Fully connected		| outputs 43        							|

#### 3. Describe how you trained your model. The discussion can include the type of optimizer, the batch size, number of epochs and any hyperparameters such as learning rate.

To train the model, I used an Adam optimizer. The hyperparameters are:

| Parameter                             |     Value	        |
|:--------------------------------------|:------------------|
| Epoch                              	| 50        	    |
| Batch size                            | 128        		|
| Learning rate                         | 0.001        		|
| mu for `tf.truncated_normal`          | 0        			|
| sigma for `tf.truncated_normal`       | 0.1        		|
| Keep probability for dropout layer    | 0.5        		|

#### 4. Describe the approach taken for finding a solution and getting the validation set accuracy to be at least 0.93. Include in the discussion the results on the training, validation and test sets and where in the code these were calculated. Your approach may have been an iterative process, in which case, outline the steps you took to get to the final solution and why you chose those steps. Perhaps your solution involved an already well known implementation or architecture. In this case, discuss why you think the architecture is suitable for the current problem.

My final model results were:
* training set accuracy of 1.00
* validation set accuracy of 0.954
* test set accuracy of 0.937

Here's some history on how I reached out the current design.
* I chosed the LeNet model from the Udacity course material as a starting point simply because I am familiarized with it through the course.
* Initial problem was the low accuracy with around 0.800. I tried to finetune the hyperparameters but it didn't work well and improved only about 0.01 to 0.03.
* I decided to introduce dropout layers and tweaked the layout (where to insert) and keep probablity parameter. It improved the accuracy up to 0.850.
* What brought the significant improvement was change of the grayscale methodology in preprocessing. I used cv2.`cvtColor(image, cv2.COLOR_BGR2GRAY)` first. When I started to use `np.sum(images/3, axis=3, keepdims=True)` instead according to a [Q&A in Udacity Knowledgebase](https://knowledge.udacity.com/questions/358946), it improved the accuracy with above 0.930. Old implementation is left in the 5th cell with comment-out.

### Test a Model on New Images

#### 1. Choose five German traffic signs found on the web and provide them in the report. For each image, discuss what quality or qualities might be difficult to classify.

Here are five German traffic signs that I found on the web:

![alt text][image4] ![alt text][image5] ![alt text][image6]
![alt text][image7] ![alt text][image8]

#### 2. Discuss the model's predictions on these new traffic signs and compare the results to predicting on the test set. At a minimum, discuss what the predictions were, the accuracy on these new predictions, and compare the accuracy to the accuracy on the test set (OPTIONAL: Discuss the results in more detail as described in the "Stand Out Suggestions" part of the rubric).

Here are the results of the prediction:

| Image			        |     Prediction	        					|
|:----------------------|:----------------------------------------------|
| Yield					| Yield											|
| 60 km/h	      		| 60 km/h					     				|
| Stop Sign      		| Stop sign   									|
| Dangerous curve (left)| Dangerous curve (left)                    	|
| Keep Straight			| Keep Straight      							|

The model was able to correctly guess 5 of the 5 traffic signs, which gives an accuracy of 100%.

#### 3. Describe how certain the model is when predicting on each of the five new images by looking at the softmax probabilities for each prediction. Provide the top 5 softmax probabilities for each image along with the sign type of each probability. (OPTIONAL: as described in the "Stand Out Suggestions" part of the rubric, visualizations can also be provided such as bar charts)

The code for making predictions on my final model is located in the 18th cell of the Ipython notebook. The model is very accurate and confident with the provided test images with almost 100% of probabilities.

repository: hirooiida/traffic-sign-classifier

repo_name: hirooiida/traffic-sign-classifier


text:
---
title: "Army: Twitter could be a terrorist tool"
slug: "army-twitter-could-be-a-terrorist-tool"
date: "2008-10-27T20:39:03-06:00"
author: "fak3r"
categories:
- geek
tags:
- al qaida
- arabic language
- cell phone
- google maps
- Hezbollah
- im
- networking
- skype
- terror
- terrorism
- tweets
- twitter
---

Hmmm...so the Army has claimed that terrorists may be 'tweeting' along to [plan and organize attacks](http://www.instantmessagingplanet.com/security/article.php/3780961).  Well yeah, I guess they could use Gmail, Slashdot comments and other things the same way, it seems their claim is that since this is more 'real time' it could be a danger.  Ok, oh, and they take a swipe at Skype as well.  Additionally they define a new name I would happily accept, _"The report describes hacktivists as politically motivated hackers_".  Hacktvist, that's awesome.  The report goes on with,

> "The 'Twitter' member can send Tweets (messages) near real time to Twitter cell phone groups and to their online Twitter social networking page," the author said, adding that "there are multiple pro- and anti-Hezbollah Tweets."

Twitter members "can also mashup their Tweets with a variety of other tools including geo-coordinates and Google Maps or other electronic files/artifacts. Members can direct and re-direct audience members to other Web sites and locations from 'Tweets' and can engage in rapid-fire group social interaction," the writer said.

The author outlined three scenarios where Twitter could be used by terrorists, and pointed out that terrorists have also talked about using other technologies, including cell phones, and [ Skype](http://networking.webopedia.com/SHARED/search_action.asp?Term=SKYPE&Template_Name=networking.webopedia.com) and other internet telephony services.

The author, who did not sign the paper, warned that most of the information came from "al-Qaida-like Web sites from 'uncorroborated' postings made by terrorists" and "persons sympathetic to terrorism." Only "rudimentary Arabic language skills and the Google translating tool" were used.

There's no doubt that 'terrorists' will use any means necessary to accomplish their goals, but is this really something to take seriously?


text:
# node-imdb-crawler

[![Build Status](https://travis-ci.org/Godoy/node-imdb-crawler.svg?branch=master)](https://travis-ci.org/Godoy/node-imdb-crawler)
[![Code Climate](https://codeclimate.com/github/Godoy/node-imdb-crawler/badges/gpa.svg)](https://codeclimate.com/github/Godoy/node-imdb-crawler)
[![Test Coverage](https://codeclimate.com/github/Godoy/node-imdb-crawler/badges/coverage.svg)](https://codeclimate.com/github/Godoy/node-imdb-crawler/coverage)
[![Issue Count](https://codeclimate.com/github/Godoy/node-imdb-crawler/badges/issue_count.svg)](https://codeclimate.com/github/Godoy/node-imdb-crawler)
=======
A node library to gets TV Shows info from IMDB and returns collected data as a json.

## Example

```js
const CrawlerImdb = require('node-imdb-crawler');

let imdb_code = "tt0944947";
let imdb_crawler = new CrawlerImdb(imdb_code);

imdb_crawler.get_basic(function(data) {
  console.log("Serie:");
  console.log(data);
});
```

## Running above example:

```sh
node example/example.js
```

# Contributing

Pull Requests are always welcome.

Ensure that before sending a PR:

You have tested the changes locally and they are functional.
Include the relevant issue number, if applicable.

## Running tests

```sh
npm test
```

# License
[MIT License](LICENSE) (c) 2017 Adriano Godoy

repository: logicalangel/ImdbCrawler

repo_name: logicalangel/ImdbCrawler


text:
# Plans

Priority
--------
- [ ] Make it possible to stream music or video without the connection timing out before the playback is finished.
- [ ] Feature for sending the access log to the database + provide a page to view the logs.
- [ ] HTTP/2 + HTTPS + certificates per subdomain (a parameter for a
      subdomain, when using the --domain parameter. Then only serve
      that directory with HTTPS for :443).
- [ ] Support the LuaPage format (".lp", HTML with <% %> and <%= %> for Lua code)
- [ ] Add support for systemd reload.
- [ ] Document how to run Algernon in a docker container.
- [ ] Tool to easily pack an .alg application as a docker container.
- [ ] Handle .avi and other multimedia files better. Show a page for playing and downloading.
- [ ] Support for websockets.
- [ ] User management interface + web REPL + stats + logs + import/export data + .alg launcher.

Go / go vet / go lint
---------------------
- [ ] Two identical lines in a row that is the same assignment should result in an error.
- [ ] Constant byte slices should be allowed.

Various
-------
- [ ] Use a struct for the configuration variables.
- [ ] Web application for browsing the database
- [ ] Document the case sensitivity or add case insensitivity support.
- [ ] Create a tool that pretends to upload a file of size 128 bytes (Content-Length), but continues to stream data. Test with Algernon.
- [ ] Automatic redirect from http to https, or the other way around
- [ ] Lua plugin
- [ ] C plugin
- [ ] File upload while handling gzip
- [ ] Implement smooth reload + restart for systemd
- [ ] Cache os.Stat also when serving directory listings
- [ ] Create a screencast
- [ ] Implement https://github.com/labstack/echo/tree/master/examples as Algernon applications
- [ ] Look into github.com/jessevdk/go-flags/
- [ ] pprint should output text to the browser when not running in the repl (or be disabled)
- [ ] Graph of visitors over time
- [ ] See if the HTTP headers from the client + country of origin + mouse
      movement patterns can become some sort of pseudo ID. Combine with a neural net.
      Can be used for storing non-critical data like prefered themes, font sizes etc.
      Time of day may also be an input.
- [ ] Add editor syntax highlight files.
- [ ] Support for pretty URLs and/or routing in serverconf.lua (/position/x/2/y/4).
- [ ] Commandline utilities for editing users, permissions, databases and Lua functions in databases.
- [ ] Add a lua function for running a lua function periodically.
- [ ] Add a cache mode for caching binary files only
- [ ] MSI installer.
- [ ] deb/ppa
- [/] Use some of the tricks from go-bootstrap.io
- [ ] Consider using https://github.com/sbinet/igo instead of readline.
- [ ] Create a utility for creating and running new projects, ala Meteor.

Data control
------------
- [ ] Add simpleredis/simplebolt/simplemaria functions for exporting/importing data to JSON and offer these.

Events
------
- [ ] Better 404 page not found page for users visiting "/".
- [ ] Consider using channels in a more clever way, to completely avoid sleeping.
      Possibly by sending channels over channels.
- [ ] Consider only listening for changes after a file has been visited, then stop watching it after a while.
- [ ] Use a regexp or a JavaScript minification package instead of replacing strings in insertAutoRefresh.
- [ ] In genFileChangeEvents, check for CloseNotify, for more graceful timeouts.

Server configuration
--------------------
- [ ] Prefer environment variables and flags over lua server configuration.

Routing
-------
- [ ] Server("host:port", "/srv/http/somedirectory", "/var/log/algernon/logfile.log")
- [ ] Redirect("host/path:port", ":port/path")
- [ ] Rewrite("host:port", "host:port/path")
- [ ] RewritePrefix("www.", "")
- [ ] RewritePort("host", 443, 80)

REPL
----
- [ ] Make `help` and `dir` work a bit like in Python.
- [ ] Web REPL.

Plugins
-------
- [ ] Unmarshal the CallPlugin reply into appropriate Lua structures instead of returning a JSON string
- [ ] If a plugin ends with ".go", check if go is installed and run it with "go run" (if a binary of the same name has not been provided for the current platform).
- [ ] Add a function for loading all plugins in a "plugins" directory.

Additional security
-------------------
- [ ] Consider using https://github.com/unrolled/secure
- [ ] HTTP Basic Auth using the permissions2 usernames and passwords, for selected URL prefixes.
      Use code from "scoreserver".
- [ ] Check that HTTP reads not only times out, but has a deadline.
- [ ] Flag for disabling directory listings entirely.
- [ ] OAuth 1
- [ ] OAuth 2
- [ ] The ability to set headers and do HTTP Basic Auth manually.
- [ ] Check if "*" or the server host should be used as parameter to the EventServer function

Logging
-------
- [ ] A separate debug webserver / control panel running on a different port.
      For displaying stats, access logs, break-in attempts, errors in the code.
      Should also include an interactive REPL.

Console output
--------------
- [ ] Check the terminal capabilities and terminal width. Display a smaller logo if the width is smaller. Or no logo.

Documentation and samples
-------------------------
- [ ] Port [niltalk](https://github.com/knadh/niltalk) to Algernon, in a separate repository.
- [ ] Create a sample chat application.
- [ ] Create a sample TODOMVC application.
- [ ] Document possible Markdown keywords somewhere (in a separate document).
- [ ] Write a Lua library and use it in several web handlers.
- [ ] Make an application where .alg files can be uploaded and then hosted.

Lua
---
- [ ] Wrap JNode in the same way as JFile.
- [ ] Add a Lua function ForEach that takes a data structure and a function that takes a key and a value.
- [ ] Add a function for sanitizing HTML, possibly with bluemonday.
- [ ] Create an import function for importing online lua libraries. (Like `require`, but over http)
- [ ] In runLuaString, check if L.Close() really is needed instead of luapool.Put(L)
- [ ] Way to load parts of a page asynchronously (with gopher-lua channels?)
- [ ] Way to use Lua libraries for adding ie. SQLite support.

Performance
-----------
- [ ] Minify CSS, JS and HTML (enabled by default, can be disabled)
- [ ] Find a reliable way of measuring speed and emulating users. gor? https://github.com/buger/gor
- [ ] Cache complied templates, not only the final result.

Unusual features
----------------
- [ ] A function for specifying png images by using ` `, `-` and `*` for pixels inside a `[[``]]` block, while specifying a main color. This can be used as an alternative way to serve favicon.ico files or specify icon graphics. Same thing could be used for svg, but by specifying numbered vertices in a polygon. Update: Someone else has made a format for this! https://github.com/cparnot/ASCIImage

Maybe
-----
- [ ] Add configurable log hooks for the systems logrus supports. See: https://github.com/Sirupsen/logrus
- [ ] Use the path/filepath package for walking directories.
- [ ] Add a Lua function for outputting Lua tables to the client.
- [ ] Add a Lua function for fetching a value from a table, or a blank string.
- [ ] Add a Lua function for checking if a file exists.
- [ ] Mention the `jpath` package in the README.
- [ ] Support for plugins written in BF
- [ ] A flag to store the Bolt database inside the given zip file?
- [ ] Keep all configuration settings in Redis. Use an external package for handling configuration.
- [ ] Support for the [onthefly](https://github.com/xyproto/onthefly) package, as a virtual DOM.
- [ ] Websockets? WebRTC? Three.js? Web components?
- [ ] Use the goroutine functionality provided by gopher-lua to provide "trigger functions" that sends 1 on a channel when the function triggers, perhaps when a file is changed. Combine this with javascript somehow to make it possible to change the parts of a page when a happens.
- [ ] User functions shared by many lua pages should not be placed in `app.lua`, nor in a place related to the server, but be imported where they are needed. Either by importing a lua file, by importing a lua file by url or by connecting to a Lua Function Server.
- [ ] Make it possible to toggle the pretty error view on or off in `serverconf.lua`, for temporary debugging.
- [ ] Find a good way to store errors.
- [ ] Implement a page, with admin rights, that displays the last error together with the sourcecode, in a pretty way.
- [ ] Add a flag for specifying a different default set of URL prefixes with admin, user or public rights.
- [ ] Add a flag for detailed debug information at errors, or not.
- [ ] If a symbolic link to a directory is made, for instance /chat -> /data, then algernon should also apply user permissions to the symbolic link.
- [ ] Consider creating an alternative version that users permissionsql instead of permissions2
- [ ] Add a function for calling EVAL on the redis server, while sending Lua code to the server for evaluation.
- [ ] Re-run the Lua server script if changed. Restart the server if the addr or port is changed.
- [ ] Support SASS.
- [ ] Add a function tprint("file.tmpl", table) for github.com/unrolled/render.
- [ ] Add an option for exiting after any page has been visited once.
- [ ] simplegres and permissiongres, for PostgreSQL.
- [ ] Read zip files directly instead of decompressing when given as the first argument (downside: some Amber functions look for files in the same directory).
- [ ] Utilities to lint and package .alg archives.
- [ ] Add caching of compiled templates, before data is inserted.
- [ ] Vagrantfile
- [ ] Add a maximum file size limit when caching
- [ ] Whitelist and blacklist for which file extensions to cache
- [ ] Use golang/pkg/net/rpc/#Client.Go for calling plugins asynchronously. Let Lua provide a callback function.
- [ ] Configuration function for whitelisting URL prefixes.
- [ ] Functions for adding URL prefixes to the whitelist
- [ ] Lua function for reading the contents of a file in the script dir, but in a cached way.
      Timestamp, filename and data are stored in redis, if timestamp changes, data is re-read.
- [ ] web handlers should have access to setting up additional web handlers
- [ ] Add a lua function for removing all cache entries without a hit.
- [ ] Installer for OS X (pkg)

repository: strogo/algernon

repo_name: strogo/algernon


text:
# PSMeraki

This is a PowerShell module for Cisco Meraki REST API \([documentation](https://developer.cisco.com/meraki/api-v1/#!overview)\).
Not all avaiable Meraki REST API functions are included in this module.

New in v2.0.1 (NOVEMBER 2021):

- Reboot-Device fixed, now is a POST request (thanks @andrewzirkel)
- Added missing public functions. (thanks @StingzLD)
- Updated Cisco Meraki REST API documentation link.

New in v2.0 (JUNE 2021):

- Module now uses v1 endpoint (Can be switched back using set-mrkRestApiVersion -version v0 for backward compatibility)
- Inaddition to version Powershell 5.1 also tested on PowerShell and 7 under Windows and Linux.
- Fixed an issue where the module threw an error when a mrk cmdlet was used without a setting an apikey first.
- Removed a workaround for redirects sent by meraki which powershell was unable to handle.
- Moved Invoke-MrkRestMethod to public cmdlets to allow more flexibility. When a resource is missing in the existing cmdlets this cmdlet can be used to call the missing resource.
- Added Restart-MrkDevice

New in v1.1 (MAY 2019):

- Added cmdlts to configure Layer 3 & 7 Firewall rules
- Added cmdlts to configure Site to Site VPN.
- Fixed various bugs

## Install

Download and install the module from PSGallery:

```powershell
Install-Module -Name PSMeraki
```

OR

Download and extract the zip file.

Copy 'PSmeraki' directory to a module path.
These are the default values for PSModulepath:

- C:\Users\\-username-\Documents\WindowsPowerShell\Modules;
- C:\Program Files\WindowsPowerShell\Modules;
- C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules

Type in powershell:

`Import-Module PSMeraki`

running `Get-mrkNetwork` will ask for a Meraki API key.

Two things have to be configured in the Meraki dashboard:

1. Enable Rest API access, organization wide
2. Create Rest API key, for a dashboard user

Login to [the Meraki dashboard](https://account.meraki.com/secure/login/dashboard_login)

## Enable Rest API Access for the organization

API key has to be organization wide enabled, to do that, go to organization settings

![Image Meraki dashboard](https://imgur.com/LBzIhK3.png)

Scroll down to 'Dashboard API access' and tick the box to enable it.

![Image Meraki dashboard](https://imgur.com/iOXTiEJ.png)

## Create API key for your user

Go to profile settings

![Image Meraki dashboard profile link](https://imgur.com/ymjzujI.png)

In your profile, scroll down to 'API access'

![Image Meraki dashboard new API key](https://imgur.com/Dbux0J5.png)

Generate a new rest api key, its a 40 byte key.
Either remember it or store it in a safe location, this code represents your logged in Meraki dashboard user.
This is the 'rest api key' the module asks for.

## cmdlets

This module includes the following cmdlets:

```powershell
Add-MrkNetworkStaticRoute
Add-MrkNetworkVLAN
Get-MrkCameraVideoLink
Get-MrkDevice
Get-MrkDeviceClient
Get-MrkDeviceGroupPolicy
Get-MrkDevicesStatus
Get-MrkInventory
Get-MrkLicenseState
Get-MrkNetwork
Get-MrkNetworkBluetoothClient
Get-MrkNetworkDevice
Get-MrkNetworkGroupPolicy
Get-MrkNetworkMRL3FwRule
Get-MrkNetworkMxCfRule
Get-MrkNetworkMXL3FwRule
Get-MrkNetworkMXL7FwRule
Get-MrkNetworkRoute
Get-MrkNetworkSiteToSiteVPN
Get-MrkNetworkSSID
Get-MrkNetworkStaticRoute
Get-MrkNetworkVLAN
Get-MrkOrgAdmins
Get-MrkOrganization
Get-MrkOrgEndpoint
Get-MrkRestApiVersion
Get-MrkSAMLrole
Get-MrkSwitch
Get-MrkTemplate
Get-MrkTemplateNetworks
Get-MrkVPN
Invoke-MrkRestMethod
New-MrkDevice
New-MrkNetwork
New-MrkOrgAdmin
Remove-MrkDevice
Remove-MrkNetwork
Remove-MrkNetworkTemplate
Remove-MrkNetworkVLAN
Remove-MrkOrgAdmin
Restart-MrkDevice
Set-MrkDevice
Set-MrkNetworkSiteToSiteVPN
Set-MrkNetworkSSID
Set-MrkNetworkToTemplate
Set-MrkRestApiKey
Set-MrkRestApiVersion
Set-MrkSwitchPort
Update-MrkDevice
Update-MrkNetwork
Update-MrkNetworkMRL3FwRule
Update-MrkNetworkMXL3FwRule
Update-MrkNetworkMXL7FwRule
Update-MrkNetworkVLAN
Update-MrkOrgAdmin
```

repository: sanderkl/PSMeraki

gha_language: PowerShell

repo_name: sanderkl/PSMeraki


text:
---
layout: post
title: DarthMiner
date: 2019-03-18
year: 2018
categories: ["Trojan", "CryptoCurrencyMiner"]
author: "Ofer Caspi @shablolForce (CP Research)"
hashes: ["ebecdeac53069c9db1207b2e0d1110a73bc289e31b0d3261d903163ca4b1e31e"]
---
DarthMiner is a combination of EmPyre, a post exploitation backdoor, and XMRig cryptominer. The malware is distributed as a fake “Adobe Zii” application.

![](/assets/images/DarthMiner/darthminer_1.png)

*Source: Malwarebytes*

When executed, the malware will execute a shell command that will download and execute additional files. As result, EmPyre and XMRig are installed on the infected system.
![](/assets/images/DarthMiner/darthminer_2.png)

*Source: CheckPoint*

The malware will also create the LaunchAgent “com.apple.rig.plist” so the XMRig will start automatically on system boot.
![](/assets/images/DarthMiner/darthminer_3.jpg)

*Source: CheckPoint*

**Links:**

- [Mac malware combines EmPyre backdoor and XMRig miner](https://blog.malwarebytes.com/threat-analysis/2018/12/mac-malware-combines-empyre-backdoor-and-xmrig-miner/){:target="_blank"}

repository: CheckPointSW/MacOS-MalwarePedia

repo_name: CheckPointSW/MacOS-MalwarePedia


text:
### Storage Node Management Tools.  Author: Wayne Workman
---

This is a collection of scripts written to ease management of many FOG Storage nodes and also some scripts to help with automated fog testing. This script collection can manage as many Storage Nodes as you include in the settings.sh file. Output is short and simple, and gives a simple "Success" or "Failure" message for each node. If you get a failure message, the script will continue. Most scripts execute commands on all nodes in unison.

These scripts are tested working on CentOS 7, Debian 8, Fedora 25, Ubuntu 14, Ubuntu 16.

Do not use this script to update FOG on your main fog server, it must come first and therefore should be done manually.

This script collection is dependent on ssh pki authentication being setup between the system doing the updates, and makes use of aliases. You may set these things up manually, or you may use a tool I created to do this for you. Find that tool at the below link:

https://github.com/wayneworkman/ssh-pki-setup

To setup the aliases and authentication manually, in your workstation home directory, create `.ssh/config` and create aliases here. Create an ssh key-pair, and place the public key on all nodes inside of `/root/.ssh/authorized_keys` There's a lot of internet documentation about creating ssh aliases and keypairs. Create the alaises exactly as the nodes are named in Virsh if you're using virsh.

All files in this directory are subject to the fog-community-scripts license.

repository: FOGProject/fog-community-scripts

gha_language: Shell

repo_name: FOGProject/fog-community-scripts


text:
FORTRAIT.JS

Library documantation and specifications

Minimalist javascript library for simple graphics including transitions, sliders and graphical interface elements.

1. Fader()
is a function for a image slider that transitions between two sequencial pictures in a set.
it needs to be used with the controls (controlDiv) in order to invoke the Prev or Next movement.
It is added by including class="slideshow" in a parent div and class="slideshow wrap" in a child div that contains the picture set.

repository: muzigumede/JavaScriptLib

repo_name: muzigumede/JavaScriptLib


text:
# engage_api_php
Examples of accessing Engage via the API with PHP.

This repository contains demonstrations of using the Salsa Engage API with PHP.

These demos were *not* written by a PHP developer.  Please feel free to make a pull request if you'd like to improve them.

# Dependencies

These apps depend upon these tools and libraries.

* [Composer](https://getcomposer.org/)
* [GuzzleHTTP](http://docs.guzzlephp.org/en/stable/)
* [Symfony YAML](http://symfony.com/doc/current/components/yaml.html)
* [Salsa Engage API Doc](https://help.salsalabs.com/hc/en-us/articles/115000341773)

# Installation (brief)

Use these steps to install and equip this repository.

1. [Clone this repository.](https://github.com/salsalabs/Engage_api_php)
1. [Install composer.](https://getcomposer.org/)
1. Install dependencies
``` bash
composer require guzzlehttp/http
composer require symfony/yaml
composer upgrade
```

# License

Please read the LICENSE file.

# Notes

## 15-Jan-2019

I've refactored the sources to us a parameter file provided in the command line.  This lets you
try out different ideas and setting without having to dig around in the source first.

The most obvious change is that each application needs to have a `--login` parameter.
```
php src/whatever.php --login YAML_Login_File.yaml
```
"YAML_Login_File.yaml" can be any valid YAML file.  All YAML files need to have at least the Engage token and the hostname.  Here's a sample.
```yaml
token: your-incredibly-long-engage-token
host: api.salsalabs.org
```
Other contents may be required by the applications.  Every source file in this repository has a sample YAML file in the opening comments.  Use that as a template, then fill in stuff for your own situation.  Here's an example from `search_fundraising_by_activityid.php`.

```yaml
token:          "your-incredibly-long-token"
identifierType: FUNDRAISE
modifiedFrom:   "2018-07-01T00:00:00.000Z"
modifiedTo:     "2018-07-31T23:59:59.999Z"
activityIds:
    - "3a05282d-c648-4c9f-a880-574211b019d6"
    - "04afe721-ac62-4b2e-aa66-bc6cba7fac71"
    - "17fd2a78-4ff6-4f3a-b2b1-278355716eff"
    - "3a05282d-c648-4c9f-a880-574211b019d6"
    - "48b25138-a021-4eff-89d2-7161d1caed29"
    - "54ecf33b-b7f7-4d83-85d8-eb9ffac97a66"
```
If you need a sample file to copy, then see  `params-template.yaml`.

# Questions? Issues?

Use the [Issues](https://github.com/salsalabs/engage_api_php/issues) page in
GitHub to ask questions and report issues.

license: Unlicense


text:
# RL Evaluation Plots
A simple Jupyter notebook to visualize the results of RL experiments stored in Tensorboard log files with Matplotlib.

## Features
- Extracting Pandas dataframes from Tensorboard log files
- Aggregation of multiple seed runs (standard deviation)
- One plot or multiple plots

## Exemplary visualizations
### One plot
![plot](./images/img_1.png)

### Multiple plots
![plot](./images/img_2.png)

## Credits
Tensorboard data extraction by: [supermariopy](https://github.com/theRealSuperMario/supermariopy)

repository: janwithb/rl-evaluation-plots

repo_name: janwithb/rl-evaluation-plots


text:
---
id: loanCorp
title: Loan Corp
sidebar_label: Loan Corp
---

import YouTube from 'react-youtube';
import useBaseUrl from '@docusaurus/useBaseUrl'; // Add to the top of the file below the front matter.
import { render } from "react-dom";
import Carousel from "../docs/loanCorp/slides";
import Features from "../docs/loanCorp/features";
import Personas from "../docs/loanCorp/personas";
import "react-responsive-carousel/lib/styles/carousel.min.css";

Loan Corp is a loan processing system that automates the workflow using the Camunda BPM. It comprises of three profiles, including the applicant, loan processor, and relationship manager. When an applicant submits a loan request, the processor approves or rejects the application. In some cases, depending on the applicant's report, the relationship manager can re-evaluate the application. You can track each stage in the individual app.

---

## Personas

Customer

Apply for loan

Upload document

E-sign document through docusign

View the loan status

          Launch App

Loan Processor

View loan applications

Add W2 section

Automates loan approval or rejection

Send for site visit request

          Launch App

Relationship Manager

Review moderate-rated application

View customers' profile

Submit site visit request report

          Download App

---

## Features of WM and Prefabs used

Here are some of the value added features and prefabs from the WM applications

<Features />

---

## Screen Shots

<Carousel />

repository: wavemaker/showcase-apps

gha_language: CSS

repo_name: wavemaker/showcase-apps


text:
# RoboConWorkshop2020 - End-to-end testing through multiple interfaces

Welcome to the repository for our workshop!

[Click here to come to the presentation](https://prezi.com/view/En9AeCy2cxu7i6kOqkAi/)

## Download

If you are unfamiliar with git, I recommend you yo to download this repository as a zip file. Just click on the green *Clone or download* button and select *Download ZIP*.

## Installation Package

We have included a installation file for the libraries that we suggest that you use (you are more than welcome to use other libraries to solve the task).

To install the package in your current python enviroment, all you need to do is to run:

```
pip install -r requirements.txt
```

from inside the repository folder.

---

## Optional - Virtual Enviroment

If you don't want to install the package in your current python enviroment you can follow the instructions down below on how to set up a virtual enviroment.

---

### Windows

To create the virtual enviroment in Windows run this command in the root of the workshop directory:

```
python3 -m venv .\Python_Enviroment
```

#### Activating the virtual enviroment in cmd.exe

If you are using cmd.exe, run this command to activate the virtual enviroment:

```
.\Python_Enviroment\Scripts\activate.bat
```

After activating the enviroment you can follow the instructions up in *Installation package*. The libraries will only be installed in the virtual enviroment.

#### Activating the virtual enviroment in PowerShell

If you are using Powershell, run this command to activate the virtual enviroment:

```
.\Python_Enviroment\Scripts\Activate.ps1
```

After activating the enviroment you can follow the instructions up in *Installation package*. The libraries will only be installed in the virtual enviroment.

---

### Mac and Linux

To create the virtual enviroment in Mac or Linux run this command in the root of the workshop directory:

```
python3 -m venv /Python_Enviroment
```

To activate the enviroment run this:

```
source Python_Enviroment/bin/activate
```

After activating the enviroment you can follow the instructions up in *Installation package*. The libraries will only be installed in the virtual enviroment.

gha_language: Python


text:
# duomorphsim

this package help you to give glassomorphic+ neomrphic both effects to a container (at a time).

![WhatsApp Image 2021-08-21 at 5 20 05 PM](https://user-images.githubusercontent.com/64513385/130320848-f8266097-3157-4bf0-ad07-01842512669b.jpeg)

## Usage
`DuoMorphicCard` need four argument which is `child`, `width`, `height` and `radious` of card

```dart
            DuoMorphicCard(
              height: 200,
              width: 200,
              blur: 5,
              innerShadowColor: Colors.grey,
              radius: BorderRadius.circular(10),
              cardBackgroundColor: Colors.white,
              opacity: 0.5,
              offset: Offset(-5, -5),
              child: Center(
                child: Text('Hello World'),
              ),
            ),

```

gha_license_id: NOASSERTION


text:
# hw3-password-generator

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)]

#Description

This front-end application creates a password using alerts to specify the character criteria for the password.

# Table of Contents

* [Usage](#usage)

* [License](#license)

* [Contributing](#contributing)

* [Questions](#questions)

# Usage

The user can select to generate a new password, the user will follow the prompts to create a new password. Copy the password and use it to your hearts content.

# License

This application is covered by the MIT license.

# Contributing

Contributors: Samuel Montague

# Questions

If you have any questions about the repo, open an issue or contact me directly at<EMAIL_ADDRESS>You can find more of my work at (https://github.com/SamuelMontague/).

repository: SamuelMontague/passwordGenerator

repo_name: SamuelMontague/passwordGenerator


text:
---
layout: post
title: Perceptions are not reality
excerpt: Perils of Perception 2015, Ipsos MORI’s latest version of the Perils of Perception survey highlights how wrong the public across 33 countries are about some key issues and features of the population in their country.
author: graham_higgins
date: 2015-12-05T15:43:00+01:00
tags: []
---

Contextual intel from [ipsos mori, 2015-12-05](https://www.ipsos-mori.com/researchpublications/researcharchive/3664/Perils-of-Perception-2015.aspx)

> “We’re delighted to share the latest findings from Perils of Perception 2015. This year we have included new questions on key issues such as obesity, inequality and the proportion of female politicians in each country. The study is also larger than ever with 33 countries taking part for 2015.”

There's [a slide set](https://www.ipsos-mori.com/_assets/sri/perils/slides/)

*(excerpt from ipsos mori web site)*

In Great Britain we get a lot of things very wrong …

> The wealth that the top 1% own: we massively overestimate the proportion of wealth that the wealthiest 1% own. The average guess is 59% when the actual figure is 23%. In fact, Britain is the most wrong on this out of any of the 33 countries included in the study. And when asked what % they think the wealthiest 1% SHOULD own, the public say on average 20%, only slightly below the actual figure.
>
> Obesity: weight is a growing public health issue, but our survey suggests we aren’t as worried about it as we should be. Britons think 44% of those aged over 20 are overweight or obese, but the actual figure is much higher at 62%.
>
> The non-religious population: we hugely over-estimate the proportion of atheists, agnostics and those who do not affiliate themselves with any religion – the average guess is 45% when the actual figure is almost half that (25%).
>
> Immigration: we think 25% of the population are immigrants – nearly twice the actual figure of 13%.
>
> 25-34 year-olds living with parents: perhaps reflecting concern about the difficulties young people face getting on the housing ladder, we hugely overestimate the proportion of 25-34 year olds who still live with their parents. The average guess is 43%, which is three times the actual figure of just 14%.
>
> Average age: we think the British population is much older than it actually is – the average estimate is 51 years old, when the average age is only 40. The widespread discussion of our ageing population seems to have stuck with people.
>
> Population aged under 14: despite the perception that the population is on average older than it actually is, Britons also greatly overestimate proportion of the population aged under 14, at 27% – much higher than the real figure of 17%.
>
> Female politicians: we slightly underestimate the number of female MPs in the House of Commons. The average guess is 23% when the actual figure is 29%.
>
> Female employment: Britons correctly guess that most women are in work, although slightly underestimate the real figure. On average we think 60% of working age women are in employment when the real figure is 68%.
>
> Rural living: Britons think that many more of us live in rural areas than really do – and by implication underestimate how urban our population is. On average, the public guess that 30% of the population lives in rural areas, when the actual figure is only 18%.
>
> Internet access: The explosion in internet access we’ve seen over recent years is well documented, but even so Britons slightly underestimate how widespread it is. On average, we guess that eight in ten (81%) of us have access to the internet at home through a computer or mobile device, when the actual figure is 90%.

Another $64K question: when they write “the actual figure is ...”, is it? Is it actually, actually?


text:
# PCA for categorical data
We can use this to visualize high dimensional categorical data.

$$p(z_i) = N(0,I) \\
p(y_i|z_i, \theta) = \prod_{r=1}^R \text{Cat}(y_{ir}|S (W^T_r z_i + w_{0r}))
$$

* $W_r \in R^{L \times M}$ is a loading matrix for response $j$
* $w_{or} \in R^M$ is offset term for response $r$
* $\theta = (W_r, w_{or})_{r=1}^R$
* $\mu_0 = 0$ s the prior mean (we can capture non zero mean by changing $w_{0j}$)
* $V_0 = I$ is the prior variance (we can capture non-identity covariance by changing $W_r$)

# Supervised PCA (Bayesian factor regression)

This is a model like PCA but it also takes the target variable $y_i$ into account when learning the low dimensional embedding.

![](../.images/machine_learning/supervised_pca.png)

$$p(z_i) = N(0, I_L) \\
p(y_i|z_i) = N(w^T_y z_i + \mu_y, \sigma^2_y) \\
p(x_i| z_i) = N(w_x z_i + \mu_x, \sigma^2_x I_D) $$

Since the model is jointly Gaussian we have:

$$y_i|x_i \sim N(x_i^Tw, \sigma^2_y + w_y^T Cw_y)$$

* $w = \Psi^{-1}W_xCw_y$
* $\Psi = \sigma^2_x I_D$
* $C^{-1} = I + W^T_x \Psi^{-1}W_x$

# Partial least squares

Is a more "discriminative" for of supervised PCA. The key idea is to allow some of the variance in the input features to be explained by its own subspace $z_i^x$ and let the rest of the subspace $z_i^s$ be shared between input and output.

![](../.images/machine_learning/partial_least_squares.png)

The model:

$$ p(z_i)  = N(z_i^s| 0, I_{L_s})N(z_i^x| 0, I_{L_x}) \\
p(y_i|z_i) = N(W_y z_i^s + \mu_y, \sigma^2 I_{D_y}) \\
p(x_i|z_i) = N(W_x z_i^s + B_x z_i^x + \mu_x, \sigma^2 I_{D_x})
$$

The corresponding induced distribution on the visible variables has the form:

$$ p(v_i| \theta) = \int N(v_i| Wz_i + \mu, \sigma^2I) N(z_i|0, I)dz_i = N(v_i|\mu, WW^T + \sigma^2I)$$

* $v_i = (x_i ; y_i)$
* $\mu = (\mu_y ; \mu_x)$

And:

$$ W = \begin{bmatrix}
W_y & 0 \\ W_x & B_x
\end{bmatrix}
 $$

# Canonical correlation analysis

Canonical correlation analysis or  CCA is like a symmetric unsupervised version of Partial least squares. It allows each view to have its own “private” subspace, but there is also a shared subspace. If we have two observed variables $x_i$ and $y_i$ then we have three latent variables, $z_i^s \in R^{L_0}$ wich is shared, $z_i^x \in R^{L_0}$and $z_i^y \in R^{L_0}$ which are private. We can visualize the model as:

![](../.images/machine_learning/cannonical_correlation_analysis.png)

$$
p(z_i) = N(z_i^s| 0, I_{L_s}) N(z_i^x|0, I_{L_s})N(z_i^y| 0, I_{L_y}) \\
p(x_i|z_i)  = N(x_i| B_x z_i^x + W_x z_i^s + \mu_x, \sigma^2I_{D_x}) \\
p(y|z_i) = N(y_i | B_y z_i^y + W_y z_i^s + \mu_y, \sigma^2 I_{D_y})
$$

The observed joint distribution has the form:

$$
p(v_i| \theta) = \int N(v_i| Wz_i + \mu, \sigma^2 I)N(z_i| 0, I) dzi = N(v_i| \mu, WW^T + \sigma I_D)
$$

where

$$
W = \begin{bmatrix}
W_x & B_x & 0 \\ W_y & 0 & B_y

\end{bmatrix}
$$


text:
---
layout: default
---

# 1993-07-04 - Re: "Wired" has more than one cover--why? (fwd)

## Header Data

From<EMAIL_ADDRESS>(Mitchell Kapor)

To: Mike Godwin<EMAIL_ADDRESS>Message Hash: ca09f60eef9a92c8d224caf3f0b8cc8c47783300f91d9d06941d07b600945b07

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1993-07-04 01:41:34 UTC

Raw Date: Sat, 3 Jul 93 18:41:34 PDT

## Raw message

```
{% raw  %}From<EMAIL_ADDRESS>(Mitchell Kapor)
Date: Sat, 3 Jul 93 18:41:34 PDT
To: Mike Godwin<EMAIL_ADDRESS>Subject: Re: "Wired" has more than one cover--why? (fwd)
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

They decided that West Coast covers should feature Peter Gabriel and the
East Coast covers Mitch Kapor.  Something about rock and roll playing
better on newsstands than policy everywhere but the Northeasteast corridor.
 All subscribers got the Gabriel cover.

As the Wired editor told me this split cover was a last minute decision and
a first-time experiment.  The Cypherpunks were on the cover all of copies
of issue #2.

------------------------------------------------------------------------------
                Mitchell Kapor, Electronic Frontier Foundation
     Note permanent new email address for all correspondence as of 6/1/93
<EMAIL_ADDRESS>

{% endraw %}
```

## Thread

+ Return to [July 1993](/archive/1993/07)

+ Return to<EMAIL_ADDRESS>(Mitchell Kapor)](/authors/mkapor_at_kei_com_mitchell_kapor_)"

+ 1993-07-04 (Sat, 3 Jul 93 18:41:34 PDT) - Re: "Wired" has more than one cover--why? (fwd) -<EMAIL_ADDRESS>(Mitchell Kapor)_


text:
---
author: izabela
tags:
  - development
  - business
date: 2023-02-10T09:44:23.326Z
meaningfullyUpdatedAt: 2023-03-23T12:17:57.544Z
title: ChatGPT vs. Bard – Which AI Chatbot is Better?
layout: post
image: /images/chat_ai_comparision.png
hidden: false
comments: true
published: true
language: en
---
**ChatGPT-4 or Bard AI? What is better? After Google released a beta version of Bard we finally have more data to compare. The article is regularly updated. Feel free to bookmark/pocket it for later.**

## AI chat got into mainstream

It’s not something new to include AI in software development. However, products like ChatGPT moved AI to the mainstream and showed globally its potential. If you think about implementing AI chats in your software products, first **check out the main differences between the two best-known AI chats** at the moment.

Do you want to use AI in your software?

Contact us if you want to enhance your software with AI to shorten development time and stay ahead of your competition.
<button>let's talk about your product</button>

## Finally, Bard AI is here (if you are in the US or UK)

March 2023 is full of more exciting updates about ChatGPT and Bard AI:

* ChatGPT-4 is released for Plus subscribers. It costs $20 a month.
* Bard AI beta version is released for users from US and UK.

As a result, we’ve got bigger possibilities to compare both solutions.

## Bard vs ChatGPT language models

Bard is powered by [LaMDA](https://blog.google/technology/ai/lamda/). However, ChatGPT is based on [GPT](https://platform.openai.com/docs/models/gpt-3). What does it mean for us – users? Putting aside technology differences, from users' perspective Bard should provide more up-to-date information.

LaMDA 👉 Provides **real-time responses** and has access to up-to-date information and data.

GPT-4 👉 Don’t provide real-time data. **Its knowledge doesn’t go beyond September 2021**.

## Integration with search engines

**Chat-GPT** is available while using the **Edge** browser and **Bing** search engine. So everything stays in the Microsoft family.

**Bard** beta is exclusively available with the **Google** search engine. However, various browsers support it, including **Chrome, Safari, Firefox** or **Opera**.

Will implementing ChatGPT with Bing be a first step to becoming a real competition against Google? Many have tried, but no one succeeded (yet?).

Source: [Digital 2023 Global Overview Report](https://datareportal.com/reports/digital-2023-global-overview-report)

Data from the recent “Digital 2023 Global Overview Report'' shows a clear dominance. However, **AI might make the competition exciting for the first time in 20 years**.

<YouTubeEmbed url='https://www.youtube.com/watch?v=yMpj33Y95ZU' />

Adding an AI chat solution to Google seems essential to stay ahead of competitors. However, there might be **reasons why Google didn’t rush into that**, even though they definitely worked hard on their own AI chat solution.

According to the promotional material provided by Google, we can assume that Bard will take over a SERP (search engine results page) position zero (a top position of the organic search results).

<TwitterEmbed url='https://twitter.com/sundarpichai/status/1622674382069059591' />

It might make it even harder to organically build your website traffic. And what about advertisers? Where will be their place in this new equation?

The challenge behind Bard

Figuring a way that will satisfy advertisers, publishers and generally content creators might be more challenging than building the Bard itself.

## Which one is better for programmers?

Unfortunately, I didn’t have a chance to test Bard AI yet. But there is more and more information from users, who has access to it, that Bard is reluctant to generate code. As we know ChatGPT has no problem with that. Obviously, the code quality is another issue. It still should be assessed by a developer.

However, at the moment is hard to see Bard as a handful tool for software developers.

## ChatGPT and Bard prices

ChatGPT-4 is available in the Plus subscribers plan which costs $20 a month. When it comes to Bard - not many people have access to it at the moment. However, assuming that it is going to be a part of our Google search experience, then it might be free(?).

## Last but not least – ChatGPT and Bard both make mistakes 😉

Let’s start with ChatGPT which is widely used across the globe. Let us show you one example of ChatGPT's problematic response:

Source: [https://theconversation.com/](https://theconversation.com/chatgpt-is-great-youre-just-using-it-wrong-198848)

Take a look at number 4. Garry Wills didn't write the ”Emancipation Proclamation”. Abraham Lincoln did.

When it comes to Bard not many people had the opportunity to test its “truthfulness”. Yet Google offered help. Thanks to the official promo material we could see that the [bot made mistake](https://www.scmp.com/news/world/united-states-canada/article/3209563/googles-chatgpt-rival-bard-gives-wrong-answer-ad-sending-shares-diving). Whether Google wants it or not we can be sure that any data from AI chats should be verified by a human.

## Using AI in software development

We will **continue to observe the development of ChatGPT as well as the beginnings of Bard**. We will let you know how you could implement it for your business. **If you want to know more about using AI in your software products, just [contact us](/start-project/) and book a free consultation**.

Looking for AI software experts?

Let's talk about AI in your business. Contact us and we will get back to you in 48 hours.
<button>let's talk about AI</button>

repository: bright/new-www

branch_name: refs/heads/gatsby

gha_language: TypeScript

repo_name: bright/new-www


text:
---
title: "Startups Are a Beauty Contest"
date: 2020-05-20T09:44:57-04:00
draft: false
tags:
- startups
- keynes
- beauty contest
---

One of the hard truths in startups, especially VC funded startups, is that perception matters more than reality. Many people are able to raise vast amounts of money at high valuations on little more than excitement about the prospect of a viable business some time in the future.

Most VCs earn their living from fees, and they earn more in fees when valuations go up, followed by subsequent funding rounds, with larger amounts of capital invested. VCs don't usually invest their own money, they typically invest other people's money. Thus, they aren't really incentivized to see their companies succeed, but rather they want to make their companies _appear_ successful. That is to say, the perception of success matters more than actual success.

This is a topic Keynes wrote about. [From Wikipedia](https://en.wikipedia.org/wiki/Keynesian_beauty_contest):

> It is not a case of choosing those [faces] that, to the best of one's judgment, are really the prettiest, nor even those that average opinion genuinely thinks the prettiest. We have reached the third degree where we devote our intelligences to anticipating what average opinion expects the average opinion to be. And there are some, I believe, who practice the fourth, fifth and higher degrees.

This also applies to the entire stock market, which is more akin to a Ponzi scheme than anything. People buy stocks because they think they will be able to sell them for more than they paid for them, at some point in the future.

When companies aren't being valued based on their current revenue, or dividends, or any other "fundamental" metric, then you're merely speculating that some fool down the line will be willing to pay more than you for the same magic beans you just bought.

repository: brndnmtthws/brndn-io

repo_name: brndnmtthws/brndn-io


text:
# NSL-feedback
Project 2 for Nonlinear Systems Lab

To run:

> pipenv shell
> python display.py

Potential working DSLR to Python:

> sudo modprobe v4l2loopback
> gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc fd=0 ! decodebin name=dec ! queue ! videoconvert ! video/x-raw,format=YUY2 ! tee ! v4l2sink device=/dev/video1

Current Camera Settings that working

- Auto-lighting off
- Canon EOS 60-D
- IT's Optima HD65 (Q89F943AAAAACO937)
- Projector Sharpness at highest settings
- Auto-focus off
- Camera standing directly behind projector

Other setting adjustment here: https://www.ortery.com/ortery-software-camera-settings-page/canon-dslr-camera-settings/

Desired Functionality (**BOLD** required by Thursday, *Italics* desired by Thursday):

- [] Simulate camera settings
	- [x] **Brightness**  - b+, v-, c(compensation)
	- [] *Contrast*
	- [] Zoom
	- [x] Translation - asdf
	- [] Rotation
	- [] Keystone
	- [] Frame Rate
	- [] Time Delay
- [] Live editing camera settings
	- [] *Sliders below window for each setting*
- [] Overlay Effects
	- [x] **4 crosshairs on a circle (custom opencv fine)** - g
	- [] Center Dot (custom opencv fine)
	- [x] Arbitrary Initial Condition Images (overlaying PNG) - o
- [x] **Save images** - x
- [] Save Video

Steps before Presentation:

- [] Charlie fixes settings so we don't have stupid lighting stuff
- [] Image Demonstrations of:
  - [] Recursion
	- [] "Chaos"
	- [] Growth
- [] Within Chaos, at least one video each of:
	- [] Low frequency SC
	- [] Medium Frequency SC
	- [] High Frequency SC
- [] MATLAB Code Modification
	- [] Video Input
		- [] Output a vector of max frequency content at each frame
		- [] Output a vector of angle intensity calculation
			- [] Do not include 90-180-270-360 as max
	- [] Graph frequency vs time for various starting conditions
	- [] Graph angle intensity vs time for various starting conditions

repository: HALtheWise/NSL-feedback

repo_name: HALtheWise/NSL-feedback


text:
---
title: Insecure Direct Object Reference (IDOR) at Filkom Apps
date: 2021-01-03 12:45:47 +07:00
tags: [write-up]
description: IDOR at Filkom Apps!
comments: true
---

# Introduction - IDOR
---
**IDOR (Insecure Direct Object References)** is a security vulnerability in which a user is able to access and make changes to data of any other user present in the system. This will result in a serious security flaw in the web application. This attack is usually occur when the internal implementation object, without any validation mechanism which allows attackers to manipulate these references to access unauthorized data.

In this write up I will explain how i found IDOR vulnerability at Filkom Apps Website that can leak the short semester pre-KRS data including what subject they take, the GPA, the student's detail (phone number, email, etc.), and proof of  pre-KRS payment.

This attack also reveals the storage patterns / identifiers for the data in the backend and database systems to the attacker. Knowledge of storage identifiers allows the attacker to launch an **enumeration attack**. An enumeration attack can be described as where the attacker builds a collection of valid identifiers using the discovered pattern and test them against the application.

# Proof of Concept
---

Fig 1. Filkom Apps.

This happened when I was opening the Filkom Apps website to fill in data for my short semester pre-KRS. After I fill in all the required data, I need to print out my document that i fill earlier with "Cetak Pendataan" menu 👇.

Fig 2. Print short semester document.

Then if I press the highlighted button, i got directed to the print page with my Nomor Induk Mahasiswa (NIM) number in the URL 👇.

Fig 3. Print pre-KRS page.

I tried to enter another NIM number (besides my NIM) in the URL and run it in the browser. Here I will use the ***"xxxx1018"*** NIM. Turn out I can access other student's short semester pre-KRS data! It displays the student's GPA too!

Fig 4. Pre-KRS IDOR!

Secondly, I encountered another IDOR vulnerability at the "Cetak Kuitansi" menu.

Fig 5. "Cetak Kuitansi" menu.

If I press the "Cetak Kuitansi" button, i got redirected to the print receipt page.

Fig 6. Print receipt page.

On that page there is a short semester application program form along with the short semester study plan card. The information shown above are student's NIM, name, study program, GPA of the previous semster, etc. and we can also see additional information in such a phone number and email.

Immediately, I changed my NIM to someone else's NIM. Here, I will use the previous NIM, "***xxxx1018"***. Again, I can access someone else's short semeser receipt through this IDOR vulnerability!

Fig 7. Print receipt page IDOR.

Furthermore, I also found IDOR when at the proof of payment menu. We can see the file we uploaded earlier (proof of payment, practicum value, etc.) by pressing the "Lihat ..." menu. Now I clicked to the "Lihat Bukti Bayar" menu that leads to another IDOR.

Fig 8. "Lihat Bukti Bayar" button.

I get a pop-up page containing the file we uploaded earlier (Proof of Payment file).

Fig 9. Proof of Payment pop-up page.

Then I observed the process that occurs between the two things above by using the **Developer Tools** on the Mozilla Firefox Browser by pressing the **F12** key.

Fig 10. Developer Tools.

It turns out the browser will make a request to the URL below.
```
https://REDACTED/BYR_xxxx1017xxxx.pdf
```
It displays the contents of the page via pop-up page. If we follow the URL, we can see that the NIM number is being used again in the URL which allows us to do another IDOR!

Fig 11. Pop-up page.

I changed the NIM number in the url and the payload results to below code.
```
https://REDACTED/BYR_xxxx1018xxxx.pdf
```
And it worked! We can see other student's Proof of Payment file!

Fig 12. Proof of Payment IDOR.

# Conclusion
---
This is occured because of the internal implementation object without any validation mechanism. Thanks for reading my write-up!

repository: wuvel/jekyll-klise

repo_name: wuvel/jekyll-klise


text:
---
title: Windows Device Check
short_summary: Check for security status of Windows devices
---

  If Windows is not your primary OS, you can download sample Virtual Machines
  (with time limitations) from Microsoft through their project to improve IE
  support via https://www.modern.ie/en-us/virtualization-tools#downloads (see
  also
  http://www.makeuseof.com/tag/download-windows-xp-for-free-and-legally-straight-from-microsoft-si/
  and
  https://modernievirt.blob.core.windows.net/vhd/virtualmachine_instructions_2014-01-21.pdf)

  **Windows 10**

  * OS Security Updates

  GUI: Start --Settings --Update & Security --Windows Update

  * Firewall

  GUI: Start, type Firewall (select Windows Firewall)

  * Privacy

  GUI: Start --Settings -- Privacy

  * Anti-Virus Version

  * User privilege

  GUI: Start, type 'User Account', select "Change User Account Control settings"

  * Drive Encryption

  GUI: Bitlocker
  https://docs.microsoft.com/en-us/windows/device-security/bitlocker/bitlocker-device-encryption-overview-windows-10

  * Services Running

  GUI: Start, type "Task Manager"

  **Windows 8**

   * OS Security Updates

   Control Panel Programs and features installed updates

   CLI:
   http://www.techsupportalert.com/en/quick-and-easy-way-list-all-windows-updates-installed-your-system.htm

   * Firewall

  GUI: Start (or Down Arrow Icon, PC Settings) -- Control Panel -- Windows
  Firewall

  CLI:

  ```Netsh Advfirewall show allprofiles```

  more detail:
  http://windows.microsoft.com/en-us/windows-8/windows-firewall-from-start-to-finish

   * Anti-Virus Version

   * User privilege

   * Drive Encryption

  Look for: Bitlocker, VeraCrypt. https://diskcryptor.net/wiki/Main_Page

   * Services Running

  GUI: Right-Click on bottom taskbar, select "Task Manager"

  **Windows 7**

  In Windows 7, (GUI) Control Panel -- All Control Panel Items -- Action Center
  (Security tab) provides a quick run-down of most security features installed
  and their update status. It does not show drive encryption or specific
  versions.

   * OS Security Updates

   * Firewall

  GUI: Control Panel -- All Control Panel Items -- Windows Firewall

  CLI:

  ```Netsh Advfirewall show allprofiles```

   * Anti-Virus Version

   * User privilege

  GUI: Control Panel -- All Control Panel Items -- User Accounts and checking
  also the User Account Control settings.

   * Drive Encryption

  GUI: Control Panel -- All Control Panel Items -- BitLocker Drive Encryption;
  also look for VeraCrypt, https://diskcryptor.net/wiki/Main_Page

   * Services Running
  CLI:

  ```tasklist```

  GUI: Right-click on task bar, select "Start Task Manager"

  Advanced: Use TechNet/SysInternal's Process Explorer:
  http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx

  **Windows XP**

  If user is still operating on windows XP, recommendation is to upgrade to
  later windows. Windows XP is no longer supported and is not receiving security
  updates: https://www.microsoft.com/windows/en-us/xp/end-of-xp-support.aspx

  If there is an organizationally critical system relying on Windows XP,
  removing it from the network and carefully managing data exchange with it may
  provide a bridge solution until a replacement process can be funded and rolled
  out.

repository: SAFETAG/SAFETAG

repo_name: SAFETAG/SAFETAG


text:
# Project Title

Geocoding Automation
The code will run the following process.
Loop through all the excel spreadsheet in the folder, convert them into csv file and emilinate unwanted columns.
Go to all the csv files and geocode the addres then insert them into postgres database.

## Getting Started

Place the python code in a folder and doulbel click to run it.

### Prerequisites

ogr2ogr package.
Google Api License.

## Authors

* **Michael Chuang** - *Initial work* - [Mhychuang](https://github.com/Mhychuang)

## License

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

## Acknowledgments

Ballingam, Chepuri