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
''' | |
Script to periodically check the Cricket scores from a website | |
and print it to a window | |
Window part is yet to be done, | |
Thinking of using Tkinter with its glorious always on the top mode. | |
Kish | |
'''' |
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
/* | |
* Creating classes to learn a bit about java | |
*/ | |
/** | |
* Super hero classes | |
*/ | |
/** | |
* All our super heros belong to this class |
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
Late 4th century AD The Roman Empire began to collapse | |
Alexandria in the province of Egypt, still preserved part of its splendor. It owned one of the 7 wonders of the ancient world. the legendary lighthouse, and the largest known library. | |
The library was not only a cultural symbol. But religious a place where the pagans worshiped their ancestral gods. | |
The traditional pagan cult now coexisted in the city with the Jewish. And with an unstoppable religion, until recently Christianity was prohibited | |
**** | |
After taking the library, many pagans converted to Christianity and Alexandria experienced a period of peace. |
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
*#c::Run Calc.exe | |
#n:: | |
Run Notepad | |
return | |
#u::Send +{Up 10} | |
#j::Send +{Down 10} | |
#a:: | |
Send {Home 20} | |
CoordMode, Mouse, Screen |
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
/* | |
* Program to serve many client request without blocking | |
* using epoll | |
* | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/epoll.h> |
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/setxkbmap -option "ctrl:swapcaps" |
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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
chromedriver= '/tmp/chromedriver' | |
os.environ["webdriver.chrome.driver"] = chromedriver | |
browser = webdriver.Chrome(chromedriver) | |
browser.get('http://www.site.com') | |
assert 'site' in browser.title |
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
Was trying to create an rpm from the installed haproxy binaries. | |
Ran into this problem. | |
Turns out we need to do a prelink -u haproxy on the binary that we're packaging. | |
The binary had come from a different machine than the place where we're building it. | |
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
get '/costs' do | |
begin | |
account_service = SoftLayer::Service.new("SoftLayer_Account") | |
costs= account_service.object_mask({"hardware" => ["id", "hostname","notes", "cost"]}).getHardware | |
rescue | |
@error = "Error fetching cost details !! " | |
end |
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
import pyatspi | |
import time | |
time.sleep(5) | |
count=0 | |
for i in range (1, 10000) : | |
pyatspi.Registry.generateKeyboardEvent(65, None, pyatspi.KEY_PRESSRELEASE) | |
count=count+1 | |
if count < 33: | |
time.sleep(0.5107) |
NewerOlder