Skip to content

Instantly share code, notes, and snippets.

@myano
myano / gist:7665456
Created November 26, 2013 20:17
E-mail received from Senator Sherrod Brown.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
From: [email protected]
Subject: So Many Things to Be Thankful For This Year
Date: 26 Nov 2013 15:02:50 -0500
So Many Things to Be Thankful For This Year
Each year, Connie and I look forward to the Thanksgiving holiday as a chance to spend time with our family and friends. It gives us a chance to reflect on the blessings that are too often overlooked.
@myano
myano / gist:7662921
Last active December 29, 2015 11:19
Reply from Senator Sherrod Brown regarding Science and Technology.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
From: "Sherrod Brown" <[email protected]>
Date: Fri, 22 Nov 2013 17:37:39 -0500
Subject: Reply from Senator Sherrod Brown
Dear Mr. Yanovich:
@myano
myano / goo.gl.py
Created November 13, 2013 21:05 — forked from ikks/goo.gl.py
#Given to the public domain
#No warranties
import urllib2
import simplejson
def shorturl(urltoshorten):
"""Compress the URL using goo.gl take a look at https://developers.google.com/url-shortener/v1/getting_started
>>> shorturl('http://igor.tamarapatino.org')
'http://goo.gl/FxHOn'
@myano
myano / gist:7435249
Last active December 28, 2015 03:29

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}'

Recommended Firefox Addons

Updated: 2017-08-10 NO LONGER MAINTAINED

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
My SSL certificate for https://yanovich.net/ has been updated.
To verify my SSL certificate you can check the certificate against the information available at these two locations:
* https://yanovich.net/contact.php
* https://github.com/myano/yanovich.net/blob/master/contact.php
-----BEGIN PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
test
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBCgAGBQJSIRXIAAoJEKBpQL3CDq4doBYP/1cERKNo/7k7hpYtXr40YFg7
oREG/upqTJoca8Cr5XZDuKeYyQkBAfGSKQdhWjRkrJiOSe9/l8Y5nPBocLlWXA+I
8Po4Ln5X8s282A3pt5wCEFQeZglyJwDit84KYN+MbNZZiaKUJ4vLoXibjUQHvo39
2*x + 1: 3, 5, 7, 9, 11, 13, 15, 17, 19,
3*x + 2: 5, 8, 11, 14, 17, 20, 23, 26, 29,
4*x + 3: 7, 11, 15, 19, 23, 27, 31, 35, 39,
5*x + 4: 9, 14, 19, 24, 29, 34, 39, 44, 49,
6*x + 5: 11, 17, 23, 29, 35, 41, 47, 53, 59,
7*x + 6: 13, 20, 27, 34, 41, 48, 55, 62, 69,
8*x + 7: 15, 23, 31, 39, 47, 55, 63, 71, 79,
9*x + 8: 17, 26, 35, 44, 53, 62, 71, 80, 89,
#!/usr/bin/env python3
for n in range(2,10):
print("{0}*x + {1}: ".format(n, n - 1), end='')
for x in range(1,10):
print(n * x + n - 1, end=', ')
print('')
#!/usr/bin/env python
## source available at: http://git.io/prw3rg
def try_to_change_list_reference(the_list):
print 'got', the_list
the_list = ['and', 'we', 'can', 'not', 'lie']
print 'set to', the_list