This guide will help you connect your Sony WH-1000XM4 headset to Ubuntu 22.04 using Bluetooth. Once connected, you'll be able to listen to music and use the microphone on apps like Microsoft Teams.
- Open a terminal and launch
bluetoothctl:
| Leaderboard Using Redis | |
| http://labs.strava.com/blog/koms-powered-by-redis/ | |
| Strava KOMS, Powered by Redis | |
| ---------------- | |
| http://aimeeault.com/2014/06/22/making-the-most-of-redis-and-sorted-sets/ | |
| For example, what if I only want to see a leaderboard of members who are between the ages of 18 and 49? The Sorted Set contains no information on how old each member is. And I don’t want to maintain a separate Redis Sorted Set for just these users, because that’s kind of redundant, right? You probably don’t want to fetch every single one of the potentially hundreds of thousands of records and filter individually… that’s not very efficient! There’s a couple of ways you could approach this with Redis. One is by way of Lua scripting with use of EVAL (which runs Lua) and ZSCAN (which can be used for matching keys and values by rules, similar to regular expressions). |
This guide will help you connect your Sony WH-1000XM4 headset to Ubuntu 22.04 using Bluetooth. Once connected, you'll be able to listen to music and use the microphone on apps like Microsoft Teams.
bluetoothctl:| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Composer; | |
| use Symfony\Component\Finder\Finder; | |
| use Illuminate\Filesystem\Filesystem; | |
| use Symfony\Component\Console\Input\InputArgument; |
| import asyncio | |
| import psycopg2 | |
| # dbname should be the same for the notifying process | |
| conn = psycopg2.connect(host="localhost", dbname="example", user="example", password="example") | |
| conn.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT) | |
| cursor = conn.cursor() | |
| cursor.execute(f"LISTEN match_updates;") |
| /** | |
| * | |
| * In this example we create view with inplace and bulk editing. | |
| * Tools and plugins: | |
| * jQuery | |
| * xEditable jquery plugin | |
| * twitter bootstrap | |
| * | |
| */ |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| class RewriteLinks | |
| { | |
| /** | |
| * Handle an incoming request. |
These instructions are derived from those in the Mesos Community Documentation.
Do the below as root.
cat <<EOF >> /etc/apt/sources.list.d/mesosphere.list
deb http://repos.mesosphere.com/ubuntu xenial main
| alias weather='curl -s wttr.in | sed -n "1,7p"' | |
| alias weather-long="curl -s wttr.in | sed -n '1,38p'" #long weather.. all data | |
| alias weather-today="curl -s wttr.in | sed -n '1,17p'" #weather today | |
| alias weather-tomorrow="curl -s wttr.in | sed -n '1,7p'" #weather tomorrow |
| namespace App\Http\Middleware; | |
| use Illuminate\Support\Facades\Log; | |
| class LogAfterRequest { | |
| public function handle($request, \Closure $next) | |
| { | |
| return $next($request); | |
| } |