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
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
Mar 06

Trying to mount a windows share into Ubuntu 16.04 LTS.  I could run the following command just fine:

sudo mount -t cifs -o domain=workgroupname,username=myname,password=mypassword //192.168.1.15/music /media/music

But of course would lose the map on reboot.  So install “sudo apt-get install cifs-utils” and then Everytime I tried to add to fstab and “sudo mount -a” I would get the mount error(13) permission denied.

What fixed it was changing the sec on my command to “ntlmsspi”.  Hope this helps someone else.  So my command in fstab (/etc/fstab) is

//192.168.1.15/music /media/music cifs username=myname,domain=workgroupname,password=mypassword,
iocharset=utf8,sec=ntlmsspi 0 0

Now that you have this working you need to create a .smbcredentials file in the /root directory to contain and hide my credentials,

Enter your Windows username and password in the file:

username=msusername
password=mspassword
domain=workgroupordomain

“sudo chmod 700” that file.  and change the fstab line command to :

//192.168.1.15/music /media/music cifs credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlmsspi 0 0


Share
Jan 18

I won’t get into the security implications of doing this, but just the 2 methods I have found to get it done.  My use case was a simple single digital sign that no one had physical access to, and popped this up on every scheduled or unscheduled reboot.

  1. If you don’t mind entering a password on boot, then go to User Accounts and set “automatic login” to off.
  2. If you want it to auto login and still not ask for the login keyring (again forgoing the security lecture), go into your “Startup Programs” and uncheck the Keyrings from starting.

 

Share
Jun 09
  1. Boot with Knoppix live disk or usb
  2. Open a terminal window in Knoppix
  3. Type “sudo sfdisk -l” to see what your disk (that you want to wipe) is mounted as (example – sda1)
  4. Type “sudo shred -vfz -n 100 /dev/sda1” – IMPORTANT – Substitute the disk name learned from above command.  Note that the 100 is the number of passes (and can be changed)
Share
Jul 09

After much searching, finally figured out that this was due to a leading space on one of the column headers.

Share
Mar 31

 

 

Moving a folder: This folder is shared with other people. If you move this folder, it will no longer be shared.

You get this message everytime you move a folder within a shared folder to another location.

Share-Warning-Capture

The only work-around that I have found is to
1) cut  the folder you want to move
2) paste it into the recycle bin
3) cut out of the recycle bin and paste where you want it to go.

This will eliminate the annoying message.

 

 

Share