This twitter account automatically tweets when the British Geological Survey has detected seismic activity.
The code is published on github.
The data is taken from the BGS Recent UK earthquakes feed.
It was put together by @meigwilym.
This twitter account automatically tweets when the British Geological Survey has detected seismic activity.
The code is published on github.
The data is taken from the BGS Recent UK earthquakes feed.
It was put together by @meigwilym.
I had real trouble connecting my Raspberry Pis (v3 Model Bs) to a WPA Enterprise network.
Here's what I did to get it to work.
For this example, my wifi network name is "WiFi Network", usernames and passwords have also been swapped out. The Wifi Country is GB.
Edit /etc/wpa_supplicant/wpa_supplicant.conf
with the following (using your "real" password):
Pob llythyren acenog yn y Gymraeg.
Mae'r degol, hex a named ar gyfer dogfennau html.
Llythyren | Côd | Disgrifiad | Decimal | Hex | Named |
---|---|---|---|---|---|
 | U+00C2 | LATIN CAPITAL LETTER A WITH CIRCUMFLEX |  |  |  |
â | U+00E2 | LATIN SMALL LETTER A WITH CIRCUMFLEX | â | â | â |
Ê | U+00CA | LATIN CAPITAL LETTER E WITH CIRCUMFLEX | Ê | Ê | Ê |
ê | U+00EA | LATIN SMALL LETTER E WITH CIRCUMFLEX | ê | ê | ê |
Adminator is not that friendly to be dropped in a Laravel project. Here's what I did to get the CSS and fonts working.
Using Laravel 5.6 and Adminator
<?php | |
$phpversionok = false; | |
if(PHP_VERSION_ID >= 70103) { | |
$phpversionok = true; | |
} | |
$exts = ['openssl', 'pdo', 'mbstring', 'tokenizer', 'xml', 'ctype', 'json']; | |
$extsNotloaded = []; | |
foreach($exts as $i => $extension) { |
server { | |
# certbot uses this to verify the SSL request | |
location ^~ /.well-known/acme-challenge/ { | |
default_type "text/plain"; | |
root /var/www/letsencrypt; | |
} | |
} |
<?php | |
// routes/console.php | |
// quickly create an user via the command line | |
Artisan::command('user:create', function () { | |
$name = $this->ask('Name?'); | |
$email = $this->ask('Email?'); | |
$pwd = $this->ask('Password?'); | |
// $pwd = $this->secret('Password?'); // or use secret() to hide the password being inputted | |
\DB::table('users')->insert([ |
#!/bin/bash | |
# setup an environment for laravel on Red Hat 7.3 | |
# Nginx | |
# PHP 7.1 | |
# optional MySQL 5.7 or PostgreSQL 9.6 | |
# Composer | |
# Supervisor | |
# check for root user |
vagrantfile: | |
target: local | |
vm: | |
provider: | |
local: | |
box: puphpet/centos7-x64 | |
box_url: puphpet/centos7-x64 | |
box_version: '0' | |
chosen_virtualizer: virtualbox | |
virtualizers: |