Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Simplified by me, Tiago Carrondo <tcarrondo@ubuntu.com>
# Thanks to: Romain Fluttaz <romain@botux.fr>
# Thanks to: Wayne Ward <info@wayneward.co.uk>
# Thanks to: Mitchell Reese <mitchell@curiouslegends.com.au>
# --------------- [ Server ] ---------------- #
CONTACTS_URL=" " # add the carddav URL here
USERNAME=" " # you know this one
PASSWORD=" " # lots of ******
@erm3nda
erm3nda / google-images-reverse-search.py
Last active January 1, 2024 11:19
Google Images Reverse Search - Python & Selenium
#!/usr/local/env python
# -*- coding: utf-8 -*-
# autor: erm3nda at gmail
# website: erm3nda.github.io
# searchs for content inside an image, then compares to a string, example, looking for cat inside a picture (PetFinder)
# if geany: Geany (f5) ads custom params when executes file, remove them if you don't wanna see errors or play yourself with term
import os, sys, re
import selenium, base64, time
from selenium import webdriver
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active June 2, 2024 11:23
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

anonymous
anonymous / gist:672959
Created November 11, 2010 18:41
<!-- Special characters for XML -->
<!-- Character entity set. Typical invocation:
<!ENTITY % XMLSpecial PUBLIC
"-//W3C//ENTITIES Special for XML//EN"
"http://swem.wm.edu/ns/tei/ent/characters.ent">
%XMLSpecial;
-->
<!--