Skip to content

Instantly share code, notes, and snippets.

View iamrush3r's full-sized avatar

iamrush3r

View GitHub Profile
@iamrush3r
iamrush3r / Ubuntu 20.04: Wordpress with Nginx installation.md
Last active March 19, 2021 05:37
Ubuntu 20.04: Wordpress with Nginx installation

Install Nginx, PHP, and MySQL

Before installing WordPress, our Ubuntu 20.04 system will need three main components to run it: Nginx, PHP, and MySQL. Nginx is for our web server, PHP is to display dynamic content, and MariaDB (an open source fork of MySQL) is for our database. You can install these packages by opening a terminal and typing the following two commands: $ sudo apt update $ sudo apt install nginx mariadb-server mariadb-client php-fpm php-mysql

Configure MySQL

MySQL requires a little bit of setting up before we can start creating a database. Let's first run through the initial security setup. Type the following command in terminal: $ sudo mysql_secure_installation You'll be asked to set a root password for MySQL, and then a few security question. You can answer y (yes) to all the questions, and then setup will complete.

From: http://redteams.net/bookshelf/
Techie
Unauthorised Access: Physical Penetration Testing For IT Security Teams by Wil Allsopp.
Social Engineering: The Art of Human Hacking by Christopher Hadnagy
Practical Lock Picking: A Physical Penetration Tester's Training Guide by Deviant Ollam
The Art of Deception: Controlling the Human Element of Security by Kevin Mitnick
Hacking: The Art of Exploitation by Jon Erickson and Hacking Exposed by Stuart McClure and others.
Nmap Network Scanning: The Official Nmap Project Guide to Network Discovery and Security Scanning by Fyodor
The Shellcoder's Handbook: Discovering and Exploiting Security Holes by several authors
@iamrush3r
iamrush3r / Don't use VPN services..md
Last active March 19, 2021 05:38 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
# Python3 program to find compound
# interest for given values.
def compound_interest(principle, rate, time):
# Calculates compound interest
CI = principle * (pow((1 + rate / 100), time))
print("Compound interest is", CI)
# Driver Code
# Python program to determine whether the number is
# Armstrong number or not
# Function to calculate x raised to the power y
def power(x, y):
if y==0:
return 1
if y%2==0:
return power(x, y/2)*power(x, y/2)
return x*power(x, y/2)*power(x, y/2)
# Python program to find Area of a circle
def findArea(r):
PI = 3.142
return PI * (r*r);
# Driver method
print("Area is %.6f" % findArea(5));
# This code is contributed by Chinmoy Lenka
# python program to check if x is a perfect square
import math
# A utility function that returns true if x is perfect square
def isPerfectSquare(x):
s = int(math.sqrt(x))
return s*s == x
# Returns true if n is a Fibinacci Number, else false
def isFibonacci(n):
# Function for nth Fibonacci number
def Fibonacci(n):
if n<0:
print("Incorrect input")
# First Fibonacci number is 0
elif n==1:
return 0
# Second Fibonacci number is 1
elif n==2:
# Python program to check if
# given number is prime or not
num = 11
# If given number is greater than 1
if num > 1:
# Iterate from 2 to n / 2
for i in range(2, num//2):
# Python program to print all
# prime number in an interval
start = 11
end = 25
for val in range(start, end + 1):
# If num is divisible by any number
# between 2 and val, it is not prime