This file contains 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/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 |
This file contains 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
Windows Registry Editor Version 5.00 | |
; Open files [HKEY_CLASSES_ROOT\*\shell\Open with VS Code] @="Edit with VS Code" | |
"Icon"="%LocalAppData%\\Programs\\Microsoft VS Code\\Code.exe" | |
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command] | |
@="\"%LocalAppData%\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\"" | |
; This will make it appear when you right click ON a folder | |
; The "Icon" line can be removed if you don't want the icon to appear |
This file contains 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
<?php | |
/** | |
* The simplest way i found to check javascript vía PHP | |
* Not to run code if javascript, to tell server if a client | |
* has enabled Javascript. Check at $_SESSION['js'] for 1/0 true/false | |
* | |
* Need cookie to run | |
* | |
* I've not wrapped into a class nor a function because lazy | |
* It's easy too to put a include_once("javascript-check.php") |
This file contains 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
hbox.titlebar-buttonbox { | |
appearance: none !important; | |
} | |
toolbarbutton.titlebar-button { | |
border-radius: 0px !important; | |
min-height: 45px !important; | |
} |
This file contains 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
; Steam launch params do not works if you don't include %command%, which represents the original launch arguments, ie: steam://rungameid/391540/ | |
; If you remove the "" quotes and the start, you can't remove original cmd screen. That's why we use cmd + start, when cmd returns start, closes becase /C | |
cmd /min /C "set __COMPAT_LAYER=RunAsInvoker && start "" %command%" |
This file contains 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 | |
# wp-cli basic install script with sqlite database. | |
# requires installing wp-cli.phar following instructions from http://wp-cli.org/. | |
# Download wp-package, by default does download en_US package (--locale="en_US") | |
wp core download --locale="es_ES" | |
# U can later install another language package | |
# wp core language es_ES --activate |
This file contains 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
// Compatible for most of the current browsers | |
function copyText(text){ | |
function selectElementText(element) { | |
if (document.selection) { | |
var range = document.body.createTextRange(); | |
range.moveToElementText(element); | |
range.select(); | |
} else if (window.getSelection) { | |
var range = document.createRange(); |
This file contains 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/local/env/ python | |
# -*- coding:utf-8 -*- | |
''' | |
The current config creates 2 logs/handlers with script name as base and "logs" folder to store | |
The streamhandlers is the CLI output, defaulted to level INFO and up. | |
The filehandler is rotating, 5mb with up to 3 rotations, defaulted to level DEBUG and up. | |
If you don't want to see that much INFO logs in your screen, just set it to logging.WARNING level | |
To use the name of other module importing this, init like 'log = logger(fileName=__file__)' | |
''' |
This file contains 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
; This modifies the behavior after slide, helps to continue sprinting after sliding. | |
; You can still press crouch manually while sliding to keep crouched after slide. | |
; You need to edit the key of slide (mine is LAlt) and maybe Space to jump ?. | |
; This is AutoHotkey v2 syntax | |
; All the close stuff is made to let Steam detect when the "game" has exit, which is the autohotkey process handle now. | |
~LAlt::{ | |
If (GetKeyState("LAlt", "P") && GetKeyState("CapsLock", "P") && WinActive("ahk_exe WW3-Win64-Shipping.exe")){ | |
Sleep 200 | |
Send "{Space down}" |
This file contains 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
// ==UserScript== | |
// @name ebay - remove articles with price ranges | |
// @namespace erm3nda.github.com | |
// @version 0.1 | |
// @description Remove items with combobox on Ebay listings | |
// @author erm3nda.github.com | |
// @match https://www.ebay.es/* | |
// @match https://www.ebay.ca/* | |
// @match https://www.ebay.com/* | |
// @grant none |
NewerOlder