This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set background=dark | |
syntax on | |
set ruler " show the line number on the bar | |
set more " use more prompt | |
set autoread " watch for file changes | |
set number " line numbers | |
set hidden | |
set noautowrite " don't automagically write on :next | |
set lazyredraw " don't redraw when don't have to | |
set showmode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Daniel Masi | |
email = beenhere4hours@gmail.com | |
[alias] | |
# lists the available aliases | |
ad = add | |
al = config --get-regexp alias | |
st = status | |
ci = commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------- alias | |
# list long | |
alias ll='ls -lah' | |
# go to code dir | |
alias code='cd ~/code' | |
# clear screen | |
alias cl='clear' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bash_login file | |
# commands to perform from the bash shell at login time | |
# (sourced from .bash_profile) | |
echo | |
w | |
#cal `date +"%m"` `date +"%Y"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bash_logout | |
clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INSPI="com.safeguardproperties.inspi" | |
PD="com.safeguardproperties.photodirect" | |
function deletePreviousData () { | |
echo | |
if [ -f ~/Downloads/data.ab ]; then | |
echo removing previous data file | |
rm -r ~/Downloads/data.ab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store | |
nbproject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Both of the sites below give information on how to implement encryption and best practices | |
http://nelenkov.blogspot.com/2012/04/using-password-based-encryption-on.html | |
http://karanbalkar.com/2014/02/tutorial-76-implement-aes-256-encryptiondecryption-using-java/ | |
*/ | |
package com.masi.encryption; | |
import java.security.AlgorithmParameters; | |
import java.security.SecureRandom; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# login - gain access to the box | |
ssh root@dmasi.us | |
# open 2 connections as we will need access if the changes below fail | |
# set up user | |
# set some vars | |
MYUSERNAME="dmasi" | |
MYUSERKEY="<pub key>" | |
useradd $MYUSERNAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Install EPEL | |
wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-1.noarch.rpm | |
rpm -Uvh yum install epel-release-7-1.noarch.rpm | |
## Install iptables-services | |
yum install iptables-services | |
## Configure the IP Tables | |
systemctl mask firewalld | |
systemctl enable iptables |
OlderNewer