Posts

Showing posts from November, 2015

Unprotect Excel Spreadsheet If you don't know the password

Image
This is the easiest hack ever : With the Excel spreadsheet open, Press Alt + F11 (or go to View Code in the Developer’s Tab) In the window that appears, paste in this code (courtesy of  University of Wisconsin-Green Bay ) Sub PasswordBreaker()     'Breaks worksheet password protection.     Dim i As Integer, j As Integer, k As Integer     Dim l As Integer, m As Integer, n As Integer     Dim i1 As Integer, i2 As Integer, i3 As Integer     Dim i4 As Integer, i5 As Integer, i6 As Integer     On Error Resume Next     For i = 65 To 66: For j = 65 To 66: For k = 65 To 66     For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66     For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66     For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126     ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _         Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _         Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)     If ActiveSheet.ProtectContents

Complete list of Serenity properties

Image
The Serenity Reference Manual: http://thucydides.info/docs/serenity-staging/ Serenity properties Absolute path of the property file where Serenity system property defaults are defined. Defaults to ~/serenity.properties webdriver.driver What browser do you want your tests to run in, for example firefox, chrome, phantomjs or iexplorer. You can also use the  driver  property as a shortcut. webdriver.provided_type If using a provided driver, what type is it. The implementation class needs to be defined in the webdriver.provided.{type} system property. webdriver.base.url The default starting URL for the application, and base URL for relative paths. webdriver.remote.url The URL to be used for remote drivers (including a selenium grid hub or SauceLabs URL) phantomjs.webdriver.port What port to run PhantomJS on (used in conjunction with webdriver.remote.url to register with a Selenium hub, e.g. -Dphantomjs.webdriver=5555 -Dwebdriver.remote.url=http://localhost:444

Now that's what I call a Hacker / Automation enthusiast :P

Image
Can you steal something that has already been stolen  posted using his permission: I was so amazed by this person's laziness  awesomeness that I had to do a re-post xxx: OK, so, our build engineer has left for another company. The dude was literally living inside the terminal. You know, that type of a guy who loves  Vim , creates diagrams in   Dot   and writes wiki-posts in Markdown... If something - anything - requires more than 90 seconds of his time, he writes a script to automate that. xxx: So we're sitting here, looking through his, uhm, "legacy" xxx: You're gonna love this xxx:  smack-my-bitch-up.sh  - sends a text message "late at work" to his wife (apparently). Automatically picks reasons from an array of strings, randomly. Runs inside a cron-job. The job fires if there are active SSH-sessions on the server after 9pm with his login. xxx:  kumar-asshole.sh  - scans the inbox for emails from "Kumar" (a DBA at our clients).

POM.xml explained

Image
POM stands for project object model.  The  pom.xml  file is the core of a project's configuration in Maven.  It is a single configuration file that contains the majority of information required to build a project in just the way you want.  It contains default values for most projects. When executing a task or goal, Maven looks for the POM in the current directory. It reads the POM, gets the needed configuration information, then executes the goal. Super POM -  The Super POM is Maven's default POM. All POMs extend the Super POM unless explicitly set, meaning the configuration specified in the Super POM is inherited by the POMs you created for your projects The minimum requirement for a POM are the following: project root modelVersion - should be set to 4.0.0 groupId - the id of the project's group. artifactId - the id of the artifact (project) version - the version of the artifact under the specified group packaging - Every Maven project has a packaging ty