Skip to content

Instantly share code, notes, and snippets.

View pry0cc's full-sized avatar
💭
Hacking the Planet

pry0cc pry0cc

💭
Hacking the Planet
  • Amazon Web Services
  • Austin, TX
  • X @pry0cc
View GitHub Profile
@pry0cc
pry0cc / spacegray-stylish.css
Last active August 29, 2015 14:10
SpaceGray Base 16 Eighties Dark theme for stylish
/* * * * * *
Adapted from:
http://noha-ra.deviantart.com/art/Melbourne-Firefox-CSS-FF-29-and-above-473887761
* * * * * * */
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/*remove internal border*/
@pry0cc
pry0cc / progress.py
Last active August 29, 2015 14:13
The Dysfunctional Progress Bar - A progress bar, by me. xD
#!/usr/bin/env python
import time
import sys
import os
#################### By Pry0cc - The Dysfunctional Progress bar ####################
### Credit from stack overflow - A function to get height and width of terminal window
@pry0cc
pry0cc / CaesarCipher.c
Created February 6, 2015 23:26
CaesarCipher in C! Will probably only work on Linux/Unix, I used the -std=c99 compiler.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
/*encypt.c*/
// Function prototypes
int CipherChar(char *s, int offset);
int CipherStr(char *s, int offset);
@pry0cc
pry0cc / .conkyrc
Created April 19, 2015 18:34
My conkyrc file that works with my i3 desktop
own_window yes
own_window_type override
own_window_class conky
own_window_argb_visual
own_window_transparent yes
draw_shades no
alignment bottom_middle
background yes
gap_y 28
LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
def main():
# This text can be copy/pasted from http://invpy.com/vigenereCipher.py
myMessage = input("Input a message >>> ")
myKey = input("Input a keyword >> ")
opt = input(" E for Encrypt or D for Decrypt? >> ") # set to 'encrypt' or 'decrypt'
if (opt == "e"):
myMode = "encrypt"
else:
@pry0cc
pry0cc / backup.sh
Created May 16, 2015 16:29
Backup script
echo " ____ _ ____ _ ___ _ ____ "
sleep 0.1
echo "| __ ) / \ / ___| |/ / | | | _ \ "
sleep 0.1
echo "| _ \ / _ \| | | ' /| | | | |_) |"
sleep 0.1
echo "| |_) / ___ \ |___| . \| |_| | __/"
sleep 0.1
echo "|____/_/ \_\____|_|\_\\___/|_| "
echo ""
@pry0cc
pry0cc / reverse-ssh.sh
Created August 5, 2015 22:10
A reverse ssh script.
mode=$1
local_ip=$2
local_port=$3
function serv_ins {
echo "ssh -N -R $local_port:localhost:22 root@$local_ip" | sudo timeout 2 nc -l -c -p $local_port
}
if [ $mode = -s ]
then
import java.util.Scanner;
public class JoshuaFlores_Exam4 {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
int day = 1;
int floor = 120;
int weeks = 7;
int roachsize = 3;
double formula = 0.53 * roachsize * 4;
@pry0cc
pry0cc / iptrack
Created July 30, 2016 21:49
A snappy application to find out everything known about an IP.
#!/usr/bin/env ruby
require 'json'
require 'mechanize'
require 'rubygems'
require 'open-uri'
puts "Looking up #{ARGV[0]}"
agent = Mechanize.new

Keybase proof

I hereby claim:

  • I am pry0cc on github.
  • I am pry0cc (https://keybase.io/pry0cc) on keybase.
  • I have a public key whose fingerprint is 4F84 4948 8DC6 2D35 F4B1 13D4 A39C 6C67 EEF0 2546

To claim this, I am signing this object: