Skip to content

Instantly share code, notes, and snippets.

View EricPSU's full-sized avatar

Eric Flanigan EricPSU

View GitHub Profile
@EricPSU
EricPSU / install_latest_postman.sh
Created June 5, 2018 14:59
Install latest version of Postman
#!/bin/bash
cd /tmp || exit
echo "Downloading latest Postman..."
wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
tar -xzf postman.tar.gz
rm postman.tar.gz
if [ -d "/opt/Postman" ];then
echo "Removing previous installation in /opt/Postman..."
@EricPSU
EricPSU / GitLab Key Pair
Last active April 18, 2018 18:02
GitLab Key Pair
# Create a public/private rsa key pair
ssh-keygen -t rsa -C "eric@omegaminds.com" -b 4096
# Associate the key pair to the server you are attempting to authenicate
ssh-copy-id -i ~/.ssh/id_rsa.pub eaflanigan@watson-dev
# Run ssh-add on the client machine, that will add the SSH key to the agent
ssh-add
# List SSH keys to verify
@EricPSU
EricPSU / CentOS 7 Minimal Desktop Installation
Last active March 30, 2018 00:30
CentOS 7 Minimal Desktop Installation
### Install CentOS 7 - Minimal
### Install GUI
yum -y groupinstall "X Window System" "Fonts"
yum -y install gnome-classic-session gnome-terminal nautilus-open-terminal control-center
yum -y install fontconfig dejavu*fonts gnu*fonts liberation*fonts xorg-x11-font-utils open-sans-fonts libreoffice-opensymbol-fonts abattis-cantarell-fonts cjkuni-uming-fonts ghostscript-fonts google-crosextra-caladea-fonts google-crosextra-carlito-fonts jomolhari-fonts khmeros-base-fonts lklug-fonts lohit*fonts madan-fonts nhn-nanum-gothic-fonts overpass-fonts paktype-naskh-basic-fonts paratype-pt-sans-fonts sil*fonts smc-meera-fonts stix-fonts thai-scalable-waree-fonts ucs-miscfixed-fonts urw-fonts vlgothic-fonts wqy-microhei-fonts wqy-zenhei-fonts
yum -y install policycoreutils-python
unlink /etc/systemd/system/default.target
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
reboot
@EricPSU
EricPSU / Add bookmarks to Nautilis in CentOS
Last active March 16, 2018 14:01
Add bookmarks to Nautilis in CentOS
# Add custom boomarks to the file below:
vim \home\$user\.config\gtk-3.0\bookmarks
file:///srv/ Local
smb://eaflanigan@dc05/share Share
sftp://eaflanigan@server/srv/apps/ Server Apps
@EricPSU
EricPSU / Remove standard Nautilus bookmarks in CentOS
Last active March 16, 2018 14:38
Remove standard Nautilus bookmarks in CentOS
# Edit the file below and comment out what you don't want
# REBOOT aftr edit to see changes
vim \home\$user\.config\user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
@EricPSU
EricPSU / ClamAV.sh
Last active February 13, 2018 19:43
Install and Run ClamAV on CentOS 7
# Yum install needed packages
yum install epel-release
yum install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
# Update virus definitions
freshclam
# Scan single file
clamscan /path/to/file.ext
@EricPSU
EricPSU / add-desktop-icon.sh
Last active October 31, 2020 20:01 — forked from aviskase/Postman.desktop
Install Postman on CentOS 7
cat > ~/Desktop/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/opt/Postman/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
EOL
@EricPSU
EricPSU / eyeD3.sh
Last active November 12, 2017 19:12
eyeD3 Commands
#!/bin/bash
# Remove all DRM tags
eyeD3 --remove-frame PRIV ./
# Rename according to tags
eyeD3 --rename '$artist - $album - $track:num - $title' *.mp3