Skip to content

Instantly share code, notes, and snippets.

View Lerie82's full-sized avatar

Lerie Taylor Lerie82

View GitHub Profile
@Lerie82
Lerie82 / rubj.sh
Last active September 19, 2018 17:57
ruby+jekyll install on ubuntu xenial
#!/bin/sh
#https://jekyllrb.com/docs/installation/ubuntu/
sudo apt-get install ruby ruby-dev build-essential
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME=$HOME/gems' >> ~/.bashrc
echo 'export PATH=$HOME/gems/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
#bundle install
sudo gem install jekyll bundler
@Lerie82
Lerie82 / php7to71
Created January 11, 2019 22:29
update from php7 to php7.1 and update laravel
#moving from php7.0 to php7.1 for laravel
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get -y install php7.1 php7.1-common
sudo apt-get install php7.1-xml php7.1-mbstring
@Lerie82
Lerie82 / install-metasploit.sh
Last active June 17, 2019 10:13
install metasploit and kail on chromebook
#installing kali (optional)
sudo umount /dev/sdb1
sudo mkfs.ext4 /dev/sdb1
wget https://goo.gl/fd3zc -o crouton
cd ~/Downloads
sudo sh crouton -r kali -t core,cli-extra -p /media/removable/USB\ Drive/
sudo sh /media/removable/USB\ Drive/bin/enter-chroot
#installing metasploit
sudo apt-get -y install \
build-essential zlib1g zlib1g-dev \
@Lerie82
Lerie82 / install-ruby.sh
Last active February 2, 2020 09:29
installs ruby 2.7 - 02/02/2020
apt-get -y install software-properties-common
apt-add-repository ppa:brightbox/ruby-ng
apt-get update
apt-get -y install ruby2.7
ruby -v
sudo service mysql stop
sudo usermod -d /var/lib/mysql/ mysql
sudo service mysql start
@Lerie82
Lerie82 / wordpscan.sh
Last active May 31, 2020 11:35
scan a range of ip's with nmap looking for wordpress sites
#!/bin/bash
#https://lerietaylor.com/blog
#scan a range of ip's with nmap looking for wordpress sites
#lerie,11:29pm,6/6/18
#fxbg,11:57,6/6/18
#get nmap argument for ip range
if [ "$1" == "" ]; then
echo 'no argument set'
exit
@Lerie82
Lerie82 / install-wordpress.sh
Last active February 10, 2021 06:55
Download and unpack WordPress
wget https://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
@Lerie82
Lerie82 / install-lamp.sh
Last active February 10, 2021 09:16 — forked from aamnah/lamp.sh
Bash script to install Apache, MySQL, PHP and PHPMyAdmin
#!/bin/bash
#######################################
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems.
# Originally written by @AamnahAkram from http://aamnah.com
# 2019-2021: Updates and maintenance by Lerie Taylor https://www.lerietaylor.com/
# uninstall: https://gist.github.com/Lerie82/de06e0f5f03305c6d991c30599b7567e
#######################################
#COLORS
# Reset
#!/bin/bash
#################################
# Created by Lerie Taylor
# 02/10/21 - The year of the Covid
# https://www.lerietaylor.com
# install script: https://gist.github.com/Lerie82/f0951a99ec574a3485d2ea50064ffa56
#################################
#COLORS
# Reset
@Lerie82
Lerie82 / reset-phpmyadmin-password.sh
Created February 10, 2021 09:13
Will reset your PHPMyAdmin password
sudo service mysql stop
sudo mysqld --skip-grant-tables &
sudo mysql -u root mysql -e "UPDATE mysql.user SET authentication_string= 'password' WHERE User = 'root'; FLUSH PRIVILEGES; exit;"
sudo pkill mysqld
sudo service mysql start