Skip to content

Instantly share code, notes, and snippets.

View phpenterprise's full-sized avatar
👩‍💻
Forensic expert

Patrick Otto phpenterprise

👩‍💻
Forensic expert
View GitHub Profile
@phpenterprise
phpenterprise / auto-migrate-utm.js
Last active October 30, 2020 12:03
Auto Migrate UTM Tags
(MigrateUTM = {
release: '1.0.2',
settings: {
debug: true,
delay: 2000,
tags: [
'utm_medium',
'utm_source',
'utm_campaign',
'utm_term'
@phpenterprise
phpenterprise / olx.js
Last active May 20, 2023 19:19
OLX Data Extractor (Scraping)
(Olx = {
release: '1.0.5 RC',
j: $,
path: window.location.href,
settings: {
debug: true,
url: window.location.href.replace(/\.(\w+)\/.*/, '.$1') + '/vi/{id}?rec=h',
filename: "olx.csv",
split: 100,
speed: 700,
@phpenterprise
phpenterprise / custom-service.sh
Last active February 8, 2021 02:04
Configure Python as a service in AWS EC2
#!/bin/bash
#
# custom-service Start up custom-service
#
# chkconfig: 2345 55 25
# description: the custom service (Python)
#
# processname: custom-service
# Source function library
@phpenterprise
phpenterprise / string-similarity-mysql.sql
Created June 25, 2019 15:21
String Similarity with MySQL
DELIMITER $$
CREATE DEFINER=`root`@`localhost` FUNCTION `COMPARE_STRING`( s1 text, s2 text) RETURNS int(11)
DETERMINISTIC
BEGIN
DECLARE s1_len, s2_len, i, j, c, c_temp, cost INT;
DECLARE s1_char CHAR;
DECLARE cv0, cv1 text;
SET s1_len = CHAR_LENGTH(s1), s2_len = CHAR_LENGTH(s2), cv1 = 0x00, j = 1, i = 1, c = 0;
IF s1 = s2 THEN
RETURN 0;
@phpenterprise
phpenterprise / facebook-auto-approve-group-posts.js
Last active December 8, 2023 18:22
Facebook Auto Approve Group Posts
// config
var speed = 100;
var i = 0;
var count = 1;
// change to you language button label (e.g: approve, disapprove)
var buttonText = 'recusar';
var regex = new RegExp( buttonText,'ig' );
// read elements
@phpenterprise
phpenterprise / linkedin-auto-connect.js
Last active February 28, 2024 01:43
Linkedin Auto Connect/Invite Script
(Linkedin = {
release: '1.0.5 stable',
data: {},
config: {
autoStart: true,
inspectorSpeed: 5000,
sendSpeed: 4000,
pagerSpeed: 10000,
scrollDownAuto: 600,
debug: true,