Mar 14

To update an image in Google Slides via a URL every day, you can use Google Apps Script. Here’s a step-by-step guide on how to do this:

  1. Open the Google Slides presentation where you’ve inserted the image via URL.
  2. Click on Tools > Script editor. This will open a new tab with the Google Apps Script editor.
  3. In the script editor, paste the following code:
    function updateImage() {
    var slide = SlidesApp.getActivePresentation().getSlides()[0]; // Change the slide index if needed
    var imageUrl = “INSERT_IMAGE_URL_HERE”; // Replace with your image URL
    var image = slide.getImages()[0]; // Change the image index if needed
    image.replace(imageUrl);
    }
  1. Replace “INSERT_IMAGE_URL_HERE” in the code with the URL of the image you want to update.
  2. Save the script with a name (e.g. “Update Image Script”).
  3. Click on the clock icon in the script editor toolbar to open the Triggers dialog.
  4. Click on the “Add Trigger” button.
  5. In the “Run” dropdown, select the name of your function (“updateImage”).
  6. In the “Select event type” dropdown, select “Time-driven.”
  7. Set the time interval you want the image to be updated (e.g. every day at 9:00 AM).
  8. Click on the “Save” button to create the trigger.

That’s it! Now the script will run every day at the specified time and update the image in the first slide of your Google Slides presentation with the new URL you’ve provided.

Share
Nov 09

Followed Guide: https://snipe-it.readme.io/docs/docker

Commands to create SQL and Snipe-It Containers (docker ps – to list containers)

Create your env.txt file and make a note of the full path to it on the machine

Create SQL Container:

docker run –name snipe-mysql –env-file=my_env_file –mount source=snipesql-vol,target=/var/lib/mysql -d -P mysql:5.6

 

Create Snipe-IT container (without SSL) 

docker run -d -p 80:80 –name=”snipeit” –link snipe-mysql:mysql –env-file=my_env_file –mount source=snipe-vol,dst=/var/lib/snipeit snipe/snipe-it:latest

 

Create Snipe-IT container (with SSL)

docker run -d -p 80:80 -p 443:443 –name=”snipeit” –link snipe-mysql:mysql –mount source=snipe-vol,dst=/var/lib/snipeit –env-file=my_env_file snipe/snipe-it

 

Copy the SSL certificate (if using SSL) 

docker cp snipeit-ssl.crt snipeit:/var/lib/snipeit/ssl/snipeit-ssl.crt

docker cp snipeit-ssl.key snipeit:/var/lib/snipeit/ssl/snipeit-ssl.key

 

Run the docker in command line to get APP_KEY

docker run –rm snipe/snipe-it

 

Output will show (actual key will be different than this example):

Please re-run this container with an environment variable $APP_KEY

An example APP_KEY you could use is: 

base64:D5sdfs-zhFSVA3VwuoZoQ21cwBtJv/RGiqOcZ7BUvI=

 

Add the resulting APP_KEY to the env.txt file and generate the container again

Restore the backup file from the previous installation

scp <backupfile.zip> <username>@<hostname>:<destination path>

Copy the Backup to :/var/www/html/storage/app/backups/

docker cp backupfile.zip snipeit:/var/www/html/storage/app/backups/backupfile.zip

 

Copy the Public and Storage files from the previous installation

docker cp /path/to/storage/private_uploads-folder snipeit:/var/lib/snipeit/data

docker cp /path/to/public/uploads-folder snipeit:/var/lib/snipeit/data/

 

Restore the DB in the GUI

You will get a 500 error, just go back in the browser and login again

Share
May 29

Using an Airport Extreme or Time Capsule to make Time Machine backups on your network is very convenient.  But I found that once that machine is gone, I could not delete the old TM backup.  I kept getting this error:

“The operation can’t be completed because some items had to be skipped. For each item, choose File > Get Info, make sure “Locked” is deselected, and then check the Sharing & Permissions section. When you are sure the items are unlocked and not designated as Read Only or No Access, try again.”

After trying to change the permissions without success, I found this terminal command works:

sudo rm -rf <Path to the TM backup file>

Hint: to easily type the path to the TM backup file just drag it into the terminal window.

Hope this helps anyone else out there.

Share
May 19
  1.  Open the house you want to save the photos of in Zillow and scroll through all the photos (so they all load in the browser)
  2. Right-click on the page and select Inspect
  3. Select console and paste this code
  4. It will run through and save each photo

 

Share
Apr 10

Every time my display went to sleep, my audio output changed to HDMI (from the line out that I wanted).  After many scripts and temporary fixes, this is how I ended up fixing it.

Open Terminal and run this command: Sudo apt install pavucontrol

Then launch the newly installed PulseAudio Volume Control.  Scroll Right until you get to the Configuration tab.  Set the profile for the appropriate audio device and set the others to “Off”.

Share
Sep 14

This happened when my AD account was deleted and then re-established using the same username.

 

  1. Login to the affected profile
  2. Run Terminal
    1. run “id -u” to get the new user id
    2. run “id -g” to get the new group id
    3. run “sudo chown -R <the userid found in sub-step 1 above>:<the groupid found in sub-step 1 above> /Users/<username>
    4. run “sudo chown -R <the userid found in sub-step 1 above>:<the groupid found in sub-step 1 above> ~/Library
  3. Reboot
Share
Sep 05

Macbook Air was draining battery while it was supposed to be sleeping.  When I ran a “pmset -g” in terminal it told me “sleep prevented by AddressBookSourceSync”.  I don’t use the Apple Contacts, but I do use google.  So I went into Internet Account settings and removed the google account.

Share
Feb 15

Have a PC that is crawling with malware.  Tron is your friend!  https://www.reddit.com/r/TronScript/

Share
Feb 15

This problem always seems to pop up when there is a power outage or I am installing an new HP printer.  I believe it is trying to load the driver/software usb disk, which is not formatted for Mac.  Neither un-pugging/plugging the USB nor turning the printer on/off worked.  The solution is to unplug the usb, then turn the printer on and wait for it to fully turn on.  So both the computer and the printer are fully on.  Then plug the USB in.  Presto!

Share
Oct 09

Open Finder, Disk Utility and Open Terminal.  In terminal type “dd if=” and then drag the iso from Finder to the terminal window, that will fill in the path.  Then space and type “of=” and drag the mounted usb partition from finder to the Terminal windows to again fill the path.  Then in your Disk Utility, Unmount the USB Partition (Unmount, NOT Eject).  Then back in your terminal window, hit enter.  Done.

So your command should look like this “dd if=/Users/user/Downloads/SW_DVD5_Win_Pro_7w_SP1.ISO of=/Volumes/USB”

 

Share