Skip to content

Instantly share code, notes, and snippets.

View dacastro4's full-sized avatar
:shipit:
Focusing

Daniel Castro dacastro4

:shipit:
Focusing
View GitHub Profile
@dacastro4
dacastro4 / REMOVE_INSTAGRAM_FOLLOWERS.md
Last active March 1, 2025 17:09
Instagram mass remove followers

I had an issue with an account that had many many bots followers affecting their engagement so I created this script to remove them. Instagram has a hard guideline to remove followers. I recommend not deleting more than 4 per hours and 40 per day. Use it wisely

Go to your profile on instagram.com (sign in if not already) Click on XXX followers for the popup with the users that follow you Open Chrome Devtools and paste the content of script.js and hit enter

if the script saved you a lot of time (and/or money) you can buy me a coffee

@dacastro4
dacastro4 / FormError.js
Created November 27, 2022 01:56
Laravel Vue Error Handling Class
export default class FormErrors {
errors = []
constructor(errors = []) {
this.errors = errors
}
/**
* Returns the first message from key
*
@dacastro4
dacastro4 / word-similarity.js
Last active March 28, 2022 18:45
Word Similarity
const editDistance = (s1, s2) => {
s1 = s1.toLowerCase();
s2 = s2.toLowerCase();
const costs = [];
for (let i = 0; i <= s1.length; i++) {
let lastValue = i;
for (let j = 0; j <= s2.length; j++) {
@dacastro4
dacastro4 / helpers.php
Created December 19, 2018 18:37
Laravel 5 Helper Methods (PHP 7+)
<?php
/**
* Created by PhpStorm.
* User: danielcastro
* Date: 2/2/17
* Time: 2:06 PM
*
* Place under app/paht/to/file folder and add
* "files" : [
* "app/paht/to/file/helpers.php"