Skip to content

Instantly share code, notes, and snippets.

View vincenavarro's full-sized avatar
:octocat:
Burning Branches

Vince Navarro vincenavarro

:octocat:
Burning Branches
View GitHub Profile
@vincenavarro
vincenavarro / git-author-rewrite.sh
Last active February 3, 2019 19:47 — forked from octocat/git-author-rewrite.sh
Mutli-email replacement for git commits.
#!/bin/sh
git filter-branch -f --env-filter $'
OLD_EMAILS="
[email protected]
[email protected]
"
CORRECT_NAME="New Name"
CORRECT_EMAIL="[email protected]"
for EMAIL in ${OLD_EMAILS}; do
@vincenavarro
vincenavarro / index.js
Created May 21, 2019 15:01
Simple, complete example of a bot in Discord.js
// Load up the discord.js library
const Discord = require("discord.js");
// This is your client. Some people call it `bot`, some people call it `self`,
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`,
// this is what we're refering to. Your client.
const client = new Discord.Client();
// Here we load the config.json file that contains our token and our prefix values.
const config = require("./config.json");
@vincenavarro
vincenavarro / .gitignore
Last active April 26, 2021 20:41
Generic .gitignore
*~
*.bak
*.lnk
*.log
._*
.env
.env.local
.DS_Store
[Dd]esktop.ini
[Tt]humbs.db
@vincenavarro
vincenavarro / README.md
Last active October 2, 2022 23:53
Click all endorsements on linkedin.

Click all endorsements on linkedin.

Updated for new LinkedIn

Demo Video

@vincenavarro
vincenavarro / detect.js
Last active August 28, 2019 19:31
One Line Mobile Detection (Depreciated)
const isMobileDevice = () => (typeof window.orientation !== "undefined") || (navigator.userAgent.indexOf('IEMobile') !== -1);

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@vincenavarro
vincenavarro / board.kbd.json
Last active April 9, 2020 16:26
Keyboard Layout
[
{
"backcolor": "#3b3b3b",
"name": "MyBoard",
"radii": "10px"
},
[
{
"c": "#00000",
"t": "#FF0000",
@vincenavarro
vincenavarro / destructuring.js
Created April 5, 2020 01:07 — forked from mikaelbr/destructuring.js
Complete collection of JavaScript destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
@vincenavarro
vincenavarro / osx_bypass.md
Created April 9, 2020 16:24
OSX single-user mode user authentication bypass.

OSX single-user mode user authentication bypass.

This only works on older versions of OSX for use in customer support or refurbishing older machines. YMMV.

Start in single user mode then:

mount -uw /
rm /var/db/.AppleSetupDone
# reboot
@vincenavarro
vincenavarro / pogo_strings.md
Created April 9, 2020 21:38
POGO Counter Search Strings

POGO Counter Search Strings

These search strings will find counters for the pokemon you are attacking. This assumes that the pokemon is attacking with moves in the same family(ex. fighting type using fast and charged fighting moves.)

Add @weather for extra flair.

Double Counters

They are weak against and vulnerable to: