Skip to content

Instantly share code, notes, and snippets.

@NightyKnight
NightyKnight / Enable HTTPS for Fisheye
Created April 9, 2020 14:32
Enable HTTPS for Fisheye/Crucible using NGINX Reverse Proxy
# I add this here to assist future travelers secure their Fisheye/Crucible instance. Don't bother trying to get
# Tomcat working with this server as I wasted a lot of time trying to get it working. A reverse proxy is a
# million times easier than working with jetty.
#Instance Directory
/app/atlassian/fisheyecrucible-data/
#Install Directory
/app/atlassian/fecru-4.6.0
# Go to the Admin page
@NightyKnight
NightyKnight / Fisheye Systemd Service
Created April 9, 2020 13:43
Fisheye/Crucible Systemd Service CentOS 7
########################################################################################################################################
# I found the documentation on Atlassian's website to be lacking so I thought I would save my findings.
# Feel free to remove any comment from my code as they are only there to guide others like myself who struggled to get this working.
#Start Fisheye as a service
#This should create the file if it does not exist
sudo vi /usr/lib/systemd/system/fisheye.service
# Copy the below into the fisheye.service file and adjust the paths to where your install is located. I also added the postgresql-9.6.service
# as a dependency since fisheye needs the database running before starting. I also created the fisheye user and gave it ownership of the
# fisheye instance and install directories. This method is the recommended and secure method to run the application. You may also need to
@NightyKnight
NightyKnight / gist:e747bc37a389d769d515a7625a5d2376
Created November 18, 2019 22:01
Join Linux Client to Microsoft Active Directory
Join Linux Client to Microsoft Active Directory
Table of Contents
1.0 PROCEDURE FOR JOINING LINUX CLIENT TO ACTIVE DIRECTORY
1.1 Assumptions
2.0 Prerequisites
2.1 Install Realm and Dependencies
3.0 Join Linux Client to Active Directory
3.1 Discover Domains on the Local Network
3.2 Join the Client to the Domain
@NightyKnight
NightyKnight / Install SnipeIT from Scratch
Created October 2, 2019 16:51
Install Snipe-IT from scratch on a CentOS 7 machine behind a corporate proxy server
Install SnipeIT From Scratch on CentOS 7
1) Setup Proxy
proxy setup:
/etc/yum.conf
proxy=http://proxy.dev:8080/
/etc/profile
#proxy
MY_PROXY_URL="http://proxy.dev:8080/"
@NightyKnight
NightyKnight / Restore Snipe-IT From Backup
Created October 1, 2019 14:29
Restore Snipe-IT From Backup on Linux Server
Migrate Production Data
a) Login to production SnipeIT and go to Admin -> Backups -> Generate Backups
b) Either download the backup locally or connect from the new machine via SFTP
i) SFTP Method - Assuming a starting directory of root's home /root or ~/ when logged in as root
sftp [email protected]
cd /var/www/snipeit/storage/app/backups
get lastest_backup.zip
exit