This guide will walk you through creating a Laravel package from scratch using Spatie's package skeleton. We'll create a settings management package, organized as a proper Laravel package that can be shared and reused.
| This closes the popups instantly so you never see them and they dont effect indenting etc. Works on windows. | |
| To install | |
| 1. open sublime | |
| 2. go to tools -> Developer -> New Plugin | |
| 3. paste the code into the document (replacing any existing code sublime includes in the document) | |
| 4. save the file using the default user plugin directory sublime suggests. | |
| (on windows this is C:\Users\yourname\AppData\Roaming\Sublime Text\Packages\User) | |
| 5. Restart. |
I recently figured out how to launch applications in sway on login (or config reload) in specific workspaces. I tried doing this a year or so ago using procedural calls to swaymsg with manual changes to workspaces but it failed due to the delay in launching apps (the workspace would change too quickly). However, I recently figured out how to actually do it by combining swaymsg with assign.
First, you'll want to get the app_id, class or title of window you want to launch. Then you'll want to add it to the your sway config file.
The syntax looks like:
How to enable function keys
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
https://blog.colinwaddell.com/keychron-function-keys-configuration/
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Older Keychron keyboards (those not based on QMK) use the hid_apple driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.
I use a great widget focus-plasmoid (KDE store) for Pomodoro-driven work on KDE. There are no prominent alternatives so far.
The work happens on a different virtual desktop (or activity).
- When focus starts, the virtual desktop with working applications gets switched on.
- When focus ends, a message box asks for a short description of what is done in the past period (when it is still in the context), then a daily report is shown as a popup and the virtual desktop gets changed.
- A few seconds of the sleep time is to avoid confusion and prepare to get switched after a dong sound.
- The report gets also saved in a folder along the script for every day and can be reviewed later.
| [ | |
| { | |
| "code": "aa", | |
| "name": "Afar", | |
| "native": "Afar" | |
| }, | |
| { | |
| "code": "ab", | |
| "name": "Abkhazian", | |
| "native": "Аҧсуа" |
| SET @oldsite='http://oldsite.com'; | |
| SET @newsite='http://newsite.com'; | |
| UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite); | |
| UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite); | |
| UPDATE wp_postmeta SET meta_value = replace(meta_value, @oldsite, @newsite); | |
| /* only uncomment next line if you want all your current posts to post to RSS again as new */ | |
| #UPDATE wp_posts SET guid = replace(guid, @oldsite, @newsite); |
REST API response format based on some of the best practices