Skip to content

Instantly share code, notes, and snippets.

View HauptJ's full-sized avatar
:octocat:
Tschüss STL

Joshua Haupt HauptJ

:octocat:
Tschüss STL
View GitHub Profile
@HauptJ
HauptJ / DevEnvInstall.ps1
Last active November 24, 2017 02:38
Powershell script to install DevOps Vagrant Environment
############################################################
# Powershell script to install DevOps Vagrant Environment
# Downloads and installs Wget, Virtualbox, Vagrant, and github desktop OR Git
# Author: Joshua Haupt josh@hauptj.com Date: 7.11.2017
############################################################
##### Open IE #####
# Open IE so the user can choose the recommended settings
# SOURCE: https://superuser.com/questions/529832/how-to-open-internet-explorer-for-the-desktop-from-command-line-in-windows-8
@HauptJ
HauptJ / csfIPbanlist.txt
Created November 18, 2017 03:29
IP ban-list for failed SSH logins and attacks
Take note of the times.
212.159.139.204 # lfd: 212.159.139.204 (GB/United Kingdom/host-212-159-139-204.static.as13285.net), 5 distributed sshd attacks on account [oracle] in the last 3600 secs - Mon Sep 4 01:40:03 2017
221.232.143.219 # lfd: 221.232.143.219 (CN/China/219.143.232.221.broad.wh.hb.dynamic.163data.com.cn), 5 distributed sshd attacks on account [oracle] in the last 3600 secs - Mon Sep 4 01:40:04 2017
213.32.69.137 # lfd: 213.32.69.137 (FR/France/137.ip-213-32-69.eu), 5 distributed sshd attacks on account [oracle] in the last 3600 secs - Thu Sep 14 06:41:45 2017
110.45.145.187 # lfd: 110.45.145.187 (KR/Korea, Republic of/-), 5 distributed sshd attacks on account [oracle] in the last 3600 secs - Thu Sep 14 06:41:47 2017
@HauptJ
HauptJ / CentOSSetupMinimal.sh
Created November 18, 2017 06:30
Simple shell script to install Vagrant with Virtualbox development environment on CentOS - no optional packages
#!/bin/bash
# Simple shell script to install Vagrant with Virtualbox development environment on CentOS 7 / RHEL 7
# Minimal version - no optional packages
set -e
# Any subsequent(*) commands which fail will cause the shell script to exit immediately
# Initial update
sudo yum update -y
@HauptJ
HauptJ / csf.deny
Created November 19, 2017 02:59
CSF IP banlist as of 17/11/2017
###############################################################################
# Copyright 2006-2017, Way to the Web Limited
# URL: http://www.configserver.com
# Email: sales@waytotheweb.com
###############################################################################
# The following IP addresses will be blocked in iptables
# One IP address per line
# CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24)
# Only list IP addresses, not domain names (they will be ignored)
#
@HauptJ
HauptJ / PrintDog
Last active October 16, 2022 05:20
Java function to print a dog using ASCII art
public void printDog() {
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println("");
System.out.println("");
System.out.println(" /~~~~~~~~\\ _");
System.out.println(" ##\\__/ @) ~~~~~~~~\\ \\ \\ ) )");
System.out.println(" | /~~\\~~~~~ (( | \\");
@HauptJ
HauptJ / RemoveJunk.ps1
Last active February 18, 2024 20:30
Powershell script to remove junk apps bundled in Windows 10
############################################################
# Powershell script to remove shit features bundled in Windows 10
# Removes junk bundled with Windows 10
# App list: https://www.howtogeek.com/224798/how-to-uninstall-windows-10s-built-in-apps-and-how-to-reinstall-them/
# King shit: https://care.king.com/en/candy-crush-soda-saga/how-to-remove-candy-crush-soda-saga-from-windows-10-with-a-powershell-command
# Author: Joshua Haupt josh@hauptj.com Date: 19.12.2017
############################################################
##### Remove Awesome Features #####
@HauptJ
HauptJ / SetTimeDateAndUpdate.ps1
Last active February 21, 2020 08:38
Powershell script to set date and time settings and update Windows
############################################################
# Powershell script to set date and time settings and update Windows
# Author: Joshua Haupt josh@hauptj.com Date: 22.12.2017
############################################################
@HauptJ
HauptJ / SoftwareScript1.ps1
Last active January 4, 2018 23:36
Installs browsers, dev tools, and entertainment
############################################################
# Powershell provision personal Windows 10 environment
# Installs browsers, dev tools, and entertainment
# Script 2
# Author: Joshua Haupt josh@hauptj.com Date: 25.12.2017
############################################################
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install googlechrome -y
@HauptJ
HauptJ / VagrantDev.ps1
Created December 26, 2017 19:39
Installs Vagrant, Vagrant Manager, Packer and Windows Subsystem for Linux
############################################################
# Powershell provision personal Windows 10 environment
# Installs Vagrant, Vagrant Manager, Packer and Windows Subsystem for Linux
# Script 3
# Author: Joshua Haupt josh@hauptj.com Date: 25.12.2017
############################################################
##### Install Vagrant and Vagrant Manager #####
@HauptJ
HauptJ / ContainerDev.ps1
Created December 31, 2017 08:02
Powershell provision container development environment
############################################################
# Powershell provision container development environment
# Installs container utilities,
# Author: Joshua Haupt josh@hauptj.com Date: 31.12.2017
############################################################
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install git -y