Skip to content
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
View .bashrc
PS1='\[\033[1;31m\]\W/\[\033[0m\] '
##### DEFAULTS #####
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
PROMPT_COLOR='35;1m'
export HISTCONTROL=ignoreboth
View gist:6113052
#!/bin/bash
#############################################################
# Setup Ubuntu 12.04 32/64 Natty Web Server for WordPress #
# by Zach Browne - http://zachbrowne.com #
#############################################################
## Setup SSH
mkdir ~/.ssh/
View instructions.txt
git clone git://github.com/imathis/octopress.git zachbrowne.github.io
cd zachbrowne.github.io
bundle install
rake install
rake setup_github_pages
rake generate
rake deploy
git init
git remote add origin https://github.com/zachbrowne/zachbrowne.github.com.git
git config branch.master.remote origin
View installation.txt
sudo apt update && sudo apt -y upgrade
sudo apt install software-properties-common python-software-properties
sudo apt update
sudo apt-add-repository -y ppa:x2go/stable ppa:freenx-team/ppa ppa:ubuntu-mate-dev/ppa ppa:ubuntu-mate-dev/trusty-mate
sudo apt update
sudo apt install install gnome-session-fallback mate-desktop-environment-extras freenx freenx-server
# download the installation script
wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz
Something went wrong with that request. Please try again.