You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This demonstrates how different regular expression engines handle catastrophic expressions. Python's "re" module doesn't seem to have any type of backtracking timeout.
awk
awk 4.0.1
» awk --version
GNU Awk 4.0.1
» time echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | awk '{ gsub("^(([a-z])+.)+A-Z+$", "test"); print}'
Created
November 13, 2013 21:05— forked from ikks/goo.gl.py
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
Python script to check for latest episodes of television shows from tpb. Please use responsibility. Code not the cleanest nor most efficient. Improvements to come.
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
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
These are some addons I recommend for use in Firefox to make your browsing more secure and privacy-focused. The addons link titles that are in bold are what I consider to be "must-haves" and the ones without bolded title links should be considered optional.
The "easiness" ranking ranks the extensions on how "easy" it is to install and set up. It starts at 5 being the most easy and then decreases down to 1 in "easiness". 5 means you can use the addon without any configuring (it "just works" out of the box). 4 may require some configuring to enable some main features. 3 requires several options changed to utilize its features. 2 requires some technical knowledge on what the addon actually does and what implications come from changing various settings, these kind of addons might take some set up. 1 would take considerable knowledge on what a web browser does when a website is loaded in order to
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
Merging forked gists into your gist to preserve the history of the gist.
Merging A Forked Gist Into Your Gist
Let's say you have a gist (public or private) and someone forks it and makes changes to it. Awesome! However, now you want to merge in their changes to your gist. Unfortunately, it doesn't seem GitHub supports this via their website at the moment, however, you can still merge the gists with 'git' on the command line.
You want to clone your gist. You can locate the link for this under "Clone this gist"
➜ ~/dev » git clone https://gist.github.com/5315168.git
Cloning into '5315168'...