View Setup SSDNode Server
apt update; apt -y upgrade; apt -y install sudo nano wget curl git build-essential software-properties-common dnsutils
View Aptitude Alias's for .bashrc
alias ai='aptitude install '
alias ap='aptitude purge '
alias au='aptitude update; aptitude dist-upgrade -y'
alias ap='aptitude'
View Fix IP6 Apt Issue Ubuntu Fedora
I solved this on 12.10 by editing /etc/gai.conf and uncommenting the line:
#
# For sites which prefer IPv4 connections change the last line to
#
precedence ::ffff:0:0/96 100
# Problems in Fedora
touch /etc/modprobe.d/disableipv6.conf
View Setup Ubuntu 16.04 for LAMP
#!/bin/sh
apt update
apt -y upgrade
apt -y install sudo curl wget git-core build-essential dnsutils links lynx
apt install -y mariadb-server
mysql_secure_installation
apt -y install apache2
ufw allow in "Apache Full"
ufw allow in "OpenSSH"
View Script to Install Latest Version Oracle Java on Ubuntu
#!/bin/bash
echo 'Checking for a new Java Version...'
kern_arch=$(uname -r | sed 's/.*-\(.*\)/\1/')
if [ "$kern_arch" = amd64 ]; then
java_ver=' x64'
fi
current_version=$(java -version 2>&1 >/dev/null | sed -n '1s/.*"\([^"]*\)"/\1/p')
latest_version_url=$(curl https://www.java.com/en/download/manual.jsp 2>/dev/null | grep -Po -m 1 "href=\"\K[^\"]*(?=.*Linux${java_ver} en JRE)"
)
latest_version=$(curl $latest_version_url 2>/dev/null | sed -n 's/.*File=jre-\([0-9]\)u\([0-9]\{2\}\).*/1.\1.0_\2/p')
View GoogleHackMasterList.txt
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
View setup_linode_with_postfix.sh
#!/usr/bin/env bash
## Update
sudo apt-get update && sudo apt-get upgrade -y
## Update Hostname
echo "server" > /etc/hostname
hostname -F /etc/hostname
## Update hosts File
View gist:b82c916174df2d42a7fe
sudo apt-add-repository ppa:ubuntu-mate-dev/ppa
sudo apt-add-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install mate-desktop-environment
sudo apt-get install x2goserver x2goserver-xsession
login with root or user credentials
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View Ubuntu Commands
Handy bash commands for finding out stuff in Linux:
# Clean up webserver permissions
find /var/www/* -type d -exec chmod 755 {} \; && find /var/www/* -type f -exec chmod 644 {} \; && chown -R www-data:www-data /var/www/*
# Add User and Add to Sudo
adduser zach
usermod -a -G sudo exampleuser
# Find CPU specifications