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
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
function prompt_char { | |
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi | |
} | |
PROMPT='%(?,,%{$fg[red]%}FAIL: $?%{$reset_color%} |
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/bash | |
while true | |
do | |
curl -d "mode=191&username=UUUU&password=PPPPPP" http://172.10.1.2:8090/httpclient.html -o /dev/null | |
sleep $[7*60]; | |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<!-- SQL XML created by WWW SQL Designer, http://code.google.com/p/wwwsqldesigner/ --> | |
<!-- Active URL: file:///home/spacetime/Downloads/wwwsqldesigner-2.6/index.html --> | |
<sql> | |
<datatypes db="sqlite"> | |
<group label="Affinity"> | |
<type label="Text" default="" length="1" sql="TEXT" quote="'" color="rgb(255,200,200)"/> | |
<type label="Numeric" default="0" length="0" sql="NUMERIC" quote="" color="rgb(238,238,170)"/> | |
<type label="Integer" default="0" length="0" sql="INTEGER" quote="" color="rgb(238,238,170)"/> | |
<type label="Real" default="0" length="0" sql="REAL" quote="" color="rgb(238,238,170)"/> |
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/python | |
from urllib import urlopen | |
import smtplib | |
import logging | |
import os | |
sender = 'youremail@here.com' | |
recipients = ['abc@gmail.com' | |
'abc@def.com', | |
'asd@asd.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
#Bare bones Example used to demonstrate processing by AppEngine for data sent through the Android app | |
from google.appengine.ext import webapp | |
from google.appengine.ext.webapp import util | |
class MainHandler(webapp.RequestHandler): | |
def post(self): | |
num1 = self.request.get('num1') | |
num2 = self.request.get('num2') | |
num3= int(num1)*int(num2) |