Skip to content

Instantly share code, notes, and snippets.

View insky's full-sized avatar

Roman Zhbadynskyi insky

  • Kyiv, Ukraine
  • 04:53 (UTC +03:00)
View GitHub Profile
@insky
insky / download-images-from-google-drive.js
Created January 26, 2021 23:22 — forked from davestevens/download-images-from-google-drive.js
Download images from Google Drive folder using Node.js Google library
var google = require("googleapis"),
drive = google.drive("v2"),
fs = require("fs");
var config = {
"client_id": "client_id",
"client_secret": "client_secret",
"scope": "scope",
"redirect_url": "redirect_rul",
"tokens": {

Multiple MySQL Versions with Homebrew

For homebrew version 0.9.5.

brew -v # => Homebrew 0.9.5

Install the current version of mysql.

# Install current mysql version

brew install mysql

@insky
insky / invite_advanced.js
Created September 29, 2018 18:05 — forked from max-frai/invite_advanced.js
Invite people to facebook page
var INVITE_PEOPLE_COUNT = 100;
var scroll = document.querySelector('form[action*="invite"] .fbProfileBrowserResult');
var lastScroll = -1;
var it = 0;
var inviteIt = 0;
var allInvites = [];
var invitePause = 1000; // ms
@insky
insky / remove.js
Created May 17, 2017 19:10 — forked from max-frai/remove.js
Remove outgoing facebook friend requests
var interval = window.setInterval(function() {
var moreButton = document.querySelector('a[ajaxify*="outgoing/more"]');
if (moreButton)
{
moreButton.click();
console.log('loading more...');
}
else
{
//window.clearInterval(interval);
@insky
insky / find_and_remove.js
Created May 17, 2017 19:10 — forked from max-frai/find_and_remove.js
Find and remove inactive facebook friends & bots
var accountTag = 'own_remove_account_tag';
var css = " \
.own_popup { \
width: 50%; min-width: 676px; height: 80%; padding: 15px; \
background: white; border: 1px solid #eee; border-radius: 15px; \
z-index: 999999; position: fixed; margin: auto; \
top: 50px; left: 0; right: 0; \
-webkit-box-shadow: 0px 3px 38px 0px rgba(50, 50, 50, 0.32); \
-moz-box-shadow: 0px 3px 38px 0px rgba(50, 50, 50, 0.32); \
box-shadow: 0px 3px 38px 0px rgba(50, 50, 50, 0.32); \