This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.prismadroid.colors; | |
import java.util.Random; | |
public class ColorUtils | |
{ | |
private static Random random = new Random(System.currentTimeMillis()); | |
public static Rgb24 randomColor() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REMOTE_USER=usename | |
REMOTE_HOST=source.com | |
REMOTE_PORT=22 | |
REMOTE_DIR=folder | |
LOCAL_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
PROXY_ENABLE=true | |
PROXY_USER=proxy-user | |
PROXY_HOST=proxy.host.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib2 | |
import urllib | |
import re | |
def randomThing(): | |
randomURL="http://en.wikipedia.org/wiki/Special:Random" | |
req = urllib2.Request(randomURL) | |
res = urllib2.urlopen(req) | |
finalurl = res.geturl() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
""" | |
Author: takeshix <takeshix@adversec.com> | |
PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org). | |
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
""" | |
import sys,struct,socket | |
from argparse import ArgumentParser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CONNECTED_OUTPUTS=$(xrandr -q | grep "\Wconnected" | cut -d ' ' -f1) | |
DISCONNECTED_OUTPUTS=$(xrandr -q | grep "\Wdisconnected" | cut -d ' ' -f1) | |
disable() | |
{ | |
for output in $DISCONNECTED_OUTPUTS; | |
do | |
xrandr --output $output --off | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
USB_SERIAL="TODO" | |
START_CMD="xscreensaver -no-splash" | |
LOCK_CMD="xscreensaver-command --lock" | |
UNLOCK_CMD="killall xscreensaver" | |
LAST_SEEN="" | |
#return 1 if device is found, 0 otherwise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Replace the old /usr/bin/cb-exit with this one. | |
import pygtk | |
pygtk.require('2.0') | |
import gtk | |
import os | |
import getpass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Author: Todd Larason <jtl@molehill.org> | |
# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $ | |
# use the resources for colors 0-15 - usually more-or-less a | |
# reproduction of the standard ANSI colors, but possibly more | |
# pleasing shades | |
# colors 16-231 are a 6x6x6 color cube | |
for ($red = 0; $red < 6; $red++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#this function was taken from: | |
# https://wiki.archlinux.org/index.php/Color_Bash_Prompt#Colors_overview | |
colors() { | |
local fgc bgc vals seq0 | |
printf "Color escapes are %s\n" '\e[${value};...;${value}m' | |
printf "Values 30..37 are \e[33mforeground colors\e[m\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h=$(hostname|figlet);c=$(($(hostname|wc -c)%6+1));echo "\033[3${c}m${h}\033[0m" |
OlderNewer