Skip to content

Instantly share code, notes, and snippets.

View phoexer's full-sized avatar

Michael Musangeya phoexer

View GitHub Profile
pub fn is_prime(number: i64) -> bool {
if number <= 3 {
return number > 1;
}
if number % 2 == 0 || number % 3 == 0 {
return false;
}
let upper_limit = (number as f64).sqrt().floor() as i64;
for i in (5..=upper_limit).step_by(6){
if number % i == 0 || number % (i + 2) == 0 {
@phoexer
phoexer / generate_words.py
Created June 20, 2020 15:51
Generate Potential Passwords
def generate_words(template):
word_list = []
while len(template) > 0:
if template[0] == '[':
index = template.index(']')
options = list(template[1: index])
if len(options) == 1:
options.append('')
new_word_list = []
for option in options:
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin admin@example.com
ServerName jenkins.example.com
ProxyRequests off
DocumentRoot /var/www/jenkins.example.com/public_html
SSLProxyEngine on
SSLEngine on
ProxyPreserveHost On
@phoexer
phoexer / jenkins.example.com.conf
Created February 16, 2020 20:09
Sample Jenkins file
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName jenkins.example.com
ErrorLog /var/www/jenkins.example.com/log/error.log
CustomLog /var/www/jenkins.example.com/log/access.log combined
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel error