Skip to content

Instantly share code, notes, and snippets.

def fetch_blog(feed):
pr = feedparser.parse(feed)
added = 0
for entry in pr.entries:
pub_date = datetime.fromtimestamp(mktime(entry.published_parsed))
hr = html.fromstring(entry.description)
first_img = hr.cssselect('img')
obj, created = Item.objects.get_or_create(title=entry.title,
permalink=entry.link,
published_at=pub_date,
#!/home/julio/.virtualenvs/chrome/bin/python
import json
import httplib2
import websocket
__version__ = (0, 0, 1)
class ChromeShell(object):
def __init__(self, host='localhost', port=9222):
Executable = vertex_cover
Output = wrapper.log
Error = wrapper.err
Log = condor.log
Requirements = Memory >= 1024
Notification = never
transfer_input_files = input.txt
should_transfer_files = YES
when_to_transfer_output = ON_EXIT
import sys
import tweepy
consumer_key=""
consumer_secret=""
access_key = ""
access_secret = ""
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
#include <stdio.h>
#include <string.h>
static const int NUM_LETRAS = ('Z' - 'A') + 1;
int main(int argc, char const *argv[]){
int arregloletras[NUM_LETRAS];
int prev=0, current=0;
memset(arregloletras, 0, sizeof arregloletras);
FROM ubuntu:12.04
MAINTAINER Julio Castillo "julio@talpor.com"
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get -qq update
RUN apt-get upgrade -y
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl
import std;
backend default {
.host = "127.0.0.1";
.port = "8080";
.first_byte_timeout = 60s;
.connect_timeout = 60s;
.between_bytes_timeout = 60s;
.max_connections = 200;
<!DOCTYPE html>
<html>
<head>
<title>My first web page</title>
</head>
<body>
<p id="p1">Paragraph 1</p>
<p id="p2" class="a">Paragraph 2</p>
<p id="p3" class="a">Paragraph 3</p>
</body>
BIG-IP Registration key(s):
LHFVY-HLJWR-OZTQV-WPHMC-CWGLXHT (BIG-IP VE Trial)
BIG-IQ Registration key(s):
YHBMS-TAVCRW-MDJ-HNIARDR-YJIAKPR (BIG-IQ Console Node)
KEOTH-IPTYTG-MJH-AQDGENL-EGEZFMX (BIG-IQ Data Collection Device)
$ TF_LOG=DEBUG terraform apply
2021/02/22 10:15:11 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2021/02/22 10:15:11 [INFO] Terraform version: 0.14.7
2021/02/22 10:15:11 [INFO] Go runtime version: go1.15.8
2021/02/22 10:15:11 [INFO] CLI args: []string{"/Users/jccb/homebrew/bin/terraform", "apply"}
2021/02/22 10:15:11 [DEBUG] Attempting to open CLI config file: /Users/jccb/.terraformrc
2021/02/22 10:15:11 Loading CLI configuration from /Users/jccb/.terraformrc
2021/02/22 10:15:11 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins