Thursday, November 07, 2019

How to Disable Amber Alerts on Android


The removal of the cellbroadcastreceiver service works on many Android based phones.  It will not work on Samsung devices.


Open an adb shell using an app from the Google Play Store
Run the command pm uninstall -k --user 0 com.android.cellbroadcastreceiver

Wednesday, August 21, 2019

Install Let's Encrypt on Unifi Cloud Key Gen 2

SSH into the Cloud Key

Open Firewall Ports 80 and 443 in USG

Individually Run:
sudo apt-get update
sudo apt-get install git 
sudo apt-get install nano

git clone https://github.com/letsencrypt/letsencrypt 
letsencrypt/letsencrypt-auto


service nginx stop

letsencrypt/letsencrypt-auto certonly --text --standalone --standalone-supported-challenges tls-sni-01 --domain subdomain.enteryourdomain.com --email you@enteryouremail.com --agree-tos --renew-by-default
service unifi stop
rm /usr/lib/unifi/data/keystore

nano /etc/default/unifi

Delete line UNIFI_SSL_KEYSTORE=/etc/ssl/private/unifi.keystore.jks and save the file

sudo openssl pkcs12 -export -inkey /etc/letsencrypt/live/subdomain.enteryourdomain.com/privkey.pem -in /etc/letsencrypt/live/subdomain.enteryourdomain.com/fullchain.pem -out /home/cert.p12 -name ubnt -password pass:temppass

sudo keytool -importkeystore -deststorepass aircontrolenterprise -destkeypass aircontrolenterprise -destkeystore /usr/lib/unifi/data/keystore -srckeystore /home/cert.p12 -srcstoretype PKCS12 -srcstorepass temppass -alias ubnt -noprompt

service nginx start 
service unifi start

sudo rm /home/cert.p12

Thursday, August 15, 2019

Move your sync center file location in Windows 10


There are other ways to do this versus a link, however, this is what worked for me.


Move offline file cache in Windows 10:
  1. Create a folder for your offline file cache. Something like G:\Offline.
  2. Run command prompt in Administrator mode and type the following:
Takeown /r /f C:\Windows\CSC
  1. Open the Sync Center and go to Manage Offline Files.
  2. Click Disable Offline Files and restart the machine.
  3. From an elevated command prompt issue the following commands:
    rd /s C:\Windows\CSC
    mklink /J C:\Windows\CSC "G:\Offline"
    
    Keep quotes in above example
  4. Reopen the Manage Offline Files window and Enable Offline Files.
  5. Restart the machine.
  6. All files/folders that you selected for offline availability should now be redirected to your new folder/drive specified.

Reuse Windows License Key

Open a Command Prompt and type slmgr.vbs /upk this will release your current license for re-use on another machine.