This file contains hidden or 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
// ==UserScript== | |
// @name Tumblr Shortcut Modifiers for Linux | |
// @namespace mtrovo | |
// @include http://www.tumblr.com/* | |
// @grant GM_log | |
// @version 1 | |
// ==/UserScript== | |
var KeyCommandsForLinux = (function ($) { | |
return unsafeWindow.Backbone.View.extend({ |
This file contains hidden or 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
<html> | |
<body> | |
Arraste este <a href="javascript:void((function(){$=document.getElementById;document.getElementsByTagName('html')[0].style.overflow="";$('mask').style.display='none';$('pw-content').style.display='none'})())">link</a> | |
para a sua barra de favoritos.<br> | |
Toda vez que entrar em alguma página com o PayWall exigindo cadastro é só clicar no favorito que você salvou e pronto, você pode seguir lendo tranquilamente. | |
=] | |
</body> | |
This file contains hidden or 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 sys | |
import os | |
import re | |
import pprint | |
# lista com tuplas do seguinte formato (regex, tipo, email_final) | |
# abaixo exemplo adaptando o exemplo inicial | |
patterns = ( | |
(r'(\w+)@(\w+).edu', 'e', r'\1@\2.edu'), | |
#TODO: aqui voce colocaria o resto das suas regex, |
This file contains hidden or 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"?> | |
<!-- | |
This file is part of GtkSourceView | |
Author: Moises Trovo <[email protected]> | |
Copyright (C) 2012 Moises Trovo <[email protected]> | |
GtkSourceView is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public |
This file contains hidden or 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/sh | |
mvn install:install-file -Dfile=quickfixj-core-1.5.3.jar -DgroupId=quickfixj \ | |
-DartifactId=quickfixj-core -Dversion=1.5.3 -Dpackaging=jar | |
mvn install:install-file -Dfile=quickfixj-all-1.5.3.jar -DgroupId=quickfixj \ | |
-DartifactId=quickfixj-all -Dversion=1.5.3 -Dpackaging=jar |
This file contains hidden or 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/env python | |
#-*- coding:utf-8 -*- | |
from tweepy.streaming import StreamListener, Stream | |
from tweepy.auth import BasicAuthHandler | |
from tweepy.api import API | |
import tweepy | |
class MyStreamListener(StreamListener): | |
def __init__(self, api=None): |
This file contains hidden or 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/env python | |
#-*- coding:utf-8 -*- | |
import commands | |
import os.path | |
from sys import argv | |
def set_gnome_wallpaper(file_path): | |
command = "gconftool-2 --set \ | |
/desktop/gnome/background/picture_filename \ |
This file contains hidden or 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
Section "Device" | |
Identifier "Configured Video Device" | |
Driver "sis671" | |
EndSection | |
Section "Monitor" | |
HorizSync 28-72 | |
VertRefresh 43-60 | |
Identifier "Configured Monitor" | |
EndSection |
NewerOlder