Skip to content

Instantly share code, notes, and snippets.

View SniperProSerria117's full-sized avatar

Kristopher Hurst SniperProSerria117

  • 1953
  • United States
View GitHub Profile
@SniperProSerria117
SniperProSerria117 / passwordhacker2.py
Created December 13, 2014 21:02
part two pythkn password hacker
def search_method_2(num_pass_wheels):
global totalguesses
result = False
starttime = time.time()
tests = 0
still_searching = True
print("Using method 2 and saerching with "+str(num_pass_wheels)+" password wheels.")
wheel = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
if(num_pass_wheels > 8):
@SniperProSerria117
SniperProSerria117 / passwordcracker.py
Created December 13, 2014 18:31
Android created Gist
def search_method_1 (num_digits):
global totalguesses
result = False
a = 0
starttime=time.time()
print("Using method one and searching for "+str(num_digits)+" digitnumbers.")
while still_searching and a<(10**num_digits):
ourguess = leading_zeros(a,num_digits)
tests = tests + 1
@SniperProSerria117
SniperProSerria117 / userinput.java
Created November 13, 2014 23:08
Java Option Pane
package userinput;
import javax.swing.JOptionPane;
public static void main(String[] args) {
}
@SniperProSerria117
SniperProSerria117 / remove Apache
Created November 12, 2014 01:25
How to remove Apache in ubuntu
sudo/etc/int.d/apache2stop
sudo/rm/etc/int.d/apache
package velocity;
import java.util.Scanner;
public class Velocity {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
double Momentum;
double Mass;
double Velocity;
System.out.print("Enter mass: ");
Mass = reader.nextDouble();
package payroll;
import javax.swing.JOptionPane;
public class PayRoll {
public static void main(String[] args) {
String inputString;
String name;
int hours;
double payRate;
double grossPay;
name = JOptionPane.showInputDialog("What is " +
package barchart;
import java.util.Scanner;
public class BarChart {
public static void main(String[] args)
{
// declare a double array
double[] store = new double[5];
// PrimeNumber.java: Print first 50 prime numbers
public class PrimeNumber {
/** Main method */
public static void main(String[] args) {
final int NUM_OF_PRIMES = 50;
int count = 1; // Count the number of prime numbers
int number = 2; // A number to be tested for primeness
boolean isPrime = true; // Is the current number is prime?
System.out.println("The first 50 prime numbers are \n");