Skip to content

Instantly share code, notes, and snippets.

@saifullah-azmi
saifullah-azmi / SecondsToTime.cs
Last active February 14, 2016 14:51
C# code to convert given whole numbers of seconds to hh:mm:ss
using System;
public class SecondsToTime {
public static int Main() {
double totalSeconds;
Console.Write("Please enter the number of seconds: ");
string userInput = Console.ReadLine();
@saifullah-azmi
saifullah-azmi / getuserpass.py
Last active March 1, 2016 16:46
Generates a txt file containing a combination of [user:password] for all passwords cracked using John the Ripper for a given passwd file.
#!/usr/bin/python
###############################################################################
# IMPORTANT:
# Place this script in $JOHN/run/ directory.
#
# USAGE:
# $ python <scriptname>.py <passwdfile> <outfile>
# Where -
# scriptname = name of this script.
# passwdfile = passwd file cracked by JtR.
@saifullah-azmi
saifullah-azmi / gist:12a9aad1db9f334c1020
Created January 18, 2016 20:50
Minimalistic terminal settings
#Minimalistic
#Colors
lineandtime=$(tput setaf 2)
location=$(tput setaf 4)
prompt=$(tput setaf 5)
reset=$(tput sgr0)
export PS1='\[$lineandtime$(tput smso)\][\#] <\A>\[$reset$location\] \W \[$prompt\]% \[$reset\]'
@saifullah-azmi
saifullah-azmi / gist:23514b970005e8ad9174
Created December 25, 2015 22:25
Snippet: Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@saifullah-azmi
saifullah-azmi / gist:7b0f1c5a9e20d0299e1b
Last active March 1, 2016 16:47
Snippet: HTML5 starting template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="">
</head>
<body>