- copy your image (
Ctrl+A
andCtrl+C
) - make a new document-sized pure-black layer behind it
- group the black layer and yor image together
- add mask to the group
- enter mask edit mode (
alt+click
on the mask icon/thumbnail) - paste your image in the mask (b/w) and then invert it.
- save it as a 24-bit transparent PNG
# Ensure that Touch ID for sudo auth is enabled whenever the shell is loaded. | |
# | |
# IMPORTANT: This script will only work on macOS. | |
# | |
# [Description] | |
# macOS versions prior to Sonoma (released late 2023) overwrite | |
# the PAM configuration file for sudo (/etc/pam.d/sudo) every time the OS is updated. | |
# This means that any changes that you manually make to the file are lost, | |
# and you are reverted back to Touch ID for sudo auth being disabled. | |
# This script will automatically enable Touch ID for sudo auth whenever the shell is loaded. |
TabSwitcher Extreme plugin details
These preferences are specifically for a Laravel project
Preferences > Other Settings > TabSwitcher Extreme
<?php | |
namespace App\Models\Traits; | |
/** | |
* @mixin \Eloquent | |
*/ | |
trait CanSaveQuietly | |
{ | |
/** |
<?php | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => [ | |
'default' => 'single_space', | |
'operators' => ['=>' => 'align_single_space'], // changed by Scott Carpenter |
I got sick of having to push the "Join Event" button so I spent some time figuring out how to automatically join the events and wrote up these instructions.
DIRECT LINK TO THIS GUIDE: http://bit.ly/BL3AutoJoinChestEvents
These instructions reference the Dev Tools in Chrome, but you can do this in any browser! You just need to do the same process but in your browser's developer tools.
--display notification "Please wait... preparing login process..." with title "LastPass Login" | |
--Kill any previous login process as sometimes they hang or a user may interrupt them, if there are none (which there often are...) we will get an error response which we ignore. | |
try | |
do shell script "killall -9 lpass > /dev/null 2>&1" | |
end try | |
try | |
set login_email to do shell script "`perl -e 'use strict; use warnings; my $emailAddress =`security find-generic-password -w -s \"alfred-lastpass-email-address\"`; chomp $emailAddress; print $emailAddress;'`" | |
on error |
> Thank you for reaching out to Autonomous! I am sorry to hear that you are having some trouble with your SmartDesk | |
> but I will be glad to assist. It sounds like your system needs a "hard reset" can I please have you follow these | |
> steps thoroughly. | |
Reset Steps: | |
1. Unplug the desk for 20 seconds. Plug it back in. Wait a full 20 seconds. | |
2. Press the up and down buttons until the desk lowers all the way and beeps or 20 seconds pass. | |
3. Release both buttons. | |
4. Press the down buttons until the desk beeps one more time or 20 seconds pass. |
It took me quite some time to figure out how to print properly from a web application. I will explain here how I did it, so you don't have to spend the same time.
Google Cloud Print API uses OAuth 2.0 for authorization.
As explained [here][1] on the Google Developer page, the best way to use OAuth with the Google API is with a Google service account. Create a service account as explained on the Google Developer page.
To use OAuth a library is required. Google has published the [Google API PHP client library][2]. If you want to use the examples from the Developer pages, you need to use version 1 of the library. In this article I use version 2 of the library.
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'pathname' | |
require 'json' | |
def strip_hash(f) | |
ext = f.extname | |
if ext.include?("?") |