Skip to content

Instantly share code, notes, and snippets.

View pointerish's full-sized avatar
🏠
Working from home

Josías Alvarado pointerish

🏠
Working from home
View GitHub Profile
@pointerish
pointerish / seo_is_indexed.py
Created June 24, 2021 00:09
Processes a list of URLs and creates a CSV file with URL, is_indexed, and status code columns
import requests
import logging
SITE_CHECKUP = 'https://www.google.com/search?q=site%3A'
ERR_MESSAGES = (
'No se han encontrado resultados',
'did not match',
)
@pointerish
pointerish / pointerish_utils.py
Created May 22, 2020 19:09
This gist contains functions that I've found useful.
# pointerish_utils.py
# Useful functions
import math
def count_digits(number):
"""
Returns an integer representing how many digits
the input has.
@pointerish
pointerish / rmduplicates.py
Last active February 21, 2020 22:15
This code removes duplicates from a directory and its subdirectories by hashing the binary contents of the files.
#!/usr/bin/python3
import os
import hashlib
__author__ = 'Josias Alvarado'
#This code finds duplicated files by opening the file in binary mode.
#Only exact files will get deleted.
set number
set ruler
set laststatus=2
set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=79
set expandtab
set autoindent
set fileformat=unix