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/env/python | |
# | |
# Source: http://blog.webhose.io/2015/08/16/dead-simple-for-devs-python-crawler-script-for-extracting-structured-data-from-any-almost-website-into-csv/ | |
import sys, thread, Queue, re, urllib2, urlparse, time, csv | |
### Set the site you want to crawl & the patterns of the fields you want to extract ### | |
siteToCrawl = "http://www.amazon.com/" | |
fields = {} | |
fields["Title"] = '<title>(.*?)</title>' | |
fields["Rating"] = 'title="(S+) out of 5 stars"' |
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
/* | |
Този скрипт е пълен с едни от най-забавните коментари на български. | |
Разработен е от някой от разработчиците на Iliyan.com за Пощенска банка. | |
Пазя го за да се смеем ако го променят в сайта. | |
Оригинална локация: https://www.postbank.bg/Applications/Locations/_inc/js/locations.js | |
*/ |
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
var LocHelper = (function() { | |
var locationHelper = locationHelper || {}; | |
locationHelper.coords = false; | |
locationHelper.domEl = document.getElementsByTagName("body"); | |
locationHelper.updateDomEl = function( innerHtml ) { | |
if( 'string' === typeof innerHtml ) { | |
locationHelper.domEl.innerHTML = innerHtml; | |
} |
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 -*- | |
"""Encrypt/decrypt files with symmetric AES cipher-block chaining (CBC) mode. | |
Usage: | |
File Encryption: | |
aescrypt.py [-f] infile [outfile] |
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/bash | |
# Functions ============================================== | |
# return 1 if global command line program installed, else 0 | |
# example | |
# echo "node: $(program_is_installed node)" | |
function program_is_installed { | |
# set to 1 initially | |
local return_=1 |
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/bash | |
while : | |
do | |
clear | |
git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all | |
sleep 1 | |
done |
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/bash | |
# vim: set sts=4 sw=4 et tw=0 : | |
# | |
# License: BSD | |
AUTOMAGIC_MODE="false" | |
: ${XWININFO:=$(type -P xwininfo)} | |
[[ -z ${XWININFO} ]] && { echo "You need to install xwininfo"; exit 1; } | |
: ${XPROP:=$(type -P xprop)} |
NewerOlder