Skip to content

Instantly share code, notes, and snippets.

View juandjara's full-sized avatar

Juan D. Jara juandjara

View GitHub Profile
@gkzhong
gkzhong / Checkstyle pre-commit hook
Created October 19, 2012 08:04 — forked from davetron5000/Checkstyle pre-commit hook
Pre Commit Hook for running checkstyle on changed files
#!/usr/bin/perl
#
# Pre-commit hook for running checkstyle on changed Java sources
#
# To use this you need:
# 1. checkstyle's jar file somewhere
# 2. a checkstyle XML check file somewhere
# 3. To configure git:
# * git config --add checkstyle.jar <location of jar>
# * git config --add checkstyle.checkfile <location of checkfile>
@JuanjoSalvador
JuanjoSalvador / downloader.py
Last active June 11, 2024 06:58
Extracts and decrypt a list of adf.ly links from a forum's post
# -*- coding: utf-8 -*-
import base64, requests, os, re, sys
from bs4 import BeautifulSoup
def _crack(code):
zeros = ''
ones = ''
for n,letter in enumerate(code):