This file contains hidden or 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
# brought to you by doitwithcode.com | |
# add Inline with Upstream Stable repository | |
sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm | |
# run an update | |
sudo yum update | |
# install Python 3 | |
sudo yum install -y python36u python36u-libs python36u-devel python36u-pip |
This file contains hidden or 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
# mod_ssl | |
yum install mod_ssl | |
# virtualhost | |
<VirtualHost *:80> | |
ServerName www.codedemo.gq | |
ServerAlias codedemo.qg | |
DocumentRoot /var/www/codedemo.gq/html | |
ErrorLog /var/www/codedemo.gq/logs/error.log |
This file contains hidden or 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 Perl if not already installed | |
yum -y install perl | |
# set a hostname for your server | |
hostname server.codebeginner.net | |
# change directory to /home | |
cd /home | |
# download the cPanel script |
This file contains hidden or 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
pip install coinbase |
This file contains hidden or 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
/* | |
Tired of scrolling to one of the last photos on the page on Instagram? Let your | |
browser do the scrolling for you! | |
31-05-2017 | |
(c) 2017 - Loran Kloeze - [email protected] | |
Usage | |
- Go to https://www.instagram.com/instagram_handle/ (change instagram_handle in i.e. taylorswift) | |
- Open up the console (F12) (Firefox users: type 'allow pasting' if you haven't done so yet) | |
- Select the contents of this complete file and copy/paste it to the console and hit enter |
This file contains hidden or 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 | |
# Get all users from the database | |
users=$(mysql -u <user> -p<password> <dbname> -Bse "select user_login from wp_users") | |
# put the users in an array | |
array=( $users ) | |
# for loop to set a random password, get the users email address, reset the password and send an email with the new password | |
for user in "${array[@]}" |