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
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
Feb 15

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

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
Jan 22

HandBrake can through error messages and give you no options (blank) in the Title drop-down because it cannot get past the Content Scramble System (CSS).  Or the resulting video is all garbled.

The best solution I have found is to install XBMC somewhere (doesn’t have to be on the same machine) and copy the libdvdcss-2.dll file out of the XBMC\system\players\dvdplayer folder and into the Handbrake installation folder.

Update: Easiest to just copy the libdvdcss-2.dll from here: http://download.videolan.org/pub/libdvdcss/1.2.11/win64/libdvdcss-2.dll 
Rename it to libdvdcss.dll and copy it to the HandBrake installation folder.

That seems to allow HandBrake to read and rip the disk properly.

Share
Sep 09

Of course this is for modifying APKs that you own!

  1. Use 7-Zip to unzip APK file to folder
  2. Modify what needs to be modified within the APK
  3. Re-Zip the contents of the folder into a zip and rename to APK
  4. Download and extract the apkPack from xda-developers: http://forum.xda-developers.com/showpost.php?p=9995058 (direct link: http://forum.xda-developers.com/attachment.php?attachmentid=470146&d=1292967733)
  5. Put your newly zipped and renamed to .apk file in the apkPack folder and run apkPack_all.bat
  6. Your new APK file will be in the “packed” directory

More info: https://support.symantec.com/us/en/article.howto124063.html

Share
Aug 30

If you use chrome in a Digital Display or Kiosk setting, it can be annoying that you will get the “chrome didn’t shut down correctly” if, in fact, chrome did not shut down correctly.  I was finally able to figure out a way to get rid of that message.

I am using the “C:\Program Files\Google\Chrome\Application\chrome.exe” –kiosk  command in the windows startup folder to launch the browser.  So I simply added the –incognito command as well, and voila! no more message.  So the full command is:

“C:\Program Files\Google\Chrome\Application\chrome.exe” –incognito –kiosk

 

Share
Jan 11

First you will need the Template Files.  They can be downloaded here: http://dl.google.com/dl/edgedl/chrome/policy/policy_templates.zip
(If you are not familiar with how to install ADM/ADMX files in Active Directory, see this guide.)

Once you have installed the template, go to Computer Configuration \ Policies \ Administrative Templates \ Classic… \ Google \ Google  Chrome and enable “Configure the list of force-installed extensions”:

GPME-Chrome

 

And Click the “Show…” button:
GPME2-Chrome

And fill in the Value with the ID of the extension followed by the update url.  (The extension ID is the 32-letter string found e.g. on chrome://extensions when in developer mode.)

Example: gighmmpiobklfepjocnamgkkbiglidom;https://clients2.google.com/service/update2/crx

GPME3-Chrome

 

Find ID in Chrome:
Chrome-FindID

Share
Nov 14

This ended up being a simple solution.

Delete or rename the “LegacyDisable” registry value in HKEY_CLASSES_ROOT\Directory\shell\find

To also enable it for dives:
Delete or rename the “LegacyDisable” registry value in HKEY_CLASSES_ROOT\Drive\shell\find

Share
Jan 11

If you already run AdBlock, then when you run Spiceworks you are left with a blank space on the right of the screen. Run this userscript (chrome users) to remove that blank area!

Hat tip to userstyles.org (http://userstyles.org/styles/58953/spiceworks-remove-ad-column)

Share