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 glob | |
import os | |
import re | |
import time | |
import pandas as pd | |
from selenium import webdriver | |
from selenium.common import NoSuchElementException | |
from selenium.webdriver import ActionChains | |
from selenium.webdriver.chrome.options import Options |
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/env bash | |
# Install any build dependencies needed for curl | |
sudo apt-get build-dep curl | |
# Get latest (as of Feb 25, 2016) libcurl | |
mkdir ~/curl | |
cd ~/curl | |
wget http://curl.haxx.se/download/curl-7.59.0.tar.bz2 | |
tar -xvjf curl-7.59.0.tar.bz2 |
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/env perl | |
# save as /usr/lib/urxvt/perl/clipboard | |
# in .Xdefaults: URxvt.perl-ext-common: default,matcher,selection-to-clipboard | |
sub on_sel_grab { | |
my $text = quotemeta $_[0]->selection; | |
$text =~ s/\n/\\n/g; | |
$text =~ s/\r/\\r/g; | |
system("echo $text|xclip -i -selection clipboard"); |
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/env python | |
from os import system | |
from subprocess import Popen, PIPE | |
p1 = Popen(["xclip", "-o"], stdout=PIPE) | |
command = p1.communicate()[0] | |
system("urxvt -e sh -c \"" + command + " && zsh\"") |