Skip to content

Instantly share code, notes, and snippets.

@juanmnl
juanmnl / instagram-follower-following.js
Created January 16, 2023 15:53 — forked from abir-taheer/instagram-follower-following.js
Sign into instagram -> Inspect Element -> Paste code into console tab -> change username variable to your username -> hit enter
const fetchOptions = {
credentials: "include",
headers: {
"X-IG-App-ID": "936619743392459",
},
method: "GET",
};
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
const random = (min, max) => Math.ceil(Math.random() * (max - min)) + min;
@juanmnl
juanmnl / gist:47a1484ce0dde91dcd8618258997a918
Created July 4, 2018 16:27
Reset USB disk macOS terminal
** Find # disk to be erased
diskutil list
** Delete and format disk
diskutil eraseDisk free EMPTY /dev/disk#
@juanmnl
juanmnl / array_excercices.html
Last active January 3, 2018 23:06
Array Exercices
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@juanmnl
juanmnl / 2017-05-31T16_16_44_550Z-debug.log
Created May 31, 2017 16:24
.npm/_logs/2017-05-31T16_16_44_550Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/8.0.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'uninstall',
1 verbose cli '-g',
1 verbose cli 'npm-check-updates' ]
2 info using [email protected]
3 info using [email protected]
4 silly install loadCurrentTree
5 silly install readGlobalPackageData

Git Commit Messages

  • Use the present tense ("Add feature" not "Added feature")
  • Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
  • Limit the first line to 72 characters or less
  • Reference issues and pull requests liberally
  • When only changing documentation, include [ci skip] in the commit description
  • Consider starting the commit message with an applicable emoji:
    • 🎨 :art: when improving the format/structure of the code
    • 🐎 :racehorse: when improving performance
@juanmnl
juanmnl / springer-free-maths-books.md
Created December 29, 2015 22:09 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"parser": "babel-eslint",
"globals": {
"React": true
},
@juanmnl
juanmnl / react-terminology.md
Created October 1, 2015 20:37 — forked from sebmarkbage/react-terminology.md
React (Virtual) DOM Terminology
if [ $UID -eq 0 ]; then NCOLOR="blue"; else NCOLOR="cyan"; fi
PROMPT='%{$fg[$NCOLOR]%}%c ♉︎ ➤ %{$reset_color%}'
RPROMPT='%{$fg[$NCOLOR]%}%p $(git_prompt_info)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="git:"
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY="*"
ZSH_THEME_GIT_PROMPT_CLEAN=""
alias hide="defaults write com.apple.finder CreateDesktop false; killall Finder;"
alias show="defaults write com.apple.finder CreateDesktop true; killall Finder;"