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:
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:| #!/bin/bash | |
| # This is a very naive script, it doesn't do grouping and returns all branches | |
| # I only really care about branches that have not seen commits in two months | |
| # | |
| # I am hoping to find some time to write a tool that can output these reports for me | |
| # In the meantime, I am using this | |
| echo "Merged branches" | |
| for branch in `git branch -r --merged | grep -v HEAD`;do echo -e `git log --no-merges -n 1 --format="%ci, %cr, %an, %ae, " $branch | head -n 1` \\t$branch; done | sort -r |
| #!/bin/sh | |
| # based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d | |
| # delete all evicted pods from all namespaces | |
| kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff state from all namespaces | |
| kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces |
| # python3 version, derived from python2 version https://gist.github.com/dergachev/7028596 | |
| # | |
| # taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ | |
| # generate server.xml with the following command: | |
| # openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
| # run as follows: | |
| # python3 simple-https-server.py | |
| # then in your browser, visit: | |
| # https://localhost:4443 |
ansible-playbook --connection=local 127.0.0.1 playbook.yml127.0.0.1 ansible_connection=local| # Send a metric to statsd from bash | |
| # | |
| # Useful for: | |
| # deploy scripts (http://codeascraft.etsy.com/2010/12/08/track-every-release/) | |
| # init scripts | |
| # sending metrics via crontab one-liners | |
| # sprinkling in existing bash scripts. | |
| # | |
| # netcat options: | |
| # -w timeout If a connection and stdin are idle for more than timeout seconds, then the connection is silently closed. |
Typing vagrant from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)To add a SFTP-only user, you'll need to make sure your SSH config settings are correct, add a new user/group and set permissions for your new user. For step-by-step directions, see below. Omit sudo if you're logged in as root.
Edit /etc/ssh/sshd_config and make sure to add the following at the end of the file:
Match group filetransfer
ChrootDirectory %h
| # coding=utf-8 | |
| __author__ = 'Maxime Biette' | |
| conf = { | |
| 'from': 'maximebiette@gmail.com', | |
| 'to': 'maximebiette+test@gmail.com', | |
| 'server': 'smtp.gmail.com', | |
| 'port': '587', | |
| 'tls': 'yes', | |
| 'login': 'maximebiette@gmail.com', |
| __author__ = 'srv' | |
| import smtplib | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| from email.mime.application import MIMEApplication | |
| username = '' # Email Address from the email you want to send an email | |
| password = '' # Password | |
| server = smtplib.SMTP('') |