mattizz'z weblog

Een rustpunt in barre tijden

Step 1 — Installing Apache Tools

You’ll need the htpassword command to configure the password that will restrict access to the target website. This command is part of the apache2-utils package, so the first step is to install that package.

sudo apt-get install apache2-utils

Step 2 — Setting Up HTTP Basic Authentication Credentials

In this step, you’ll create a password for the user running the website.

That password and the associated username will be stored in a file that you specify. The password will be encrypted and the name of the file can be anything you like. Here, we use the file /etc/nginx/.htpasswd and the username nginx.

To create the password, run the following command. You’ll need to authenticate, then specify and confirm a password.

sudo htpasswd -c /etc/nginx/.htpasswd nginx

You can check the contents of the newly-created file to see the username and hashed password.

cat /etc/nginx/.htpasswd

Example /etc/nginx/.htpasswd

nginx:$apr1$ilgq7ZEO$OarDX15gjKAxuxzv0JTrO/

Step 3 — Updating the Nginx Configuration

Now that you’ve created the HTTP basic authentication credential, the next step is to update the Nginx configuration for the target website to use it.

HTTP basic authentication is made possible by the auth_basic and auth_basic_user_file directives. The value of auth_basic is any string, and will be displayed at the authentication prompt; the value of auth_basic_user_file is the path to the password file that was created in Step 2.

Both directives should be in the configuration file of the target website, which is normally located in /etc/nginx/sites-available directory. Open that file using nano or your favorite text editor.
sudo nano /etc/nginx/sites-available/default

Under the location section, add both directives:

server_name localhost;

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
auth_basic “Private Property”;
auth_basic_user_file /etc/nginx/.htpasswd;
}
. . .

Save and close the file.
Step 4 — Testing the Setup

To apply the changes, first reload Nginx.
sudo service nginx reload

Zo ziet mijn /etc/nginx/sites-available/default eruit op de Raspberry Pi 3 B+ waar de monitor 1 (slimme meter) software op draait (Bijna alle #-regels weggelaten):

server {
listen 80 default_server;
listen [::]:80 default_server;

root /p1mon/www;
index index.php index.html index.htm;

server_name localhost;

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
auth_basic “Inlog”;
auth_basic_user_file /etc/nginx/.htpasswd;

}

# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_read_timeout 305;
}
}

https://www.digitalocean.com/community/tutorials/how-to-set-up-basic-http-authentication-with-nginx-on-ubuntu-14-04

The group was formed in Philadelphia during 1976 by bassist Cedric Napoleon, drummer Curtis Harmon, and keyboardist James Lloyd who were all teenagers at the time. The group based their name on “Pieces of Dreams”, a Michel Legrand tune recorded by Stanley Turrentine that they regularly performed. During 1981 Pieces of a Dream had a minor soul hit with ‘Warm Weather’ which was recorded on Elektra Records and co-produced by Dexter Wansel. In late 1983, the group had their most successful single, “Fo-Fi-Fo”, which peaked at No. 13 on the US soul chart.
Tracy Hamlin, was the group’s lead vocalist from 2002 to 2005 and sings on two of their albums, Love Silhouette and No Assembly Required.

piecesofadream.jpg

“Warm weather” van het album “Pieces of a Dream”

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

“Watch your step” van het album “All In”

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Om deze verbinding tot stand te brengen is dit pad nodig: //192.168…./music met de admin als inlog. Met de standaard SMB settings werkt dit niet maar met onderstaande tip wel:

Sonos insist you use an old, dated, much less secure file sharing protocol that even the developer suggest should be disabled. As above, maybe you need to allow it on your NAS – although that’s not the usual error for SMB..
On the NAS, check Control Panel – File Services – Advanced Settings and minimum SMB protocol. Make sure it’s at the lowest security level that is SMB 1.0 (if you wish to continue to use the NAS to share the music).
(If this is the issue, I’d suggest creating a new user on the NAS (sonos?) and giving it read only access to the music share. Use these credentials when adding the share in Sonos.)

screenshot1.jpg

screenshot2.jpg

Van hun eigen website website https://vivaldi.com

Het is jouw web. Browse het zoals jij dat wilt
Je brengt veel tijd door op het web. Je verdient een browser die persoonlijk is, de functies heeft die je nodig hebt en de flexibiliteit die je zo graag wil. Je verdient Vivaldi, dus dat hebben we voor je gemaakt. Geniet ervan!

vivaldi.jpg

Op deze link naar Computer!Totaal is meer informatie te vinden over de mogelijkheden en het gebruik van deze browser.

Dynasty.jpg

Dynasty was an American band, based in Los Angeles, California, created by producer and SOLAR Records label head Dick Griffey, and record producer Leon Sylvers III. The band was known for their dance/pop numbers during the late 1970s and 1980s. Keyboardist Kevin Spencer and vocalists Nidra Beard and Linda Carriere originally comprised the group.[1]
Van Wikipedia https://en.wikipedia.org/wiki/Dynasty_(band)

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Je trouwt snel als je twintig bent
En na een paar jaar krijg je het druk
Met drie, vier kinderen, ach dat went
Je hebt geen tijd meer voor geluk
Tussen de vloeren en de vaat
De vuile was en het fornuis
Sta je niet stil, ook al vergaat de wereld
Jij bent bezig thuis

Is dit een grap
Of om te huilen
Is er iemand die haar benijdt
Wie zou er met haar willen ruilen
Dag in, dag uit
Waar blijft de tijd

De koffie pruttelt op het vuur
De kinderen spelen, en je man
Zit achter een krant als achter een muur
De dagen glijden door je hand
De kinderen zijn vandaag nog klein
Maar morgen groot, je denkt waarom
Kan ik alleen maar ouder zijn
De foto van je jeugd trekt krom

Is dit een grap
Of om te huilen
Is er iemand die haar benijdt
Wie zou er met haar willen ruilen
Dag in, dag uit
Waar blijft de tijd

De zondag is niets dan een pak
Netjes gestreken ’s avonds laat
Wat bloemen in de vaas
Een tak in bloei, wat altijd aardig staat
En deze levenslange sleur
Duizenden passen ieder uur
Tussen de tafel en de deur
En van het kastje naar de muur

Is dit een grap
Of om te huilen
Is er iemand die haar benijdt
Wie zou er met haar willen ruilen
Dag in, dag uit
Waar blijft de tijd

Songteksten:

To dream the impossible dream
To fight the unbeatable foe
To bear with unbearable sorrow
To run where the brave dare not go
To right the unrightable wrong
To love pure and chaste from afar
To try when your arms are too weary
To reach the unreachable star
This is my quest, to follow that star,
No matter how hopeless, no matter how far
To fight for the right without question or cause
To be willing to march into hell for a heavenly cause
And I know if I’ll only be true to this glorious quest
That my heart will lie peaceful and calm when I’m laid to my rest
And the world will be better for this
That one man scorned and covered with scars
Still strove with his last ounce of courage
To fight the unbeatable foe, to reach the unreachable star
Songwriters: Joe Darion / Mitchell Leigh
Songteksten voor The Impossible Dream © Sony/ATV Music Publishing LLC

Gebruik deze code https://www.muses.org/setup om een radio widget op bijvoorbeeld WordPress te genereren:

What is Muses Radio Player?

Muses Radio Player is an open source Web Player for audio streaming (radio over the internet).

It supports the most popular Audio Codecs: MP3, OGG and AAC and works great with Shoutcast, Icecast2, and other compatible streaming servers.

Muses also has some interesting and necessary features that make it unique like:

HTML5 support (with fallback to Flash).
Automatic reconnection in case of network errors (to ensure that your audience will never get silence).
Smart cache management (to avoid huge memory consumption).
XML Skin Support (to let you create your own skins).
AutoStart option.
HTML Code Generator for your Website (to make the player super easy to install).
Multi Language (with more than 20 languages available!)
Automatic Language Detection
Bidirectional Javascript API (to let you control the player and get notification events using javascript)
Reads Metadata directly from OGG Streamings.
Metadata Loader for MP3 and AAC Streamings.
Configurable Buffering Time.
Optional Fallback Streaming (to increase your service quality).
Introduction Audio Support (to play any audio you want before the streaming).
Support for blind or print-impaired users reading software.

https://github.com/caseyscarborough/keylogger

Mac OS X Keylogger

This repository holds the code for a simple and easy to use keylogger for Mac OS X. It is not meant to be malicious, and is written as a proof of concept. There is not a lot of information on keyloggers or implementing them on Mac OS X, and most of the ones I’ve seen do not work as indicated. This project aims to be a simple implementation on how it can be accomplished on OS X.

Note: This keylogger is currently unable to capture secure input such as passwords. See issue #3 for more information.

Usage

Start by cloning the repository and running the proper make commands, shown below. By default, the application installs to /usr/local/bin/keylogger, which can easily be changed in the Makefile. make install may require root access.

$ git clone https://github.com/caseyscarborough/keylogger && cd keylogger
$ make && make install

The application by default logs to /var/log/keystroke.log, which may require root access depending on your system’s permissions. You can change this in keylogger.h if necessary.

$ keylogger
Logging to: /var/log/keystroke.log

If you’d like the application to run on startup, run the startup make target:

$ sudo make startup

Uninstallation

You can completely remove the application from your system (including the startup daemon) by running the following command (logs will not be deleted):

$ sudo make uninstall

Optional Parameters

You can pass in two optional parameters to the program. The clear option will clear the logs at the default location. Any other argument passed in will be used as the path to the log file for that process. See below:

# Clear the logfile.
$ keylogger clear
Logfile cleared.

# Specify a logfile location.
$ keylogger ~/logfile.txt
Logging to: /Users/Casey/logfile.txt